LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User Close Notification IMAQ Tools Window

Solved!
Go to solution

Hi, All,

 

I am at the start of a LabVIEW image analysis project that is based on IMAQ Vision and Motion.

 

I plan to use a VI Run-Time menu to display and hide the IMAQ Tools pallet using the IMAQ WindToolsShow vi in both Get and Set mode.

 

However, the IMAQ Tools pallet also has a Red X close button that allows the user to close the window without using the Run-Time menu. I need to brush up on the Actor Framework, so I am currently using an Actor to monitor the display status of the IMAQ Tools window. When it notices the change in visibility, it sends a message upstream to toggle the check next to the entry on the Run-Time menu of the main Actor VI.

 

I haven't dug too deeply yet, but is there an Event that can be registered and generated to detect when the user closes the IMAQ Tools window?

 

Thanks!

 

-Bill  =]

0 Kudos
Message 1 of 4
(2,859 Views)
Solution
Accepted by topic author williamlweaver

Hi Bill,

 

It sounds like what you’re looking for is a filter event for the IMAQ Tools Window. I was able to find a community example program where they did something similar for the IMAQ Image Display, and it may be a good place to start: http://forums.ni.com/t5/Example-Programs/How-to-use-the-IMAQ-quot-Get-Last-Event-quot-property/ta-p/....

 

Take a look at that example, and let us know what questions you have afterward.

 

Kathryn K.
Technical Support Engineer
National Instruments
http://ni.com/support
Message 2 of 4
(2,790 Views)

Thanks for this, Kathryn!

 

I've worked with the Image Tools...wait for it... back in the (gasp!) 90's in CVI, and I recall having to manage the image windows and the tools window to create a unified UI.

 

This sounds like a good solution.  I will have a look!

 

Thanks for saving a bunch of time hunting around.

 

All my Best,

 

-Bill  =]

0 Kudos
Message 3 of 4
(2,787 Views)

Hi, Kathryn,

 

Thanks for the great example. It answered some questions for me by showing a different UI design approach. It didn't occur to me to include the IMAQ Images as controls on the the front panel of my program. I don't recall the design reasoning I used while in industry, but I recall that Images were displayed in one of 16 modal IMAQ windows that popped up when created and responded to the common UI Tools window pallet when selected. Each of the windows had their own minimize, resize, and close controls and there was a bit of an overhead to keep track of their states along with the menu selections and window controls of the main program.

 

I will play with the Image controls (and their integrated IMAQ tools). Perhaps this will provide for a much cleaner interface for the new project (20 years later...)

 

And now I have to remember if the IMAQ UI Controls were available in the 1990s CVI version or have been added since. Maybe I missed an easier solution?

 

Thanks!

 

-Bill  =] 

0 Kudos
Message 4 of 4
(2,784 Views)