LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fractional seconds with digital presision?

Solved!
Go to solution

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 

0 Kudos
Message 1 of 6
(7,211 Views)

Sam,

 

use Seconds to Date/Time in order to retrieve the fractional seconds. 

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 6
(7,208 Views)

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 

0 Kudos
Message 3 of 6
(7,194 Views)
Solution
Accepted by topic author ssteel

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.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 4 of 6
(7,188 Views)
I just stuck an indicator on the end of the vi, it makes sense now. But how do I split the out going cluster up, so that I can get the information I want?
0 Kudos
Message 5 of 6
(7,186 Views)

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

 

 

Message Edited by Phillip Brooks on 08-25-2009 09:36 AM
0 Kudos
Message 6 of 6
(7,169 Views)