LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Kudos
Message 1 of 8
(4,138 Views)

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 of 8
(4,134 Views)

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 Kudos
Message 3 of 8
(4,121 Views)

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 Kudos
Message 4 of 8
(4,122 Views)
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 Kudos
Message 5 of 8
(4,114 Views)

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 of 8
(4,110 Views)
Maybe the attached vi shows what you are trying to accomplish?  It involves using local variables.
 
- tbob

Inventor of the WORM Global
Message 7 of 8
(4,088 Views)
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 Kudos
Message 8 of 8
(4,075 Views)