03-21-2013 05:51 PM
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
03-21-2013 05:57 PM
@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?
03-21-2013 06:06 PM
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
03-21-2013 06:10 PM
you're not using the "run continuously" button, are you? that button should NOT be used except as a debugging tool.
03-21-2013 06:18 PM
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
03-21-2013 06:19 PM - edited 03-21-2013 06:21 PM
hi,
Is that what you want ? (see attachment)
(P@Anand is right.... add delay to my loop if you use it, even 1ms delay)
03-21-2013 06:21 PM
no the run continuousely button shall not be used to have a correct execution
03-21-2013 06:32 PM
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
03-21-2013 06:47 PM
the second timerin my example is in milisconds,
Change it to 5000 (ms)
and change the dial above the setpoint from the Digital Display
03-22-2013 03:46 AM - edited 03-22-2013 03:48 AM
hey "amitai.abramson" :
you did it my friend !
thank you very much 🙂
and thnaks to all of you guys for helping