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.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Does closing an IMAQ image display window with the 'close window' button in the window title bar free up memory identically to using the IMAQ WindClose vi?

My question pertains to the IMAQ WindClose vi in the IMAQ Vision package for LabVIEW 6. If an IMAQ image display window is closed using the close window button on the title bar, does this action free up application memory in the same way IMAQ WindClose would?

Also: is there a way to determine when the 'close window' button has been pushed in order to programmatically determine when a user closes an image window? I would rather dispose of windows this way than have a button on the front panel to do this.

Thanks!

Jon Marsh
jnm@soundlab.wustl.edu
0 Kudos
Message 1 of 2
(3,118 Views)
No. The image will remain in memory until either the VI is closed or IMAQ Dispose.vi is called.
- If IMAQ WindClose is called, the display window will disappear, but the image in memory will be available in memory for further processing.

If you use IMAQ WindShow, you have the ability to get the status of the display window (showing or hidden).
- It also allow you to set if the display window is to show or hide.
0 Kudos
Message 2 of 2
(3,118 Views)