annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Incorrect TDMS time stamp?

Risolto!
Vai alla soluzione

But lets say I sample at an unknown rate for 20 seconds, shouldn't I still expect the timebase to say 20 seconds, and not 1/2 an hour, as is sometimes the case?  

 

How do I set the time or sample rate? The TDMS documentation makes no mention of either.

0 Kudos
Messaggio 11 di 21
3.380Visualizzazioni
You really don't understand how a graph works. The time between samples is something YOU have to provide. Where would the graph get that sort of information if you don't write it to the file - telepathy? Study some of the shipping examples and take a LabVIEW tutorial.
0 Kudos
Messaggio 12 di 21
3.374Visualizzazioni
Soluzione
Accettato da grahamwebb

Hi Graham.

I have already mentioned that I have been using TDMS rarely. But my use cases always were writing continously acquired data to a TDMS file whereas the data acquisition was done at a fix sample rate and writing to the TDMS file was accomplished by writing a waveform.  That way, I got x-axis values with timestamps in the TDMS viewer.

Attached a small example that creates a TDMS with a sine wave.

0 Kudos
Messaggio 13 di 21
3.373Visualizzazioni

Thats a good suggestion - writing a waveform negates the need to write it manually!

Nick
0 Kudos
Messaggio 14 di 21
3.341Visualizzazioni

Thank you GuenterMueller. That works well. I'm still not sure how TDMS decides what value is to be the timestamp, but I'll play around with it.

 

 

Dennis, people come here to ask questions about things they don't know. I'm sure you know LabVIEW very well, but sarcasm isn't helpful.

0 Kudos
Messaggio 15 di 21
3.332Visualizzazioni

can someone resave the "solution" for LabVIEW 2009?

0 Kudos
Messaggio 16 di 21
2.881Visualizzazioni
At the top of the LabVIEW page is a link to the Version Conversion board - http://forums.ni.com/t5/Version-Conversion/bd-p/VersionConversion
0 Kudos
Messaggio 17 di 21
2.875Visualizzazioni

Thanks!

 

Anyway, the solution of that problem is still not very clear. I've a similar problem:

 

I have a to save one measured value each 1 to 3 seconds over a long period in a TDMS file. It depends on an external trigger when the value is captured. So each time when I sample this value, I take also a time stamp, generate a waveform consisting of the time stamp and an array with that one single value. Afterwards I save them as a waveform-type in a tdms file.

 

After finalizing the whole measurement I reload the tdms file in the viewer but unfortunatelly the timestamps are not correct there. Between all saved measurement points is the standard dt of 1 second, starting with the timestamp of the first value. Thus the measurement points are not dispayed at the correct capturing time.

 

So my two questions:

1) Are all timestamps saved?

2) Is it somehow possible to display each timestamp value with the measurement point which was captured at the same time?

3) If I would save the timestamp as data in a separate channel, is there a possibility to display them on the x-axis to the other channel in the TDMS Viewer?

 

Thanks for the answers.

0 Kudos
Messaggio 18 di 21
2.862Visualizzazioni

no idea?

0 Kudos
Messaggio 19 di 21
2.834Visualizzazioni

Older discussion, but I do have what I believe is the answer. As best as I can tell, when saving tdms data at least one shortcut is used to presumably cut down on overhead. When saving begins ONLY the first timestamp seems to be saved and all the rest are based on the waveform time increment. If you pause or use a variable time saving scheme the true timestamp is NOT saved for data after the first one even if you change it through the build waveform function. The timestamps will be based on the time increment value only. To get around this I save another column with actual timestamp information in it. I use this for the x values later during processing of the data. Works well enough for my use anyway.

 

Robert

 

Forgot to note, data ends up being nonperiodic and some math functions will not work with nonperiodic data - just keep that in mind. I talking about something like trying to do an FFT or something Smiley Lingua

0 Kudos
Messaggio 20 di 21
2.730Visualizzazioni