ADLINK HSL-DO32-M-N/HSL-DO32-M-P User Manual

Page 113

Advertising
background image

100

HSL Function Library

HSL_A_set_signal_range:
Sets the input range of the specified HSL AI/O modules.

HSL_A_get_signal_range:
Obtains the input range of the specified HSL AI/O modules.

HSL_A_get_input_mode:
Obtains the signal input mode of HSL AI/O modules. This is deter-
mined by hardware jumper setting.

HSL_A_set_last_channel:
Sets the last number of analog input channels of HSL AI/O mod-
ules. For example, the HSL-AI16AO2 has 16 analog inputs with
single-ended wiring. If you want to read back the first four analog
input data, assign the last channel as 3. The analog input channel
index starts from 0. The AI channel 0 to 4 are enabled while the
rest are disabled.

HSL_A_get_last_channel:
Retrieves the last number of analog input channels of HSL AI/O
modules. For example, if you use HSL_A_set_last_channel and
set the last channel as 5, then you can read the value of the last
channel using this function.

HSL_A_read_input:
Reads the specified AI channel of the slave module.

HSL_A_write_output:
Writes the specified AO channel of the slave module.

HSL_A_read_output:
Reads back the analog output data from the HSL AI/O modules
with the specified analog output channel.

HSL_A_sync_rw:
Synchronously reads AI data and writes AO data at the specified
channel of the HSL AIO module. It allows simultaneous data read/
write.

HSL_A_get_version:
Reads the kernel version of the HSL AI/O modules.

Advertising