ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get variable from subpanel

Solved!
Go to solution

Hi,

 

May I know how to get the variable from the subpanel VI?

 

Please see my VI, when I start the test in any of the subpanel, I can't get any variable in the "Get All Control Values Variant" indicator.

 

Is there any wrong?

 

Thanks.

 

 

0 Kudos
Message 1 of 7
(3,543 Views)

Just a short guide for my VI here, kindly start from 2x2.vi, and load the sequencer.vi in the path to run.

0 Kudos
Message 2 of 7
(3,541 Views)

Try this:

Put a For Loop at the end, just before you close the reference to the VIs. like shown below.

 

Try this.png


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 3 of 7
(3,530 Views)

Hi 1983,

 

If I would like to get the variable before the exit button is pressed, how can I do it?

 

Thus I can see the variable will be keep varying in the "Get All Control Values Variant" indicator.

 

I would like to do that, because I wish to put the array indicator into another tab page.

 

I tried to move your new for loop to the front of the event loop, it is not worked.

 

Thanks.

0 Kudos
Message 4 of 7
(3,500 Views)

Pass a queue, notifier, or user event into the subpaneled VI, and listen for it in the calling VI.

0 Kudos
Message 5 of 7
(3,488 Views)
Solution
Accepted by topic author TanTan

Try this:

 

 


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 6 of 7
(3,482 Views)

Hi 1983,

 

Thanks my problem is solved!

0 Kudos
Message 7 of 7
(3,474 Views)