LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reverse the order of channels in a group of a TDMS file?

Solved!
Go to solution

Dear all,

I am trying to save a sequence of data arrays in different groups, ordered channel by channel.

However, I would need to reverse the order of the channel inside some groups!

For instance, in the exmple.vi I attach, how can I reverse the order of the channels in the group 1?

 

Thanks for helping!

Edo

0 Kudos
Message 1 of 5
(948 Views)
Solution
Accepted by topic author EdoardoA

1. Place TDMS Open outside of the loop. The VI will run much faster.

2. You can write multiple channels within a single group in a single TDMS Write. You can reverse the array before writing the data.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 5
(904 Views)

This is not exactly what I needed but the idea helped me in solving the problem!

Thanks a lot for helping!!

0 Kudos
Message 3 of 5
(871 Views)

Writing the data in the order you want from the start is the better option.  But here is some example code on how to rearrange the TDMS group and channel information after the file has been made.

 

https://forums.ni.com/t5/Example-Code/TDMS-Combine-and-Rerrange/ta-p/3782888

 

This is part of my Tremendous TDMS toolkit on VIPM.IO

 

https://www.vipm.io/package/hooovahh_tremendous_tdms/

0 Kudos
Message 4 of 5
(861 Views)

HI! I did check this tool already but since the amount of channels would be massive and the interchange quite recurrent I prefer to save them in the proper way and not post processing the TDMS file afterwards. Anyway, thanks for the answer!

 

0 Kudos
Message 5 of 5
(827 Views)