www.vtiinstruments.com
EX1629 Command Set 131
vtex1629_get_cal_coefficients
FUNCTION PROTOTYPE
ViStatus vtex1629_get_cal_coefficients (ViSession vi, ViInt32 caltype, ViInt32 coefficientSelector, ViInt32
_VI_FAR channelList[],ViInt32 numberOfChannels, ViReal64 _VI_FAR coefficientOutputArray[]);
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.
calType = file type for which to query the coefficients. Valid values are 1 through 3. See Description below for
more details.
coefficientSelector = an integer input value indicating the desired coefficient to query. Valid values are from
VTEX1629_CALSRC_0 (0x00) through VTEX1629_SUPPLY_EXCITE_OUT_POS_OFFSET (0x3F).
channelList[] = an integer array containing a list of channel numbers for which to query the coefficient. Acceptable
values for this array are VTEX1629_MIN_CHANNEL(0) to VTEX1629_MAX_CHANNEL(47), inclusive.
NOTE Since the calibration sources VTEX1629_CALSRC_0 (0x00) through
VTEX1629_CALSRC_ALL (0x13) are global across all channels, if the value of the
coefficientSelector parameter is within the aforementioned range, the API will not query the
channels listed in this channelList array.
numberOfChannels = a return integer value indicating the number of channels currently included in the scan list.
Valid return values: 1 to 48.
coefficientOutputArray[] = Return array of the queried coefficients. See the Description section below for valid
return values.
DATA ITEM RESET VALUE
Not applicable to this function.
DESCRIPTION
This function queries and returns the value of a selected calibration coefficient for one or more channels.
The calType parameter has the following valid input values:
Returns self-calibration data
VTEX1629_CAL_DATA_FACTORY
Returns factory calibration data
VTEX1629_CAL_DATA_COMBINED_XML
Returns factory and self-calibration data in XML
format.
If one of the above values is not defined for the calType parameter, an error of VI_ERROR_PARAMETER2 will be
returned.
The coefficientSelector parameter has the following valid input values:
VTEX1629_MAIN_ADC_X1_GAIN
VTEX1629_MAIN_ADC_X1_OFFSET
VTEX1629_MAIN_ADC_X10_GAIN
VTEX1629_MAIN_ADC_X10_OFFSET
VTEX1629_MAIN_ADC_X100_GAIN
VTEX1629_MAIN_ADC_X100_OFFSET
VTEX1629_COMP_RESISTOR_350
VTEX1629_COMP_RESISTOR_120