To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example allows a user to stream from an HSDIO device (654x/655x/656x) to disk. The waveform is stored to a TDMS file on disk in this example.
Description
The following code reads data from an HSDIO device in an acquisition session and writes it to a TDMS file. In the similar example “niHSDIO Stream to Disk Binary Queues”, queues are required to buffer data between the device and the disk. However, because this example uses TDMS Asynchronous Writes, the data is set in a buffer for the TDMS file rather than in a queue.
Requirements
Software
LabVIEW 2012 (or compatible)
NI-HSDIO driver which is compatible with your hardware and version of LabVIEW
Hardware
HSDIO device (NI 654x/655x/656x)
Instructions
1. Specify the file destination for the acquired waveform.
2. Enter the digital channels of the hardware device to be read in the Channel List control.
3. Specify the data width in the Data Width control.
4. Specify the clock rate for the Sample clock in the Clock Rate control.
5. Specify the number of samples to acquire in the Samples to Acquire control.
6. Specify the number of samples to transfer from onboard memory disk at a time in the Samples per Block control. This control also determines the size of buffer to write to the hard drive at a time.
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Where are the example files?