VTI Instruments Corp.
124
EX10xxA Programming
}
/* 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 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_CH j]);
}
printf("\n");
}
/* close the session */
status = vtex10xxA_close(vi);
return 0;
}
Summary of Contents for EX1000A
Page 28: ...VTI Instruments Corp 28 EX10xxA Introduction EX1044 DIAGRAM ...
Page 29: ...www vtiinstruments com EX10xxA Introduction 29 FIGURE 1 5 EX1044 TABLE TOP USAGE ...
Page 34: ......
Page 56: ......
Page 74: ......
Page 130: ......
Page 282: ......