NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
mi007
Posts: 13
0 Kudos
Accepted Solution

stopwatch with autoreset

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

Active Participant
P@Anand
Posts: 1,617
0 Kudos

Re: stopwatch with autoreset

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

-----

I don't believe in Hard work. I love my work :smileyhappy:
Member
mi007
Posts: 13
0 Kudos

Re: stopwatch with autoreset

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.

Active Participant
P@Anand
Posts: 1,617
0 Kudos

Re: stopwatch with autoreset

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

-----

I don't believe in Hard work. I love my work :smileyhappy:
Member
mi007
Posts: 13
0 Kudos

Re: stopwatch with autoreset

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

Active Participant
P@Anand
Posts: 1,617
0 Kudos

Re: stopwatch with autoreset

Check the attached code for reference.

 

 

-----

I don't believe in Hard work. I love my work :smileyhappy:
Member
mi007
Posts: 13
0 Kudos

Re: stopwatch with autoreset

perfect......perfect......perfect. thanks brother you just saved my lot of time. thanks once again..
Member
mi007
Posts: 13
0 Kudos

Re: stopwatch with autoreset

can you tell me how to get this final value out of these 2 case structure unchanged.
Active Participant
P@Anand
Posts: 1,617

Re: stopwatch with autoreset

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

-----

I don't believe in Hard work. I love my work :smileyhappy:
Member
mi007
Posts: 13
0 Kudos

Re: stopwatch with autoreset

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.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page