LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

tdms logging stop time

Solved!
Go to solution

Hi, 

I'm using DAQmxConfigureLogging function and it works very well for my application. But I'd like to know if is it possible to automatically log wf_stop_time beside of wf_start_time in the TDMS file. Should I use TMDS library and manage this information via software? Thanks

 

0 Kudos
Message 1 of 3
(2,870 Views)

Hi,

 

the TDMS is a binary file format wherein a "header" describes the data layout (names of groups/channels, properties, raw offset information). After a header comes data. If a group name changes or the data layout changes in any way in between TDMS Write calls, a new header must be written to disk in addition to the data.

You can set up properties to the file, group or channel using TDMS Set properties function.

 

TDMS set properties function

http://zone.ni.com/reference/en-XX/help/371361H-01/glang/tdms_set_properties/

 

Reguards

 

A.P.

0 Kudos
Message 2 of 3
(2,836 Views)
Solution
Accepted by carlorfeo

CVI equivalent of the function mentioned by A.P. is TDMS_SetFileProperty, which implies opening the file after acquisition is done and updating the property set.

Nevertheless, in my opinion this is not needed, as you can calculate end time with wf_start_time + Lenght * wf_increment (in seconds)



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 3 of 3
(2,827 Views)