VTI Instruments Corp.
136 EX1629 Command Set
vtex1629_get_cal_file_size
FUNCTION PROTOTYPE
ViStatus vtex1629_get_cal_file_size (ViSession vi, ViInt32 fileType, ViPInt32 fileSize);
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.
fileType = deinfes the file type that will be acquired. Valid input values: 0 through 3. See the Description section
below for more information.
fileSize = returned file size for the specified calibration file type.
DATA ITEM RESET VALUE
Not applicable to this function.
DESCRIPTION
This function returns the total buffer size required to read the cal data, including terminating nulls, etc. The client
application should use this size to allocate a sufficiently large buffer.
The fileType parameter has the following valid input values:
VTEX1629_CAL_DATA_COMBINED
Both self and factory calibration data
VTEX1629_CAL_DATA_FACTORY
VTEX1629_CAL_DATA_COMBINED_XML
Both self and factory calibration data in XML format.
EXAMPLE
ViSession instrumentHandle;
ViStatus status = VI_SUCCESS;
ViInt32 bufferSize = 0;
fileType = VTEX1629_CAL_DATA_COMBINED;
…
status = vtex1629_get_cal_file_size(instrumentHandle, fileType, &bufferSize);