LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS data timestamp

Hello,

its the first time i'm using tdms library to store data. What i need to do
is to store data from two sensors into a file.
I found the TdmsWriteBenchmark example. But what i'm missing is a column
with a timestamp. I get the data from the sensor at irregular intervals.
Thats why i need to add a timestamp every time i get a new set of data
values (one for each sensor). How can i realize that? I didn't find a
function in the TDMS library.
In the first step our customer uses excel to open the tdms files, but i
think its a good idea to create a time stamp that also works with diadem.
I think about creating a channel with date and time (04.12.2008 15:30:01)
but i'm not sure if that is the right solution.

Thanks for any help,

Norbert Rieper
Bremerhaven


0 Kudos
Message 1 of 3
(3,755 Views)

Hello Mr. Rieper,

 

in the ZIP-File attached you will find a C-file creating a timestamp. The format of that stamp you can change in that form you need.

So for your application you just have to add an additional channel and to write down the timestamp into it every time making an acquisition.

I hope I were able to help you with that information.

 

Best regards,

 

Johannes Graeper

Munich

Message 2 of 3
(3,721 Views)
Thanks for your help, thats what i had in mind, just adding an additional
chanel with the timestamp information.
But i think that it is a good idea to create the timestamp in the DataType
TDMS_Timestamp which is an array of CVIAbsoluteTime, so its more useable in
DIADEM and i hope it works with excel import too......

Norbert Rieper



"JoGrMu" <x@no.email> schrieb im Newsbeitrag
news:1228732832961-820419@exchange.ni.com...
> Hello Mr. Rieper,&nbsp;in the ZIP-File attached you will find a C-file
> creating a timestamp. The format of that stamp you can change in that form
> you need.So for your application you just have to add an additional
> channel and to write down the timestamp into it every time making an
> acquisition.I hope I were able to help you with that
> information.&nbsp;Best regards,&nbsp;Johannes GraeperMunich
>
>
> time.zip:
> http://forums.ni.com/ni/attachments/ni/180/38826/1/time.zip


0 Kudos
Message 3 of 3
(3,715 Views)