From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS-File: How to set channel description?

Solved!
Go to solution

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
(4,124 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
(4,117 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
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(4,098 Views)