Argument – ADLINK PCI-8158 User Manual
Page 205
Function Library
195
Visual Basic (Windows 2000/XP)
B_8158_set_gpio_output(ByVal card_id As Integer,
ByVal DoValue As Integer) As Integer
B_8158_get_gpio_output(ByVal card_id As Integer,
DoValue As Integer) As Integer
B_8158_get_gpio_input(ByVal card_id As Integer,
DiValue As Integer) As Integer
B_8158_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-8158 card index. The card_id could be
decided by DIP switch (SW1) or depend on slot sequence. Please
refer to _8158_initial().
DoValue, *DoValue: Digital output value. Bit 0-7: D_out0-7.
*DiValue: Digital input value, Bit 0-7: D_in0-7
Channel: Digital channel DI0 - DI7
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