Example Code

Read TDMS Channel Data in Chunks Using LabVIEW

Code and Documents

Attachment

Overview 

This VI reads Channel Data from a TDMS file in Chunks.

 

Description

This VI uses the TDMS Streaming Palette VIs to read Channel Data from a TDMS file in Chunks.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the attached zip file and unzip it.

  2. Open the VI.
  3. Specify TDMS File Path, Channel Group Name, Channel Name and Chunk Size.
  4. Run the VI.
  5. Observe the Current Data Chunk Graph being updated with new data. 


Additional Information or References


3500008 - VISnippet.png

 

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**  

---

Peter Flores
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
dhwanitchotaliya
Member
Member
on

labview 8.6 version file pls

hugh1409
Member
Member
on

I have been trying to do this for some time before seeing this example however always end up having to close the TDMS file before reading the next block. This is due to an error that states "Error 4 occurred at TDMS Read - Labview: end of file encountered". Obviously opening and closing the file with in the loop multiple times is very inefficient and slow. I thought that your VI may have corrected this error some how, however I am getting the same error with this as well. I have had to make the VI from scratch and use my own TDMS files as my labview is on a locked down stand alone computer (with a fully up to date version of Labview 10 service pack 1) however I am confident that I have recreated the script accuratly.

Has any one else had the same error or know how this is resolved.