ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Coding Multiple TDMS Set Properties Efficiently

Solved!
Go to solution

I am trying to save some test settings as TDMS properties.  I have figured out the mechanics of saving individual properties to the file, but I have 25 or so properties to write to the file.  What is the most efficient way to code this in LV, so that I don't have to use the "TDMS Set Properties" block 25 different times?  I have tried sending the block arrays, but it doesn't like that.  Is there some kind of loop I can use?

 

Steve

0 Kudos
Message 1 of 5
(4,134 Views)
Solution
Accepted by topic author Steve Koza

For properties of the same or different data types, respectively:

 

 setprop.png

 

For more advanced use cases (clusters, arrays of clusters), there's a library on LAVA that'll split this stuff up into properties and put it back together on read. Unfortunately, the link I had to the LAVA discussion thread seems to not work any more.

 

Herbert

Message 2 of 5
(4,110 Views)

I recovered the link to the discussion thread, but the links to the code appear to be broken. I don't have a copy of the library available, so you might need to log into LAVA and send a message to PJM_LabVIEW.

 

Hope that helps,

Herbert

0 Kudos
Message 3 of 5
(4,105 Views)
That solution worked for me, Herbert.  I just had to change around some wiring and it worked.  Thanks!
0 Kudos
Message 4 of 5
(4,087 Views)

Another idea is this:

GetClusterElemNames.png

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 5
(4,073 Views)