![ADLINK Technology HSLink HSL-AI16 User Manual Download Page 47](http://html1.mh-extra.com/html/adlink-technology/hslink-hsl-ai16/hslink-hsl-ai16_user-manual_2852692047.webp)
NT DLL Programming
•
39
DIO Channel Out
Ø
Syntax
U16 _stdcall W_HSL_DIO_ Channel_Out (U16 card_ID, U16 set_ID, U16
slave_No, U16 channel_No, U16 out_data);
Ø
Description
This function is to write the digital output value to the specified digital
channel of slave I/O module. The slave I/O module‘s address is slave_No,
set value is set_ID and the specified channel value is channel_No.
Ø
Parameter
card_ID
The card id of the card that want to perform this operation.
set_ID
In PCI-7851, because it contain only one connector so the
valid value is 0, for PCI-7852, the valid value is 0 or 1.
slave_No
Specify the slave I/O module with slave_No address
which want to perform this function.
The valid value is
between 1 ~ 63.
channel_No
Specify the digital output channel of the I/O slave I/O
module which want to perform this function. The valid value
is described as below:
HSL-R8DI16 : 0 ~ 7 .
HSL-DI16DO16 : 0 ~ 15 .
HSL-DO32 : 0 ~ 31 .
out_data
The digital output data want to write to the slave I/O module.
In this value. Channel 0 data is assign to bit 0, channel 1
data is assign to bit 1… .etc.
Ø
Return Number
ERR_NoError, ERR_InvalidBoardNumber, ERR_ConnectIndex,
ERR_SatelliteNumber, ERR_SatelliteType,
ERR_NotADLinkSlaveType, ERR_ChannelNumber,
ERR_NotADLinkSlaveType
Ø
Example
result=W_HSL_DIO_Channel_Out(cardNo, 0, 1, 2, out_data);