LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Quering a TDMS file

Solved!
Go to solution

I am rather impressed with ease and efficiency of TDMS logging especially with Daqmx Configure Logging.vi bypassing OS non-determinism and storing straight in defined file within Hard Drive.

I managed to store a large TDMS file logging over 250KS/s.

Initally I thought I would have to do database programming but TDMS technology seems to be working ok. There is however a limitation which probably could not be resolved and I might need to reconsider the databases.

How much data could we load on a 1000 px graph logging over 100KS/s. I designed some customized cursors and they only work when file is logged at 1KS/s for duration nearly an 1hr. At any higher sampling rate, my beloved cursors just go unresponsive!!

Secondly, the only sort of 'Quering option' that I could see with TDMS is using 'TDMS Set Next Position' vi. Like with databases, could we tell TDMS to extract say all points from 2200 to 2300 pm?

Many thanks in advance

K Waris

ATE and Labview Consultant
https://www.easybodge.com
0 Kudos
Message 1 of 3
(2,867 Views)
Solution
Accepted by topic author k-waris

The TDMS Read does have an Offset and Count inputs to just get the samples you want.  The hard part will be figuring out which samples you need.  It will just take a little bit of math since you know the start time and the sample rate.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(2,858 Views)

If you are writing code to generate your own graphs the offset and length are probably the tools you want.  But if you are looking to open large TDMS files in general, I suggest Scout by Signal X.  Very useful tool that handles large files with lots of graphing tools.  I believe it is still free for most features.

 

https://www.ni.com/en/support/downloads/tools-network/download.scout-tdms-editor.html

0 Kudos
Message 3 of 3
(2,751 Views)