VTI Instruments Corp.
100 EX10xxA Programming
Once a lock has been acquired, it is released with the vtex10xxA_unlock function. The lock status
is not affected by the vtex10xxA_reset function, and it cannot be used to release a lock.
By design, the locking mechanism is able to be overridden by a secondary host that issues a
vtex10xxA_break_lock function. Thus, the lock provides a warning to other users that the unit is
in a protected operation state, but not absolute security. This allows for instrument recovery if the
locking IP address would become disabled. Breaking a lock, however, does not automatically
acquire it. That must be done with a separate vtex10xxA_lock function.
The lock status of the instrument is queried with the vtex10xxA_check_lock query. The response
to the query not only indicates whether the unit is locked, but also if the lock is owned by the issuer
of the query.
CONFIGURE THE SCAN LIST
The scan list is defined with the vtex10xxA_set_scanlist function. The EX10xxA can be configured
to include from 1 to all 48 of its input channels in the scan list. A valid scan list consists of:
at least one channel
no more than 48 channels
no repeated channels
The channels in the scan list can be listed in any order, but will be scanned in numerical order when
the scan list is executed.
Example #1: This code block configures a five-channel scan of channels 0 through 4 in sequential
order.
ViInt32 channels[5] = { 0, 1, 2, 3, 4 };
vtex10xxA_set_scanlist(vi, channels, 5);
Example #2: This code block configures a five-channel scan of channels 0 through 4 in reverse
order.
ViInt32 channels[5] = { 4, 3, 2, 1, 0 };
vtex10xxA_set_scanlist(vi, channels, 5);
The current scan list is queried with the Vtex10xxA_get_scanlist function.
CONFIGURE THE EU CONVERSIONS
The EU conversion for each thermocouple channel is configured with the
vtex10xxA_set_channel_conversion function. A channel’s EU conversion can be configured
regardless of its inclusion in the scan list, and multiple channels can be assigned to a specific
conversion type within one function. However, each unique conversion type must be set with a
separate function.
Example: This code block configures channels 0 through 4 for thermocouple type E and channels 5
through 8 for thermocouple type T.
#define TYPE_E 0x04
#define TYPE_T 0x03
ViInt32 e_channels[5] = { 0, 1, 2, 3, 4 };
vtex10xxA_set_channel_conversion(vi, e_channels, 5, TYPE_E);
ViInt32 t_channels[4] = { 5, 6, 7, 8 };
vtex10xxA_set_channel_conversion(vi, t_channels, 4, TYPE_T);
The current EU conversion assignment for any channel is queried with the
vtex10xxA_get_channel_conversion query.