annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

How can I opearate indicator outside while loop?

I do small program, I have many while loops and I want to connect wire (in my application) from each loop to AND gate then to another while loop, but how can I operate these wires to agree with the change of my application inside while loops.
 
If not clear :
In another words, suppose I want to operate indicator ouside the while loop. How can I operate indicator outside while loop, so when my application become TRUE (inside while loop) the indicator will be ON (outside while loop) and when my application become FALSE(inside while loop) the indicator will be OFF (outside while loop).
 
 
Help me if you have any idea please..........................
0 Compliments
Message 1 sur 8
4 367 Visites

Hi

Use a property node of that indicator inside the while loop and pass the value to it

Look at the attached VI

regards

Dev

 

Message 2 sur 8
4 363 Visites

Thank you devchander for helping but,

I'm sorry, I explained the problem incorrectly when I wrote the second pragraph (if not clear), I don't want just the indicator will be ON, I want the wire that comes out from the while loop will become TRUE if it in my application is TRUE inside while loop and the opposite is true. Because I want to connect the wire that comes out from while loop to AND gate than to another application, so must the wire agree the change of my application even that wire outside while loop. can I ?

 

0 Compliments
Message 3 sur 8
4 350 Visites

Thank you devchander for helping but,

I'm sorry, I explained the problem incorrectly when I wrote the second paragraph (if not clear), I don't want just the indicator will be ON, I want the wire that comes out from the while loop will become TRUE if it in my application is TRUE inside while loop and the opposite is true. Because I want to connect the wire that comes out from while loop to AND gate than to another application, so must the wire agree the change of my application even that wire outside while loop. can I ?

 

0 Compliments
Message 4 sur 8
4 351 Visites
Hello Rammo,
 
if I understand right, you like to run the while loop and want to transfer the current values with a wire to the outside!? I think, in touch with while loop, this will not be possible, because the while function transfers wired datas only to the outside of the loop, if the loop has finished.
You can try to write the current values from the while loop into a local or global variable and process them in this way.
 
 
Regards
ThomasD
0 Compliments
Message 5 sur 8
4 343 Visites

Hi Rammo,

For the wire to carry the boolean condition from the while loop to an 'and' gate outside, the while loop must stop running

If you want the while loop to keep on running and still pass a boolean value to a destination outside the while loop, use any one of these: property nodes, global or local variables.

i am still not clear as to what you intend to say by this sentence

" I want the wire that comes out from the while loop will become TRUE if it in my application is TRUE inside while loop and the opposite is true. Because I want to connect the wire that comes out from while loop to AND gate than to another application"

plz tell me if the first part of this mail of mine answers your doubt or do you need more information?

 

regards

Dev

 

 

 

Message 6 sur 8
4 339 Visites
Maybe the attached vi shows what you are trying to accomplish?  It involves using local variables.
 
- tbob

Inventor of the WORM Global
Message 7 sur 8
4 317 Visites
Thank you guys so much.....
 
It's work properly, the solution was Local Variable, so thanks for helping and thank you tbob so much for the example that accombpished what I want.........
0 Compliments
Message 8 sur 8
4 304 Visites