8144_set_gpio_output_channel – ADLINK PCI-8144 User Manual
Page 154
144
Function Library
_8144_set_gpio_output_channel
Set a specified DOUTn digital output signal
Description:
The PCI-8144 has 8 digital output channels. By this function,
the user could control a specified digital output.
Syntax:
I16 _8144_set_gpio_output_channel( I16 CardId,
I16 ChannelNum, I16 DoValue )
B_8144_set_gpio_output_channel( ByVal CardId As
Integer, ByVal ChannelNum As Integer, ByVal
DoValue 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 ChannelNum
: Specifed the channel number that you
want to control
Z
Value meaning: 0-7 => ch0-ch7
I16 DoValue
: 0:OFF, 1: ON
Return Values:
ERR_ParametersInvalid
ERR_DeviceNotInitial
ERR_NoError
Example:
I16 CardId = 0; // Card ID number
I16 ChannelNum = 0; //DO channel 0
I16 DoValue = 1; //ON
ret = _8144_set_gpio_output_channel( I16 CardId,
I16 ChannelNum, I16 DoValue ); …
See also:
_8144_set_gpio_output
_8144_get_gpio_output
_8144_get_gpio_output_channel