LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Variable scope, how to set a variable from subvi??

Solved!
Go to solution

Suppose we have a vi name  "example.vi" and this vi calls anothe vi name "SUBVI.vi". eaxmple.vi has an indicator name Boolean1. I want to set Boolen1 WHILE (this is very important) SUBVI is executing.

 

I attached the above vi's. Can you suggest a way to solve this problem?

0 Kudos
Message 1 of 4
(3,452 Views)
Solution
Accepted by topic author Hüseyin

Well you can update the reference to the boolean control in the mainVI from the subVI. Have a look at the following KB aricle:

How Can I Update the Changes Made to a Control/Indicator from a SubVI on the Main VI?

 

So, when the subVI starts execution, set the boolean to TRUE and when done, set it to FALSE.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 4
(3,449 Views)

Thanks Adnan, that's what i want 🙂

Are you Turk? your name is used in Turkish. 

0 Kudos
Message 3 of 4
(3,422 Views)
No, I am not Turk. 'Adnan' is an Arabic name and since Turkey is majority Muslim (I do know it's officially a secular state), I would assume most names over there would be similar to Arabic ones.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 4 of 4
(3,404 Views)