09-02-2014 04:14 AM
Hello,
I would like to store acquired data in a TDMS file. The complete DAQ is running through a sequence within a while loop. At the end of the sequence I now included another frame where I would like to save the acquired data. Timing information is not relevant.
When I build an array from local variables and connect it to the "Signals" of the ExpressVI I get a nice TDMS file with values at each iteration. Is there a possibility to get the signal name in the header? For now it says "Untitled".
Also my TDMS has like seven sheets although I only created an array with three variables.
Any help would be appreciated 🙂
Cheers from Germany
Solved! Go to Solution.
09-02-2014 04:59 AM - edited 09-02-2014 04:59 AM
Hallo Horst,
es gibt da auch ein deutsches LabVIEWForum…
- Using sequences and local variables sounds like bad program design.
- You could use simple TDMS functions, you wil find them in the file functions palette. There are also example VIs coming with LabVIEW explaining how to use them!
- How did you configure your ExpressVI?
09-02-2014 06:35 AM - edited 09-02-2014 06:45 AM
Hallo Gerd,
danke für den Tipp, aber jetzt bin ich schonmal hier....
- OK, for that I will try to improve my design anyhow,I just read the "5 common rookie-mistakes"
- I found the TDMS functions although without example VIs. I'll try to get them to work with the help files //edit: found the examples, will look into them
- I didn't change much, just the format setting to TDMS instead LVM
If this approach is not the correct one from a "good-design" point of view please tell me what would be better
09-02-2014 07:01 AM - edited 09-02-2014 07:03 AM
Hi Horst,
Is there a possibility to get the signal name in the header? For now it says "Untitled".
Well, using simple TDMS functions you can set any signal property you like!
Using waveforms with their special attributes (as explained in the LabVIEW help) will result in proper signal names in the TDMS file too…
Also my TDMS has like seven sheets although I only created an array with three variables.
That's because you set to include a "header per segment". Don't do this if you don't like the result!
As said before: using simple TDMS functions gives you much more control on the file layout!
Regarding "good design":
So it will look when you get rid of local variables and the sequence structure! I appended the TDMS-FileViewer to check the created TDMS file…
09-02-2014 07:14 AM
Here's a quick example that doesn't use the Express VI, but the actual TDMS API VIs.
You can change the group name as it is just an input to the TDMS Write.