From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Which of all the subVIs is on top?

Hi,

 

My main VI opens the panel of several subVIs during its run. In a specific moment, how can I know which subVI is the top window/panel?

 

Yifat.

0 Kudos
Message 1 of 3
(2,282 Views)
Call Chain Function

 

from the Help:

 

Returns the chain of callers from the current VI to the top-level VI. Element 0 of the call chain array contains the name of the lowest VI in the call chain. Subsequent elements are callers of the lower VIs in the call chain. The last element of the call chain array is the name of the top-level VI.

If you are using the current VI as a subVI, you can use this function to identify all the VIs that call the subVI.

Richard






Message 2 of 3
(2,270 Views)
Each VI has a boolean property called "Is Frontmost". I haven't used it myself, but I believe this is what you want.

___________________
Try to take over the world!
0 Kudos
Message 3 of 3
(2,259 Views)