LED 算子

Operator Library: Hardware Platform

The LED operator provides an interface for accessing the board user LEDs of the frame grabber via the applet.

Driving a logic HIGH on the input forces the correspondent board LED to light on. Driving a logic LOW on the input forces the correspondent board LED to light off.

For the exact location of board LEDs on the frame grabber, see the manual of your frame grabber.

适用于以下硬件平台
imaFlex 2 Dual 100
imaFlex CXP-12 Penta
imaFlex CXP-12 Quad
mE5 marathon VCLx
mE5 marathon VCL
mE5 marathon VCX-QP1
mE5 marathon VF2
LightBridge VCL
mE5 ironman VQ8-CXP6D
mE5 ironman VQ8-CXP6B
mE5 ironman VD8-PoCL

1

On marathon VCX-QP, the numbering of the LEDs is mirrored, see parameter description of parameter Port below.

资源

The operator mirrors the Port parameter settings into the FPGA Device Resources dialog as read-only parameters. You can see the FPGA device resources, if you open the FPGA Device Resources dialog from the Analysis menu. The device resources are read-only:

FPGA Device Resources All Platforms Except imaFlex 2 Dual 100

Figure 438. FPGA Device Resources All Platforms Except imaFlex 2 Dual 100


For the imaFlex 2 Dual 100 platform, the operator is using a read-only resource of type User LED, which is influenced by the Port operator parameter. The User LED resource index is always the Port label value, i.e., USR1 is mapped to the User LED resource index 1 and USR6 to the User LED resource index 6.

FPGA Device Resources of imaFlex 2 Dual 100

Figure 439. FPGA Device Resources of imaFlex 2 Dual 100


I/O Property

Property 值
Operator Type M
Input Link I,信号输入

Supported Link Format

Link Parameter Input Link I
Bit Width 1
Arithmetic unsigned
Parallelism 1
Kernel Columns 1
Kernel Rows 1
Img Protocol VALT_SIGNAL
Color Format VAF_GRAY
Color Flavor FL_NONE
Max. Img Width any
Max. Img Height any

参数

Port (imaflex, mE5 marathon, and LightBridge VCL platforms)
键入 静态写参数
默认 USR1
范围

imaFlex 2 Dual 100, imaFlex CXP-12 Penta, and imaFlex CXP-12 Quad: {USR1, USR2, USR3, USR4, USR5, USR6}

LightBridge VCL, mE5 marathon VCLx, and mE5 marathon VCL: {USR1, USR2}

mE5 marathon VCX-QP and mE5 marathon VF2: {USR1, USR2, USR3, USR4}

The parameter defines which of the board LEDs will be connected by the operator.

imaFlex 2 Dual 100, imaFlex CXP-12 Penta and imaFlex CXP-12 Quad:

  • USR1 maps the operator to the LED USR1.

  • USR2 maps the operator to the LED USR2.

  • USR3 maps the operator to the LED USR3.

  • USR4 maps the operator to the LED USR4.

  • USR5 maps the operator to the LED USR5.

  • USR6 maps the operator to the LED USR6.

On the imaFlex 2 Dual 100, the board LEDs are located in the following positions:

LEDs on the imaFlex 2 Dual 100 Board

Figure 440. LEDs on the imaFlex 2 Dual 100 Board


在 imaFlex CXP-12 Penta 上,板载 LED 的位置如下:

imaFlex CXP-12 Penta 板上的 LED

图 441. imaFlex CXP-12 Penta 板上的 LED


在 imaFlex CXP-12 Quad 上,板载 LED 的位置如下:

imaFlex CXP-12 Quad 板上的 LED

图 442. imaFlex CXP-12 Quad 板上的 LED


mE5 marathon VCLx, mE5 marathon VCL, LightBridge VCL:

  • USR1 maps the operator to the LED USR1.

  • USR2 maps the operator to the LED USR2.

mE5 marathon VF2:

  • USR1 maps the operator to the LED USR1.

  • USR2 maps the operator to the LED USR2.

  • USR3 maps the operator to the LED USR3.

  • USR4 maps the operator to the LED USR4.

mE5 marathon VCX-QP:

  • USR1 将算子映射到 LED 4。

  • USR2 将算子映射到 LED 3。

  • USR3 将算子映射到 LED 2。

  • USR4 将算子映射到 LED 1。

若要将 LED 打开,输入 I 必须驱动为 HIGH。若要将 LED 关闭,输入 I 必须驱动为 LOW。

[重要] 可用性

此参数适用于以下平台:

  • imaFlex 2 Dual 100、imaFlex CXP-12 Penta 和 imaFlex CXP-12 Quad(取值范围 {USR1, USR2, USR3, USR4, USR5, USR6})

  • mE5 marathon VCLx(取值范围 {USR1, USR2})

  • mE5 marathon VCL(取值范围 {USR1, USR2})

  • mE5 marathon VCX-QP(取值范围 {USR1, USR2, USR3, USR4})

  • mE5 marathon VF2(取值范围 {USR1, USR2, USR3, USR4})

  • LightBridge VCL(取值范围 {USR1, USR2})

Pin_ID(ironman 平台)
键入 静态写参数
默认 0
范围 [0;3]

Pin_ID 参数定义了 4 个板载 LED 中的哪一个 将由算子连接。范围为 [0; 3]。

[重要] 可用性

此参数适用于这些平台:

  • mE5 ironman VQ8-CXP6D

  • mE5 ironman VQ8-CXP6B

  • mE5 ironman VD8-PoCL

使用示例

以下示例展示了 LED 算子的使用方法:

  • 'Hardware Test'

    DMA、RAM、GPIO、触发和 LED 硬件自检的示例。