LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timing

I have a simple problem, but I am unclear on how to do this in labview.  I am doing a cycle test for valves and we need to time the closing cycle. I  have Labview set up so the open command and the stop command are on Binary signal. For instants, the valves begins to close labview reads a 1.. The valves is closed labview equals 0.

I need a way to calculate and show the time is take to close on labview.( the duration between 1 and 0)  I have been playing around with some case structures and while loops with the clock, but I can't seem to get a something that labview likes.

Any Suggestions? 

Message Edited by JoeyBeagen on 02-06-2006 08:21 AM

0 Kudos
Message 1 of 5
(2,932 Views)

How long is the average time between the 0 and the 1?

See if the attached will work for you. Inside the WHILE loop  you would keep reading the valve value.

When it is "1", stop the WHILE loop.

 

0 Kudos
Message 2 of 5
(2,909 Views)
The Time is about ten Seconds..... and we are doing 20,000 cycles
0 Kudos
Message 3 of 5
(2,899 Views)
How do you stop the while loop when the value is 1?  I tired using a True/False, but that doesn't work that same as the stop button so the timing loop always outputs the number 0 ?
0 Kudos
Message 4 of 5
(2,887 Views)

I'm not sure I understand your question.

Would it be possible for you to upload the VI?

 

0 Kudos
Message 5 of 5
(2,879 Views)