8144_get_gpio_output_channel – ADLINK PCI-8144 User Manual

Page 156

Advertising
background image

146

Function Library

_8144_get_gpio_output_channel

Get a specified DOUTn digital output signal

Description:

Syntax:

I16 _8144_get_gpio_output_channel( I16 CardId,

I16 ChannelNum, I16 *DoValue )

B_8144_get_gpio_output_channel( ByVal CardId As

Integer, ByVal ChannelNum As Integer,

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

: Specified the channel number of digital

output.

Z

CH0-CH7 : 0-7

I16 *DoValue

: The information of the specified DO signal.

Z

Value meaning: 0:OFF, 1:ON

Return Values:

ERR_ParametersInvalid

ERR_DeviceNotInitial

ERR_NoError

Example:

I16 CardId = 0; //Card ID number

I16 ChannelNum = 0; //DO ch0

I16 DoValue; //Do information

ret = _8144_get_gpio_output_channel( CardId,

ChannelNum, &DoValue );

See also:

_8144_set_gpio_output

_8144_set_gpio_output_channel

_8144_get_gpio_output

Advertising