8144_set_gpio_output – ADLINK PCI-8144 User Manual
Page 153
![background image](/manuals/733471/153/background.png)
Function Library
143
_8144_set_gpio_output
Set all DOUT digital output signal
Description:
The PCI-8144 has 8 digital output channels. By this function,
the user could control all digital outputs.
Syntax:
I16 _8144_set_gpio_output( I16 CardId, I16
DoValueInBit )
B_8144_set_gpio_output( ByVal CardId As Integer,
ByVal DoValueInBit As Integer)As Integer
Parameters:
I16 CardId
: Specify the PCI-8144 card index. The CardId
could be decided by DIP switch (SW1) or depend on slot
sequence.Please refer to _8144_initial()
I16 DoValueInBit
: bit0 – bit7 => DO CH0-7
Z
The meaning of each bit: 0:OFF, 1:ON
Return Values:
ERR_ParametersInvalid
ERR_DeviceNotInitial
ERR_NoError
Example:
I16 CardId = 0; //Card ID number
I16 DoValueInBit = 0xFF; //turn ON all DO channal
ret = _8144_set_gpio_output(CardId, DoValueInBit
);
…
See also:
_8144_set_gpio_output_channel
_8144_get_gpio_output
_8144_get_gpio_output_channel