Syntax – ADLINK HSL-DO32-M-N/HSL-DO32-M-P User Manual
Page 114
HSL Function Library
101
@ Syntax
C/C++ (DOS, Windows 98/NT/2000/XP)
I16 HSL_A_start_read (I16 card_ID, I16
connect_index);
I16 HSL_A_stop_read (I16 card_ID, I16
connect_index);
I16 HSL_A_set_signal_range (I16 card_ID, I16
connect_index, I16 slave_No, I16
signal_range);
I16 HSL_A_get_signal_range (I16 card_ID, I16
connect_index, I16 slave_No, I16
*signal_range);
I16 HSL_A_get_input_mode (I16 card_ID, I16
connect_index, I16 slave_No, I16 *mode);
I16 HSL_A_set_last_channel (I16 card_ID, I16
connect_index, I16 slave_No, I16
last_channel);
I16 HSL_A_get_last_channel (I16 card_ID, I16
connect_index, I16 slave_No, I16
*last_channel);
I16 HSL_A_read_input (I16 card_ID, I16
connect_index, I16 slave_No, I16 ai_channel,
F64 *ai_data);
I16 HSL_A_write_output (I16 card_ID, I16
connect_index, I16 slave_No, I16 ao_channel,
F64 ao_data);
I16 HSL_A_read_output (I16 card_ID, I16
connect_index, I16 slave_No, I16 ao_channel,
F64 *ao_data);
I16 HSL_A_sync_rw (I16 card_ID, I16
connect_index, I16 slave_No, I16 ai_channel,
F64 *ai_data, I16 ao_channel, F64 ao_data);
I16 HSL_A_get_version (I16 card_ID, I16
connect_index, I16 slave_No, I16 *ver);
Visual Basic (Windows 98/NT/2000/XP)
HSL_A_start_read (ByVal card_ID As Integer, ByVal
connect_index As Integer) As Integer
HSL_A_stop_read (ByVal card_ID As Integer, ByVal
connect_index As Integer) As Integer
HSL_A_set_signal_range (ByVal card_ID As Integer,
ByVal connect_index As Integer, ByVal