![ADLINK Technology HSLink HSL-AI16 User Manual Download Page 52](http://html1.mh-extra.com/html/adlink-technology/hslink-hsl-ai16/hslink-hsl-ai16_user-manual_2852692052.webp)
44
•
NT DLL Programming
DIO Memory Out
Ø
Systax
void _stdcall W_HSL_DIO_Memory_Out(U16 card_ID, U16 set_ID,
unsigned short *data_out);
Ø
Description
This function is to write all digital output values to all slave I/O modules
which the set value is set_ID and the card no is card_ID.
In this function, user can write all digital output values to the slave I/O
modules at one time.
Ø
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.
data_out
It is a unsigned short array pointer. Before use this
function, user must
create a unsigned short array
which contain 63 items. In this array, index 0’s value will
be writed to slave_No=1 I/O modules, index 1’s value
will be writed to slave_No=2 I/O modules, index 2’s
value will be writed to slave_No=3 I/O modules… … and
index 62’s value will be writed to slave_No=63 I/O
modules.
Ø
Return Number
ERR_NoError, ERR_InvalidBoardNumber, ERR_ConnectIndex,
Ø
Example
unsigned short data_out[63]; // Create the Array
data_out[0] = 0x000f; // Set the output value of slave_No=1 I/O
modules to 0x000f
data_out[62] = 0x00ff; // Set the output value of slave_No=63 I/O
modules to 0x00ff
W_HSL_DIO_Memory_Out(cardNo, 0, data_out); // Output data