08-25-2009 06:09 AM
Im trying to use Get Date/Time In Seconds.vi in conjunction with Format Date/Time String.vi to get tyhe precision fratcional seconds. From the context help Im trying to use the %<digit>u, but it just wont work, I can use %Y and get the year or even %S to get regular seconds but not fractional seconds?
Cheers,
Sam
Solved! Go to Solution.
08-25-2009 06:19 AM
Sam,
use Seconds to Date/Time in order to retrieve the fractional seconds.
hope this helps,
Norbert
08-25-2009 07:50 AM
I have had a look at the Seconds to Date/Time.vi but I cant work out how to get what the individual parts of the date and time outputted. In the context help it has a sublist of date time rec, including fractional seconds, how do I get that out? I, not sure what the help is telling me?
Cheers
08-25-2009 08:07 AM
Sam,
you can create an indicator of the output of Seconds to Date/Time by rightclicking on the output terminal and select "create >> indicator". Run the VI once in order to update the indicator.
The indicator will have different "sections" with different information. The first one would be "fractional seconds". You can extract this component using the Unbundle by Name primitive found in the cluster palette.
hope this helps,
Norbert
PS: Maybe you should spend some time to accomplish this tutorials.
08-25-2009 08:09 AM
08-25-2009 08:36 AM - edited 08-25-2009 08:36 AM
Here is an example using %5u. It works for me (LabVIEW 7.0)
Try this format string to start: %Y-%m-%d %H:%M:%S%5u