LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating a Control or Indicator of a Top Level VI from a SubVI

Solved!
Go to solution

I am trying to pass the value of a subVI indicator to the mainVI indicator while the subVI is running.

At the same time I am controlling SubVI while Loop Stop condition from a control in Main VI.

(See Code Attached)

 

Stop button control is working fine, however the problem is that the indicator vilue is not passing to Main VI in Run time and is only passing after SuVI execution is over.

 

Is there iny mistake  in the code, or ther is a better way available to do this???

 

Please Help!!! 

0 Kudos
Message 1 of 5
(3,695 Views)
Try to use without flat sequence ?
Use Functional Global Variable to transfer from sub vi to main vi during run time.
----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 5
(3,685 Views)
Solution
Accepted by topic author alt_234

You need to feed a reference to the meter that is located in the main VI into the sub VI through the connector panel as well.  In the subVI, you take in that reference and write to the value property node inside the subVI.

 

You basically did the exact opposite.

0 Kudos
Message 3 of 5
(3,673 Views)
Based on your attachment , you don't need to create sub vi .. single vi can do your job perfectly
----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 5
(3,669 Views)

@RavensFan wrote:

You need to feed a reference to the meter that is located in the main VI into the sub VI through the connector panel as well.  In the subVI, you take in that reference and write to the value property node inside the subVI.

 

You basically did the exact opposite.


@RavensFan
Thanks!!!

 

It worked as you said (see attachment)

0 Kudos
Message 5 of 5
(3,604 Views)