09-24-2013 10:12 AM
Hi guys. I want to realize a clock that show me hours and minutes. I was using the elapsed time.
Could you check if this solution is fine?Because I'm not so sure if I have done mistakes.
Solved! Go to Solution.
09-24-2013 10:39 AM
The first issue I see right off the top is your elapsed time in seconds is never going to equal 60, at least not every minute like you expect it to occur.
09-24-2013 10:58 AM - edited 09-24-2013 11:18 AM
you can always use "tic count"
09-24-2013 11:26 AM
Personally, I'd convert the elapsed seconds to a timestamp and play around with the timestamp display to be "HH:MM:SS".
09-25-2013 02:00 AM
Hi cross what are those timestamps you are talking about?can you do an example?I'm curious to learn this feature.
Thank you
09-25-2013 07:36 AM
A timestamp is an internal LabVIEW data type. You can find controls in the Numeric palette. It's use is very common in both VIs and LabVIEW primitives. For example, on the Timing palette, many of the VIs use it for inputs and outputs. The Waveform Data Type (WDT) used by most NI data acquisition APIs, contains a timestamp.
Timestamps come in two flavors - relative and absolute. Absolute timestamps contain the number of seconds since midnight, January 1, 1904. Relative timestamps shift this epoch to something more convenient for the particular use case. For example, the NI-SCOPE driver returns WDTs whose timestamp is the time of the first data point relative to the trigger position in the waveform. Under the hood, timestamps are a 128 bit fixed point number with enough range and resolution for all but the most demanding situations.
Check out the LabVIEW help for more information.
09-25-2013 10:45 AM
something like this...
09-25-2013 11:22 AM
Why convert to a time stamp? You can drop a numeric indicator, go into the display format properties, and set it for relative time.
09-25-2013 11:33 AM
also, you are right....