Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

stopwatch with autoreset

Solved!
Go to solution

i am trying to measure the rpm of a motor for which i had made a stopwatch which measures the time when the logic goes false, stops as soon as the logic goes true and starts again as the logic goes true. the problem i am  having is that i want it to display the time as the logic goes false and reset itself as soon as the logic goes true. i had tried so many things but till now not able to sought the problem. can anybody help me in completing this vi.the vi i had made uses a simulated signal for temperory time being i will connect it with the hardware later on as this problem get solve.

 

vi attached

0 Kudos
Message 1 of 11
(6,798 Views)

Is this you wanted to achieve? I have made a slight modification in your code check it.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 11
(6,785 Views)

thanks its working perfectly. how can i store the value of maximum time that i get before it restart. because then onlt i will divide 60 with the maximum value and can convert it into rpm.

0 Kudos
Message 3 of 11
(6,774 Views)

Just take the value coming from the shift register in the True case before making it as 0. That should be your maximum value.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 11
(6,764 Views)

how to do that. can you help me in that.

0 Kudos
Message 5 of 11
(6,755 Views)

Check the attached code for reference.

 

 

-----

The best solution is the one you find it by yourself
0 Kudos
Message 6 of 11
(6,750 Views)
perfect......perfect......perfect. thanks brother you just saved my lot of time. thanks once again..
0 Kudos
Message 7 of 11
(6,743 Views)
can you tell me how to get this final value out of these 2 case structure unchanged.
0 Kudos
Message 8 of 11
(6,728 Views)
Solution
Accepted by topic author mi007

Try to go through the Basic Materials of LabVIEW where you can see how you can use shift registers.

-----

The best solution is the one you find it by yourself
Message 9 of 11
(6,726 Views)

thankyou very ..very...much. i want to accept it as solution but how to do that because i had already accept the previous as solution.

0 Kudos
Message 10 of 11
(6,720 Views)