VTI Instruments Corp.
}
/* initialize the acquisition */
status = vtex10xxA_init_imm(vi);
if(status != VI_SUCCESS)
{
printf("ERROR INITIATING TRIGGER\n");
return -1;
}
/* read acquisition data */
status = vtex10xxA_read_fifo(vi, MAX_SCANS, ts_secs, ts_fsecs, &numscans, MAX_DATA, data, &numdata, (ViInt32)
(MAX_SCANS * TRIG_TIMER + 0.1));
if(status != VI_SUCCESS)
{
printf("ERROR READING DATA\n");
return -1;
}
/* print acquisition data */
for(i = 0; i < numscans; i++)
{
printf("%.0f.%09.0f: ", ts_secs[i], ts_fsecs[i] * 1e9);
for(j = 0; j < NUM_CHANNELS; j++)
{
printf("%6.2f ", data[i * NUM_CHANNELS + j]);
}
printf("\n");
}
/* close the session */
status = vtex10xxA_close(vi);
return 0;
}
124
EX10xxA Programming
Need help?
Do you have a question about the EX1000A and is the answer not in the manual?