LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

writing and reading TDMS file

I have a problem in my first experience in TDMS formatting.

 

Two channel waveforms(same time info. of ch1 and ch2) were merged with "build array".

The waveform has 2 k rate for 60 sec.

After the dynamic converter, input of TDMS wizard, has no problem. 

 

But final saved file was not recognized in TDMS read.

Would you please recommend me how to resolve this problem?

 

**)In this board, I got to know there is TDMS viewer under LV. Where can I obtain the viewer for 8.2 version? 

 

Attachment: setting screen, writing code, and produced TDMS file (several second duration to test) of 8.2 version.

메시지가 09-05-2008 01:04 AM
에 labmaster에 의해 편집되었음
Download All
0 Kudos
Message 1 of 5
(2,608 Views)

How are you reading the file?

Are you using the express VI or the TDMS blocks?

What error are you getting?

 

I have not used the "Write to Measurement Express VI" for writing to .tdms files so I am not sure how it does it, but I usually just use the TDMS Write VI and the TDMS Read VI blocks.

 

--Robert

0 Kudos
Message 2 of 5
(2,600 Views)

Although I am a beginner, maybe you can get "wrong format" error message with an independent function.

 

 

0 Kudos
Message 3 of 5
(2,593 Views)

I am getting errors when I try to use the TDMS blocks to read the file.  I would suggest writing with the TDMS blocks if you can (shown in attachment).  I am not too familiar with what going to dynamic data does when writing a TDMS file.

 

Sorry if I wasnt very helpful. 

 

--Robert

 

Message Edited by knapkerd on 09-05-2008 05:00 PM
Message Edited by knapkerd on 09-05-2008 05:01 PM
Message Edited by knapkerd on 09-05-2008 05:01 PM
0 Kudos
Message 4 of 5
(2,584 Views)

Thank you for the reply.

 

My problem was I didn't set the property and group name.

 

I have one more question about TDMS.

I guess the TDMS is popular file format.

Can I lock the TDMS not to recognize by the general TDMS viewer or change the file extension?

(TDMS viewer can open any TDMS files.)

I failed to change the file extension, but the code can't open the data file.

0 Kudos
Message 5 of 5
(2,542 Views)