ADLINK PCI-8124-C User Manual

Page 93

Advertising
background image

Function Library

83

Visual Basic (Windows 2000/XP)

B_8124_set_latch (ByVal CardId As Integer, ByVal

Channel As Integer, ByVal Enable As Integer,

ByVal EdgeSel As Integer) As Integer

B_8124_get_latch_event_sts (ByVal CardId As

Integer, LatchEventInBit As Integer) As

Integer

B_8124_get_latch_value (ByVal CardId As Integer,

ByVal Channel As Integer, LatchValue As

Long) As Integer

@ Argument

I16 CardId

: The PCI-8124-C card’s ID number.

I16 Channel

: The channel’s number of Latch ( 0 – 3 )

I16 Enable

: Enable the Latch function (0: Disable, 1: Enable)

I16 EdgeSel

: Latching condition

0: Photo couple: OFF

ON (Falling edge) clear

(default)

1: Photo couple: ON

OFF (Rising edge) clear

I16 *LatchEventInBit

: Latch event status in bit format (Read

clear)

Bit0: Latch0 event status ( 1: Latched occurred , 0: No
Latched )

Bit1: Latch1 event status ( 1: Latched occurred , 0: No
Latched )

Bit2: Latch2 event status ( 1: Latched occurred , 0: No
Latched )

Bit3: Latch3 event status ( 1: Latched occurred , 0: No
Latched )

I32 *LatchValue

: The Latched counter value.

Advertising