11-09-2012 10:06 AM
@Wayne.C wrote:
Altenbach already did it the absolute simplest way to do it. Format an Integer indicator to display time.
I added that just as a bonus, because the question was not entirely clear. 😄 Yes, I actually had it first as a DBL, but the original question was talking about integers, so I adapted it.
It does not deal with the second (no pun :D) part of the problem:
"If it is possible to do the above, then how can I seperate it into 00 Hours indicator, 02 Minutes indicator and 03 Seconds indicator?"
And that's why I added the solution where we get three array elements. If that's still not "seperate" enough, an "index array" will probably help. 😄
11-09-2012 10:23 AM - edited 11-09-2012 10:55 AM
Of course a pure math solution such as P@Anand's above can also be "simplified", and that's probably what I would use (bottom of code):
(EDIT: corrected label mixup. Thanks crossrulz)
11-09-2012 10:34 AM
...except what you labeled at hours is really minutes and minutes and really hours for the "pure math" version.
11-09-2012 10:46 AM - edited 11-09-2012 10:49 AM
Yes, modify as needed. I will correct it later. Sorry about that. (It is correct here already...) 😄
11-30-2012 10:26 PM
this one also works 🙂
11-30-2012 10:57 PM
Actually, shalins, your VI does not work. Put in 123 seconds and see what you get. You need to lose the last "Quotient&Remainder". Wire the remainder from minutes directly into the format string for seconds.
11-30-2012 11:09 PM
@Shalins wrote:
this one also works 🙂
No, it does not work!! No matter what the input is, the "seconds" is always zero. Please check your work first. (the fix is easy, simply remove some code. 😉 Try it!)
(It is also about orders of magnitude more complicated than the above solutions and peppered with coercion dots. So what's the point?).
In additions, please stick to normal characters in filenames. Windows cannot deal with your file unless I rename it first.
12-01-2012 10:34 AM
@BillMe wrote:
Actually, shalins, your VI does not work. Put in 123 seconds and see what you get. You need to lose the last "Quotient&Remainder". Wire the remainder from minutes directly into the format string for seconds.
yes....I've fixed it 😉 thnx
02-11-2013 11:41 PM
I have a question similar to the forum so I decided to post here. I am also wanting to convert seconds to minutes, but I am using an array that shows me lap times that are accumulating. Can I apply the same type of solutions shown here to get an output in HR:MIN:SEC?
This is an example program I found, and am trying to alter for practice.
I attached a portion of the VI for clarification.
02-12-2013 01:43 AM
Late reply IUPUI, but you can use the same ideas. The easiest is to change the indicators format to show time.
/Y