LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

metric clock vi help

Hi
 
I am just trying to work out how to write a metric clock vi. All i'm looking to do is be able to set the time (in metric time, converting from conventional time to metric will come later) and have the clock tick away. I have made 10 seconds per minute because 100 seconds per minute takes ages and I can easily change it later when it all works. The problem is after 1 minute the seconds continue to climb instead of resetting to zero. Any ideas would be great
 
My vi is included (version 8.2)
 
Thanks
Mike
0 Kudos
Message 1 of 8
(3,660 Views)
It appears your problem is that you are only resetting the seconds to zero when your iteration count equals 10, rather than when your iteration count is divisible by 10.
 
You may want to use the quotient & remainder VI.
0 Kudos
Message 2 of 8
(3,659 Views)
Basic layout of VI's.
0 Kudos
Message 3 of 8
(3,656 Views)

Hi Ravens Fan

That looks really good. I'll give it a try. I'm 3 weeks into labview so i'm still a newbie and the solution looks so simple when I see it.

Cheers

Mike

0 Kudos
Message 4 of 8
(3,652 Views)
Here is the metric clock vi.
it can convert conventional (24Hr) time to metric.
 
Mike
0 Kudos
Message 5 of 8
(3,627 Views)

Hello Mike,

Very good.  It seems to behave the way you wanted it to.

But I'm curious.  What exactly is a "metric" clock?  Where do you use that representation of time as opposed to normal hours, minutes, and seconds?

-Bill

0 Kudos
Message 6 of 8
(3,618 Views)
Hi Ravens Fan

My father actually asked for this. He remembers when his country converted from imperial to metric units for distance and money and he wanted me to work out how to metricate time too.

The theory is that instead of breaking a day up into a randomly chosen number of units (ie today's 86400 seconds), why not break it up into an easy to use multiple of ten (100000 'new' seconds)? Hence metric.

The idea has been around for a while (just google metric time), but I doubt it will ever take over due to the sheer complexity of converting the world's timing benchmark.

I made it for interest sake, with no intended practical use.

Thanks for your help.

PS. Another idea my father has is simplifying the calendar year by having 30 days for every month and have the remaining 5 (or 6 for every leap year) blank days as a holiday for the world at the end of the year.

0 Kudos
Message 7 of 8
(3,603 Views)

Hi Mike,

Thanks for the lesson.  I had never heard of the concept of a metric time before.  You're right, it would never be accepted both because of general inertia of getting 5 billion people in the world to become comfortable with it, and the difficulties of getting it to mesh with the already established SI system and its second which is a basic unit of time which is key to many of the derived SI units.

I believe I have heard of the consistent 30-day month before.  I doubt that would ever happen either, but it would have a chance.

Thanks,

Bill

0 Kudos
Message 8 of 8
(3,598 Views)