www.vtiinstruments.com
EX10xxA Function Calls 231
vtex10xxA_set_channel_conversion
FUNCTION PROTOTYPE
ViStatus vtex10xxA_set_channel_conversion(ViSession vi, ViInt32 channels[], ViInt32 numChannels, ViInt32
eu_conv);
FUNCTION PARAMETERS
vi = contains a session handle to the instrument. This handle is obtained by the function and remains valid until the
session is closed.
channels = the list of channels to which to apply the filter frequency selection. The list of channels can include
channels not currently in the scan list and can be a subset of the channels in the scan list.
numChannels = the length of the channels array. Value must be an integer in the range of 1 to 48.
eu_conv = an integer output value representing the EU conversion. Valid return values: 0 through 10. See
Description for more information.
DATA ITEM RESET VALUE
eu_conv = VTEX10XXA_CONV_MV for all channels
DESCRIPTION
This function sets the EU conversion for the specified channels. For the eu_conv parameter, the following values are
valid:
VTEX10XXA_CONV_THERMO_TYPE_J
VTEX10XXA_CONV_THERMO_TYPE_K
VTEX10XXA_CONV_THERMO_TYPE_T
VTEX10XXA_CONV_THERMO_TYPE_E
VTEX10XXA_CONV_THERMO_TYPE_B
VTEX10XXA_CONV_THERMO_TYPE_S
VTEX10XXA_CONV_THERMO_TYPE_R
VTEX10XXA_CONV_THERMO_TYPE_N
NOTE To meet the accuracy specifications in the Thermocouple Accuracy in Table 1-2, the 67 mV range
must be used. Using other voltage settings for EU conversion will reduce the accuracy of the
measurements. See
EXAMPLE
// channels 0-4 are E, channels 5-8 are 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);