LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save a TDMS-file

Hi everyone

 

Again, I have a LV-Question:


I have a program that measures some signals and it saves them in an excel tdms-file. When one file is full is automatically starts to save in an other tdms file. No problems with that. But how can I:

1) choose the maximum capacity of 1 file? How many data it can contain..

2) How can I give the file a name where one part is a constant name ( example: a pumpnumber) and where the other part is the date of the measurement with a number ( example: Pump3Installation4_2011-05-05_3.tdms?

 

 

Thanks for helping me

0 Kudos
Message 1 of 3
(2,807 Views)

Hi!

I haven't been using TDMS so much myself, but I can maybe help you with your second questionSmiley Happy

 

Here is how I save my TDMS file:

 

 

 

TDMS Save.png

 

I use "Build Path" with a folder path constant. Then I build the filename. As you can see I use a String constant + Serial Number input from user + File extention. You can easily play around with this and use "Get Date/Time" or what ever you want. You will then get a unique filename for each TDMS file

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 2 of 3
(2,804 Views)

For the first question, you need to program in your application which monitoring or bookeeeping the data values you logged to TDMS. And if you want to know how many data values in a TDMS channel, you can get the value of property "NI_ChannelLength".

0 Kudos
Message 3 of 3
(2,783 Views)