ADLINK PCI-8154 User Manual
Page 213
Function Library
203
Visual Basic (Windows 2000/XP)
B_8154_set_gpio_output(ByVal card_id As Integer,
ByVal DoValue As Integer) As Integer
B_8154_get_gpio_output(ByVal card_id As Integer,
DoValue As Integer) As Integer
B_8154_get_gpio_input(ByVal card_id As Integer,
DiValue As Integer) As Integer
B_8154_set_gpio_input_function(ByVal card_id As
Integer, ByVal Channel As Integer, ByVal
Select As Integer, ByVal Logic As Integer)As
Integer
@ Argument
card_id
: Specify the PCI-8154 card index. The card_id could be
decided by DIP switch (SW1) or depend on slot sequence. Please
refer to _8154_initial().
DoValue
, *DoValue: Digital output value. Bit 0-3: D_out 0-3.
*DiValue
: Digital input value, Bit 0-3: D_in 0-3
Channel
: Digital channel DI0 - DI3
Select
: signal types select
Logic
: input signal logic
Value
Meaning
0
General DI (default)
1
LTC(active low)
2
SD(active low)
3
PCS(active low)
4
CLR (active low)
5
EMG (active low)
Value
Meaning
0
Not inverse (default)
1
Inverse