LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write one tdms files in 2 producer consumer loop

I want to write data in tdms file. I have 4 loops which is 2 producer and 2 consumer. I need to write the data in same tdms file in two groups. How can i do it?

test Vi is attached so idea should be clear

0 Kudos
Message 1 of 5
(193 Views)

I want to write data in tdms file. I have 4 loops which is 2 producer and 2 consumer. I need to write the data in same tdms file in two groups. How can i do it?

test Vi is attached so idea should be clear

0 Kudos
Message 2 of 5
(192 Views)

Try the attached modification.
Here is a snippet:
Test(2) Snippet.png

Necessary Changes:
Open TDMS Reference before loops start.
Close TDMS Reference after both loops complete.

Recommended Change:
Use Share Stop Signal VI to stop all loops while only requiring a single Stop button

If you need to eventually span multiple files  due to file size or just duration of test, you will need a more sophisticated approach.

Good luck!

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
Message 3 of 5
(157 Views)

For those that may not be familiar with Share Stop Signal VI, it ships with LabVIEW and can be found here: <LabVIEW>\vi.lib\ChannelSupport\Share Stop Signal.vi

It is not in the palette, and I don't think Quick Drop finds it, but it is still a handy utility for cases like this.

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
Message 4 of 5
(108 Views)

Thats a nice tidbit of information to put in my back pocket. Thanks




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 5 of 5
(87 Views)