Thread Subject: Reading Labview binary file using Matlab

Subject: Reading Labview binary file using Matlab

From: Rajesh Rajaram

Date: 2 Nov, 2007 14:40:35

Message: 1 of 3

I need to know how I can read a Labview log file(binary
format) using matlab.

I tried using fread using the 'ieee-be' option. But so far
I have been unsuccessful in reading it correctly. I can
read but I am reading a set of bizzare numbers. And I know
the log file has both multi channeled time series data
(with a timestamp) and some acquisition related
information.

Please help.

Rajesh

Subject: Reading Labview binary file using Matlab

From: Rob Purser

Date: 5 Nov, 2007 15:53:05

Message: 2 of 3

Is your data stored in their TDMS data format?

-Rob

Subject: Reading Labview binary file using Matlab

From: Rajesh Rajaram

Date: 5 Nov, 2007 17:34:09

Message: 3 of 3

Mr. Rob
I appreciate your time to help me with my problem. I dont
know what is TDMS format. Is there any easy way I can find
that out.

The readme file that came with my inquiry about the log
file is:
****************
The file structure starts with the header information
until the code word DATA: and then data follows in binary
format.
The data is written in 4 Bytes per datapoint per channel
plus one datapoint for the timestamp. For instance you
have 32 channels. One dataset will be then 33 * 4 Byte.
The timestamp is the first value (4 Byte) following
by the 32 datapoints (32*4 Byte) for each channel. You
must write a read procedure that do the steps backward.
****************

Please let me know if you want any more information.

Thanks
Rajesh

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
tdms Rajesh Rajaram 5 Nov, 2007 12:35:08
smallendian Rajesh Rajaram 2 Nov, 2007 10:45:03
bigendian Rajesh Rajaram 2 Nov, 2007 10:45:03
labview Rajesh Rajaram 2 Nov, 2007 10:45:03
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com