![ADLINK Technology HSLink HSL-AI16 User Manual Download Page 39](http://html1.mh-extra.com/html/adlink-technology/hslink-hsl-ai16/hslink-hsl-ai16_user-manual_2852692039.webp)
NT DLL Programming
•
31
Start
Ø
Systax
U16 _stdcall W_HSL_Start(U16 card_ID, U16 set_ID, U16 slave_No);
Ø
Description
This function is used to set the total connected slave I/O module numbers of
the HSLink master card (PCI-7851 or PCI-7852) with set_ID and start to
scan these slave I/O modules.
Ø
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
The maximum slave numbers connect to the HSLink
master card by the set_ID set. The valid value is between
1 ~ 63.
Ø
Return Number
ERR_NoError, ERR_SatelliteNumber, ERR_ConnectIndex,
ERR_InvalidBoardNumber
Ø
Example
result = W_HSL_Start(cardNo, 0, 63);
Auto Start
Ø
Systax
U16 _stdcall W_HSL_Auto_Start(U16 card_ID, U16 set_ID);
Ø
Description
This function is used to auto -detect the total connect slave I/O module
numbers of the HSLink master card (PCI-7851 or PCI-7852) with set_ID and
start to scan these slave I/O modules.
Ø
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.
Ø
Return Number
ERR_NoError, ERR_ConnectIndex, ERR_InvalidBoardNumber
Ø
Example
result = W_HSL_Auto_Start(cardNo, 0);