LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

the elapsed time problem !!

Solved!
Go to solution
Hi ! am working on a program that calculates the elapsed time (for the needle of the gauge to reach a value which is previousely defined) also the elapsed time while the needle is maintained at the same value, which means there are two time counters, the first one stops when i reach the value and the second one stops when i leave it. everything works except that when i reach the value the needle gets stuck there and can't be moved so the second timer doesn't stop. regards...
AR
0 Kudos
Message 1 of 20
(3,411 Views)

Please post the vi you made. Its tough to assume things based on the explanation of what is happening.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 20
(3,408 Views)

HERE IS THE PROGRAM I'VE MADE /

AR
0 Kudos
Message 3 of 20
(3,401 Views)

Please post in 2011 version

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 20
(3,392 Views)

here it is :

AR
0 Kudos
Message 5 of 20
(3,387 Views)

To be honest I didn't understand the concept you are trying to implement. Here is what your code does

 

1. Your Dial 2 is your control and you have directly wired the output to the other dial and the time you have configured in the Elasped timer itself so it always runs until 10 seconds and then stops

2. In your second while loop you are using a Elasped timer again with a configured value of 10. Also the loop takes the value from loop1 which means its not executing until loop1 is executed

3. You have to have the time delay inside the loop and not outside, now your loop is greedy by taking the total usage of your PC.

 

Please explain the concept you are trying to implement

-----

The best solution is the one you find it by yourself
0 Kudos
Message 6 of 20
(3,359 Views)

Hi,

 

In the real application.

What is the source value for the Gauge ?

Data Acquisition ? User Setting ?

0 Kudos
Message 7 of 20
(3,350 Views)

the program does exactly what u just said !
but i don't understand the number 3 sentence.
well am working on a project on a link flight trainer and i want to calculate the time that the pilot takes to go from 0 to 30 degrees for example on the Attituge gyro indicator then it calculates the time while he's maintaining this value.
dial2 = the handle of the simulator
AGI = attitude gyro indicator ( it indicates the degree of turn of the plane)

i hope u understood what's it all about

thank you

AR
0 Kudos
Message 8 of 20
(3,347 Views)

@ABDESLAM wrote:

the program does exactly what u just said !
but i don't understand the number 3 sentence.
well am working on a project on a link flight trainer and i want to calculate the time that the pilot takes to go from 0 to 30 degrees for example on the Attituge gyro indicator then it calculates the time while he's maintaining this value.
dial2 = the handle of the simulator
AGI = attitude gyro indicator ( it indicates the degree of turn of the plane)

i hope u understood what's it all about

thank you


What he's trying to say is he doesn't understand why the time delay is hanging off the end of the while loop like that.  Since it won't execute until after the first while loop is complete, what does it do?  If you're hoping it will induce a wait in between the two while loops, it might accidentally work that way, but since the second while loop and the time delay are running in aprallel, there's no way to determine which will happen first.

 

BTW - if you already know what the code does, what, exactly, is your question?  How does what it is doing differ from what it should be doing?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 20
(3,338 Views)

The 3rd point is, you should not run a while loop without a delay otherwise it will eat all your PC usage.

 

Are you looking something like this?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 10 of 20
(3,334 Views)