HP E1433A User's Guide
The
Channel and Group IDs
Most functions in the HP E1432A
Channel IDs
Channel IDs are logical IDs which are created by a call to
e1432_assign_channel_numbers. The e1432_assign_channel_numbers function must be called exactly once, following the call to
e1432_init_io_driver, in order to declare to the library the logical addresses of the HP E1433A modules that will be used.
This function checks the existence of an HP E1433A module at each of the logical addresses given in a list of logical addresses, and allocates logical channel identifiers for each channel in all of the HP E1433As. Input channels, source channels, and tach/trigger channels are kept logically separated. Channel numbers for each type of channel are numbered starting from one, so there will be input channels 1 through M, source channels 1 through N, and tach/trigger channels 1 through P, where M is the number of input channels, N is the number of source channels, and P is the number of tach/trigger channels.
As an example, suppose two logical addresses 100 and 101 are passed to the function, and the logical address 100 has two
To use the ID of an input channel, the input channel number is given as an argument to the E1432_INPUT_CHAN() macro. (For backwards compatibility with theHP E1431A, the macro does nothing.) To use the ID of a source channel, the source channel number is given as an argument to the E1432_SOURCE_CHAN() macro. To use the ID of a tach/trigger channel, the tach/trigger channel number is given as an argument to the E1432_TACH_CHAN() macro. A channel ID is always positive.
For example, to set the range of the third input channel to 10 volts, the source code would look something like:
status = e1432_set_range(hwid, E1432_INPUT_CHAN(3), 10.0);