11-21-2025 03:34 AM
Hi! I am enjoying LabVIEW for the first time to complete a lab project (it's a school project). I ask for advice and clarifications on TDMS file operations. Here is what I want to do: I have a four-channel oscilloscope with an extra input for an external trigger. Everything works fine: I get the trigger, then read the four input channels and analyze the data. I would like to store these readings to have the opportunity to repeat the analysis at home (perhaps with a different algorithm), so I tried to put the data on a TDMS file. I have to add that the whole set of data consists of at most one thousand trigger events. The time window is 2 μs, and the sampling frequency is 4 GHz.
After the usual trial-and-error, I succeeded in storing all the data in one TDMS file: I store all the data in a global variable, then I write the file. I create a group for each trigger event and four channels in it with the measurements of the four physical channels of the oscilloscope. Is there a better way to get the job done? I would like to save the data in chunks, perhaps every 100 trigger events, but I failed. Is it possible to append new data to an existing TDMS file?
Thanks
11-21-2025 11:53 AM
I haven't used TDMS, but I do know how to search the Web. I found this earlier example post in this LabVIEW Forum which seems to be a demonstration of how to "do an append to TDMS file".
I recommend that you check this out and see if this handles your problem. If so, you can give a "Shout-out" to @Hooovahh who contributed this Example Code. Also, please be sure to reply to the Forum if this does, in fact, solve your problem so other Forum users can benefit.
Bob Schor