From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Event Callback

Is it possible to trig an event when a VI is open. And then have a reference to this VI. I need to creat an application that will be scanning all the vi that are opened.

Thanks
0 Kudos
Message 1 of 3
(2,431 Views)
Use Notifier Operations. Each VI could send a notifier while be opened. Send the VI reference as the data of the notifier. The main VI use "Wait On Notification" to get the VI reference.
0 Kudos
Message 2 of 3
(2,431 Views)
Nitrof,

You could use the All VIs In Memory application property and do a compare every few seconds to see if a New VI has been opened.
Do you need to know when a new VI is run in an application or when a new VI is created new and design is begun. If it is the first, use the first answer posted. If it is the second, use the method that I have suggested.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 3 of 3
(2,431 Views)