07-29-2014 06:27 AM
Hello,
i record a lot of data from my plc and want to write it to a measurement file in tdms format.
the problem is the files are very big, if i use the "write to measurement file"-express-vi.
If i use the"TDMS Write"-Function instead the files are much smaller, with nearly the same settings.
Is there a way to use the Express-VI with the same effiency if i would use the "TDMS Write"-Function?
Why are the files so big if i the express-vi?
Solved! Go to Solution.
07-29-2014 06:40 AM
In general, avoid using express VIs. They tend to just be something that you can put down and quickly have something that will work. They also tend to be inefficient. In the case of the Write To Measurement File, it opens and closes the file each time you call it. With TDMS, that causes a lot of overhead in the file. If you did a TDMS Defrag on each of your two files, they should come out to about the same size.
07-29-2014 09:35 AM
Ok Thank you very much.
Just one last question, how can i rename the different signals in the tdms file? Now they are names "untitled x". I am looking for an elegant solution, because i record about 200 different Signals.
07-29-2014 10:28 AM
It looks like you can do that with the Set Dynamic Data Attributes. One of the inputs is Signal Index and another one is Signal Name. Using a FOR loop, you can create an array to set all of the signal names.
07-29-2014 02:12 PM
I doesn't work, or is it wrong?
07-29-2014 02:27 PM
Solution:
07-30-2014 07:07 AM
@manuwestern wrote:
I doesn't work, or is it wrong?
You needed to use a shift register to hold your Signals. Then it keeps the values you added between iterations.