06-01-2016 01:35 PM
I am trying to duplicate some property selection features of the Data Logging control found in the VeriStand workspace in a Labview application ( I wish I could just get the VI for the workspace control). In the Data Logging control properties -> Channels category the Time Channel can be selected. When I select absolute time it records the System Path = "Targets/Controller/System Channels/Absolute Time". But I get a the TDMS property NI_DataType = 68. If I manually select the channel (add channels) it gets a NI_DataType = 10. The difference looks to be that the NI_DataType = 68 has the time formated nicely (M/D/Y/ hr:min:sec) while the NI_DataType = 10 has the time in a big number representing the number of seconds. The NI_DataType is read only. How do I get the nice formating of NI_DataType = 68 to be recorded like that? Is this post processed? if so how do I do that?
Thanks!
Solved! Go to Solution.
06-02-2016 03:34 PM
There are certain LabVIEW functions that enable a programmer to manipulate the representation of time. This line of thinking pertains to a post-processing solution to your problem statement, which is likely the simplest way forward. The following forum thread provides some good context.
'Convert Seconds to Hours:Minutes:Seconds'
http://forums.ni.com/t5/LabVIEW/Convert-Seconds-to-Hours-Minutes-Seconds/td-p/2214246
For additional formatting options, you can use the Format Date/Time String function.
'Format Date/Time String Function'
http://zone.ni.com/reference/en-XX/help/371361M-01/glang/format_date_time_string/
Hope this helps!
06-09-2016 09:21 AM
I found that the TDMS Channel Group (NI_VS Data logging API.lvlib) type def that gets wired to the New Data Logging Specification.vi has a Time Channel Options type def that allow the different time channels to be configured and named.