LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

the elapsed time problem !!

Solved!
Go to solution

1 the first timer runs until the red needle on AGI reachs the value X by moving the dial2 then it stops

2 the second timer runs after the first one stops

the problem is : when i reach the value X the red needle can't move anymore and the second timer doesn't stop until its limit
what i want is :- keep controling the red needle of AGI even when i reach the value X so i can move it away whenever i want
                        - the second timer must stop once i move the needle from the value X

-90<X<90

thank you

AR
0 Kudos
Message 11 of 20
(1,323 Views)

@ABDESLAM wrote:

1 the first timer runs until the red needle on AGI reachs the value X by moving the dial2 then it stops

2 the second timer runs after the first one stops

the problem is : when i reach the value X the red needle can't move anymore and the second timer doesn't stop until its limit
what i want is :- keep controling the red needle of AGI even when i reach the value X so i can move it away whenever i want
                        - the second timer must stop once i move the needle from the value X

-90<X<90

thank you


Okay, so after you move the needle again, what happens?  Is it supposed to go back and execute from the beginning with the new needle value?

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 12 of 20
(1,320 Views)

in the program the needle of AGI is stuck at the value once it reachs it, i can't move it anymore
but i want that it moves as the needle of dial2 moves. then the second timer will stop once i move it away from the value X
BTW the program must not to be run continuousely

thank you

AR
0 Kudos
Message 13 of 20
(1,313 Views)

you're not using the "run continuously" button, are you?  that button should NOT be used except as a debugging tool.

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 14 of 20
(1,309 Views)

hey i saw your program. but i want to control the dial2 while the execution of the program.

and my probleme is about the elapsed time while the red needle of AGI maintains the value.

thank you

AR
0 Kudos
Message 15 of 20
(1,305 Views)

hi,

 

Is that what you want ? (see attachment)

 

(P@Anand is right.... add delay to my loop if you use it, even 1ms delay)

0 Kudos
Message 16 of 20
(1,304 Views)

no the run continuousely button shall not be used to have a correct execution

AR
0 Kudos
Message 17 of 20
(1,302 Views)

hi @amitai ur program is good but not what i want because it stops once i get to the value X that i define
i want to calculate the elapsed time to reach the value X also the elapsed time before i leave it again then it should stop

AR
0 Kudos
Message 18 of 20
(1,289 Views)
Solution
Accepted by topic author ABDESLAM

the second timerin my example is in milisconds,

Change it to 5000 (ms)

and change the dial above the setpoint from the Digital Display

0 Kudos
Message 19 of 20
(1,281 Views)

hey "amitai.abramson" :

you did it my friend !

thank you very much 🙂

and thnaks to all of you guys for helping

AR
0 Kudos
Message 20 of 20
(1,257 Views)