www.vtiinstruments.com
EX1629 Programming
91
use of the vtex1629_enable_streaming_dataEx function more complicated than the
vtex1629_enable_streaming_data function.
For most applications, the basic streaming data interface provides sufficient execution speed and
flexibility. If you believe your application would benefit from the advanced streaming interface,
please contact your application engineer for further details.
Calibration Data
Once calibration is run, a file with this data is stored in memory. To view this data, the following
code could be generated. This code determines the size of the calibration file first in order to
prevent overwriting any data that may already exist in the external memory location to which the
calibration file will be written. In this example, the self-calibration and full calibration files are
output in XML format.
Sample Code
ViStatus status = VI_SUCCESS;
ViChar errMessage[256];
ViInt32 fileType = 0;
ViInt32 bufferSize = 0;
ViString xmlBuffer_combined = 0;
ViInt32 actualSize = 0;
memset(errMessage, 0x00, sizeof(errMessage));
fileType = VTEX1629_CAL_DATA_COMBINED;
status = vtex1629_get_cal_file_size(instrumentHandle,
fileType,
&bufferSize);
if(status < VI_SUCCESS) {
<inform the user the API call failed>
}
if( (status >= VI_SUCCESS) && (bufferSize > 0) ) {
xmlBuffer_combined = malloc( bufferSize * sizeof( ViString ) );
status = vtex1629_get_cal_file(instrumentHandle,
fileType,
bufferSize,
xmlBuffer_combined,
&actualSize);
if(status < VI_SUCCESS) {
<inform the user the API call failed>
}
...
free(xmlBuffer_combined);
}
Содержание EX1629
Страница 310: ...VTI Instruments Corp 310 EX1629 Command Set...
Страница 342: ...VTI Instruments Corp 342 EX1629 Onboard Memory...