04-17-2009 08:25 AM
I need to periodically store spectra from 4 voltages and 4 currents, each spectra signal has 100 spectral lines. This means 800 spectral lines is one record which is created each aggregation interval (200ms up to 10 min – user selectable). For long time I use binary data format for this and it works fine and fast. Now I need to optionally store data into TDMS data format for my customer who want to process them in DIAdem.
I prepared two vi demonstrating storing same data into BIN and TDMS file.
The
difference for same amount of data is huge:
-BIN file is writen and closed in a moment.
-TDMS is written in about 8 seconds, closed in 2 seconds and eventually defragmented again in few seconds.
My questions are:
- can be found more effective structure of TDMS file
- is TDMS file usable for periodic on-line data storing of spectra data in parallel with extensive calculation?
Of course the easiest way is to stay with binary format and make dataplugin, but I want to use one TDMS file for periodic data and event data - this seems to me like great feature. Now I need to use several files with different suffixes for one measurement (e.g. 1 day, 1 week).
I will appreciate very much any suggestions.
Bilik
04-21-2009 02:18 AM
Hi Bilik,
please check also:
http://forums.ni.com/ni/board/message?board.id=170&message.id=402522
thanks,
mark