DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Diadem: Save as time vector as "DDC_Timestamp"

Hello,

 

I am writing measurement data into .tdms files using LV 2009 SP1. Time is recorded in timestamp format into a seperate channel. Due to an error in group and channel naming on the LV side, I have renamed group and channel names in existing .tdms files using Diadem 11.1.

Apparently, the result was that the format of the time channel is no longer "DDC_Timestamp" but "DDC_Double".

 

I use Matlab for postprocessing the data, and in order for my scripts to work, the time channel needs to be in "DDC_Timestamp" format. Is it possible to modify the .tdms file in Diadem in order to re-convert the time channel format from "DDC_Double" into "DDC_Timestamp".

 

Any help is appreciated, best regards

Philip

 

0 Kudos
Message 1 of 8
(4,989 Views)

HI Philip,

 

what you can try is, changing the property " Anzeigeformat" or "displaytype" of the channel. The thing is, that even timechannels are stored as float 64 bit format on the disc. So the only difference is the way DD interprets the data. Try that!

 

cheers, RMathews

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 2 of 8
(4,977 Views)

Hi RMathews,

 

thank you for your reply. Unfortunately this did not seem to work for me. When reading the tdms file into Matlab, the function DDC_GetDataType still returns "DDC_Double" for the time channel.

 

I also tried the ChnPropSet("Timegroupname/timechannelname","datatype","DT_Date") function from within the Diadem Script panel, but this returns an error. I am not familiar with using the Diadem functions.

 

Philip

0 Kudos
Message 3 of 8
(4,975 Views)

Do you save the channel in LabVIEW as a timechannel? Or as a numeric channel? Maybe we can change here something.

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 4 of 8
(4,973 Views)

Hi RMatthews,

 

LabVIEW has the option to save the time channel data as either a double (orange) channel or a set of 8 U16 integers (brown).  DIAdem only has the option to store time channel data as a double.

 

You could rename the channels/groups in LabVIEW instead of DIAdem and preserve the (brown) datatype of the time channel that way.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 5 of 8
(4,965 Views)

Hi RMatthews,

 

I asked R&D about this and got updated information.  DIAdem 11.1 and previous versions behaved as I described above, namely they always saved DBL time channels in TDMS 1.0 files.  DIAdem 2010 and later versions always save the same integer cluster time channels that LabVIEW does, using TDMS 2.0.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 6 of 8
(4,952 Views)

Hi Brad,

 

thanks for that information, that will be be hopefully helpful!

 

Thanks a lot, Mona

Ramona Lombardo
Applications Engineer, NI Germany
Certified LabVIEW Developer
0 Kudos
Message 7 of 8
(4,945 Views)

Hello Brad, RMathews,

 

a little bit late, but thank you very much for your numerous replies. Much appreciated!

 

cheers,

Philip

0 Kudos
Message 8 of 8
(4,875 Views)