LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS-File: How to set channel description?

Solved!
Go to solution
Highlighted

Hello,

 

I am using the "DAQmx Configure Logging.vi" to capture the raw data of may measurements. That works fine.

 

DAQmx_Logging.png

 

At the end, after fiishing acquisition, I want to save the TDMS-File. For this, I want to add some properties to the TDMS-File. Using "TDMS Set Properties.vi" works, but ot for all properties. I am able to add name, description, title, author and date/time (the yellow cells in the screenshot). How ca I add the channel description (see green cells in the screenshot).

 

Excel_TDMS.png

 

My actual simple code to change the TDMS properties:

Set_Properties_VI.png

 

Thanks for your help.

 

Best regard,

Michael

0 Kudos
Message 1 of 3
(1,617 Views)

Hello Michael,

 

Check for the TDMS Set Property Function in the Help, or the example in labview/examples/File IO/TDMS/Standard Read and Write/TDMS Write Time Domain.vi

 

The only thing you need to correct in your code is the property name.

 

In the help for the TDMS Set Property function you can find all property names as they should be referred when using TDMS.

Guilherme Correa
0 Kudos
Message 2 of 3
(1,610 Views)
Solution
Accepted by topic author MichaGue_01

If you want to write a property for the channel, you need to supply a Group and Channel so the function knows which channel the property goes with.  If a group is supplied but no channels, it assumes the properties for the group.  If neither are supplied, it assumes for the file.

 

Oh, and you should go give this idea a Kudos: Additional TDMS Metadata


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 3 of 3
(1,591 Views)