About Fast Data Channel (FDC) Operation
VX4101A MultiPaq Instrument User Manual
2–21
Example Code for Retrieving Data. Use the following example code to retrieve the
data:
errs = viWrite (wsp, "VXI:FDC:BUFF 1024", 17, &RetCnt);
errs = viRead(fdc, buff, sizeof(buff), &RetCount);
Once the waveform has been returned to the host in binary format, the data can
be re-sent to the VX4101A DAC with the host FDC driver’s write function.
Example Code for Re-Sending Data.
errs = viWrite (fdc, buff, strlen(buff), &RetCnt);
Reading and writing the FDC channel can be repeated until you have completed
testing the unit. At that point the program could close down the FDC channels in
preparation for connecting and testing another device.
Example Code for Closing the FDC Channels. You can use the following code to
close the FDC channels:
errs = viWrite (wsp, "VXI:FDC:CLOSE",13, &RetCnt);
When all testing is complete, you can terminate the I/O sessions and shut down
the test equipment. Use the following command syntax:
viClose(vi);
Example Code for Terminating the Communication Session. You can use the
following code to terminate the session:
errs = viClose (fdc);
errs = viClose (wsp);
Closing the FDC Channels
Terminating the
Communication Session