08-03-2009 05:14 AM
Hi,
I'm using LabView 7.1 and in my application I need a timer/clock which will do the following things depending on imputs
1. When I pass 1 as an input, the timer should not increament and stay in its previous position.
2. When I pass 2 as an input, the timer should start increamenting from the previous value
3. When I pass 3 the timer should clear itself and come back to 0.
I don't need much accuracy and just resolution of seconds will suffice.
Can anyone help me out as I'm new to the LabView
Looking forward for the help
Thanks
08-03-2009 05:30 AM - edited 08-03-2009 05:32 AM
You should use a Case Structure (equivalent of Switch Case in C) & pass the desired values (0,1,2) to it. So, there ll be 3 seperate cases in the CS for 0,1 & 2.
Perform each logic inside each of those cases as per your need.
Also, you need to put this CS inside a while loop & use Shift Regusters (SR) to keep track of the old value.
08-03-2009 05:35 AM
Hi,
Correct...I had thought of this scheme but I'm struggling with time operations...Don't know how to perform it...Could you please explain in detail...
Thanks
08-03-2009 06:02 AM
08-03-2009 11:29 AM