LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to a single TDMS file simultaneously from different pieces of Hardware

I am trying to write to a single TDMS file from multiple sources. One source is MS/s and the others are just Samples/s.

 

I am not sure if the best approach is to simple create multiple TDMS files and combine the data aftewards, put all TDMS writes in the same while loop or create three seperate while loops but write to the same TDMS file in all of the loops. All three of these architectures have pros and cons so I am looking for the community to eliquantly help me to decide.

0 Kudos
Message 1 of 4
(2,816 Views)

The simplest way is to just write to the same TDMS file.  Use a different group for each sampling rate.  You could probably handle this properly with a single loop that just does the writing.  Just include some information in your queue data about which group the data should go into.  Be sure to do a defrag of the file at the end to reduce the file size.


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 2 of 4
(2,790 Views)

I have the same issue, but I have hard time figuring out how to put 2 different data (as 2 different groups) into the tdms due to the fact that there is only one input for data in the icon.

 

I understand your solution but I do not know how to implement it, so I will appriciate if you could explain in detail or suggest a tutorial somewhere.

 

Thanks.

0 Kudos
Message 3 of 4
(796 Views)

Hi outis,

 


@outis323 wrote:

how to put 2 different data (as 2 different groups) into the tdms due to the fact that there is only one input for data in the icon.


What about using two TDMSWrite functions, one for each group, one after the other?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(787 Views)