Introduction Clocks navigation bar

Channels

Almost all HIL functions have achannels parameter, indicating which channels are being read or written. This parameter is an integer array of channel numbers. Each element of the array should be entered as an integer number between 0 and one less than the number of channels supported by the card. For example, the Q8 card supports 8 analog inputs, 8 analog outputs, 8 encoder inputs, and 32 bidirectional digital I/O channels. Hence, analog and encoder channel numbers range from 0 to 7 and digital channel numbers range from 0 to 31. For example:

const t_uint32 channels = { 0, 5, 6 };

denotes channels 0, 5 and 6. Channel numbers need not be consecutive. Nor do they need to be specified in ascending order. Data read from an HIL board will appear in the same order as the channels in the array. Likewise, data written to an HIL board must appear in the same order as the channels in the array.

 

navigation bar