04-18-2013 04:22 AM
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
Solved! Go to Solution.
04-22-2013 10:08 AM
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.
04-22-2013 10:48 AM
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)