12-23-2009 08:34 AM - edited 12-23-2009 08:36 AM
12-23-2009 08:59 AM
In the Event structure, you have the Event Sources = <Application> & Event = VI Activation. It provides the event on which VI is activated.
Perhaps you have a place in your framework to use it.
12-23-2009 10:27 AM - edited 12-23-2009 10:28 AM
12-23-2009 10:38 AM
Depend of your application but can't you consider the VI is deactivated if an other VI is activated?
Perhaps I am wrong but 2 windows can not be activated at the same time.
Place a supervisor in an other place as in your concerned VIs and manage the event... Keep the last activated VI in memory to know at any time which VI was the last called and consider it's the activated. You could also applicate a filter between different opened VI.
12-23-2009 10:46 AM
12-23-2009 11:38 AM
12-23-2009 12:36 PM
smercurio_fc can u post a version 8, or an image?
12-23-2009 03:46 PM
A screenshot won't do much good without seeing how the CLFNs are configured, so attached are the 2 example VIs back-saved to 8.0. Note: I know that in 8.2 there is a bug with the CLFN that will not allow you to connect the error cluster from one CLFN to another. I don't know if the problem exists in 8.0.
Also note that as an example, there's some missing error handling, such as checking for the window handle being zero.