LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tdms containing multiple channels

I am currently trying to use Labview Base, to process 19 days of logged data from Signal Express. The data was recorded using TDMS files, each file contains 3 to 7 channels of data, at 100Hz and 120 samples. I now need to take these 1.2second frames (graphs of 100 points), and compress them into single 15 minute points (750, 1.2 seconds frames into 1 value at every15min) and preferably export the resulting information into excel. When i read the TDMS file in labview it gives a resulting graph which shows the data running for only 8 days, and i cannot see the data from all the channels. (if i were to "playback" the data in SignalExpress, it shows all 19 days of data, I can see the data from each channel, but only at 1.2 second time frames instead of 15min, it also wont allow an immediate export to Excel b/c of  "non-continuous recording"?)

Any help with controling the channels/ being able to see all my data, then compressing it in labview?
0 Kudos
Message 1 of 4
(4,332 Views)


@icuone wrote:
When i read the TDMS file in labview


What function do you use to read the data in LabVIEW?

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 4
(4,326 Views)
im using 'read from measurement file'.   i attached the current vi. that i am using
0 Kudos
Message 3 of 4
(4,309 Views)

Hi icuone,

First thing to check is to make sure you are exporting the files from Signal Express correctly. The LabVIEW SignalExpress Help provides some great information on how to export (save) data to files.
You can save or export a signal or value to a file in LabVIEW SignalExpress in the following ways:

  • Right-click an output on a step and select Save Value from the shortcut menu to save the signal or value to a text file.

  • Right-click an output on a step and select Copy Value from the shortcut menu to copy the data to the clipboard. You can paste the data into Microsoft Excel.

  • Open Microsoft Excel and drag the output to an Excel worksheet.

  • Use the "Save to ASCII/LVM" step to write signals or values to a text file after a step or series of steps completes execution.

  • Use LabVIEW SignalExpress data logging features to create logs of your signals in the .tdms file format.

  • Right click a logged signal in the "Logged Data" window and select the Convert to ASCII option to save logged data in the ASCII format.

  • Enable the Automatically export log file to ASCII file option in Tools » Options under the "Logging" category. This will export the log file to an ASCII file after the log file's creation.

When you use the Save to ASCII/LVM step, LabVIEW SignalExpress saves signals and values in the LabVIEW measurement data file format, which is a tab-delimited text file you can open with a spreadsheet application or a text-editing application. All of the data is stored in the SignalExpress TDMS file, it is just not stored in the format that the Read From Measurement File.vi is expecting. The attached VI will allow you to read any number of channels that are in the SignalExpress TDMS file. Please take a look at it and compare it to what you have. Also, there are great examples in the NI Example finder that deal with importing and exporting data files. I hope this helps!

National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(4,291 Views)