LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find Active Library

Solved!
Go to solution

When a VI's window is active, and you select an item from the tools menu, the VI that runs the tool can use this to get to the active VI:

paul_a_cardinale_0-1734886606410.png

However if a library window is active when a tool is called, "Application:Menu Launch:VI" returns "_ProjectWindow2".

Is there a way to get a reference to the library from that?

0 Kudos
Message 1 of 4
(217 Views)
Solution
Accepted by topic author paul_a_cardinale

This works:

al.png

Message 2 of 4
(168 Views)

Nice, I did not know each library window belonged to its own temporary project!

This is weird because the library window title still indicates the actual project and target names:

 

raphschru_2-1735092098478.png

0 Kudos
Message 3 of 4
(137 Views)

My guess is that LabVIEW needs to do that in order to present the library in its own tree.

0 Kudos
Message 4 of 4
(124 Views)