LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Make a pop out image window

How can I make a subVI to create a pop out window with an IMAQ Image control?

 

Goal: 

1. Pop out window with a larger image

2. Close control on the pop out window

3. Ideally the pop out window will stay open and allow the image to update without closing and reopening.

 

Image is taken from a camera and passed to an IMAQ image control on the main VI front panel currently, however the image control is too small for alignment purposes.

 

Code not attached since it is deeply intwined with opening another program that requires a license.

0 Kudos
Message 1 of 6
(1,241 Views)

You can create a SubVI with nothing besides an image display inside of it. You'll have to play with the "window appearance" properties to get it behaving exactly as you want.

 

See the attached example, run "main.vi".

 

 

0 Kudos
Message 2 of 6
(1,227 Views)

Hi Gregory,

 

Thank you for that suggestion. I had tried that multiple times in the past, however the image is not popped out into a separate window. In fact, the VI executes every iteration of my while loop based on probing, but does not actually open a new window. Any ideas how to solve this?

 

I have attached a screen shot of the portion of my code that is affected. The TakeImage.vi is tied to licensed software so I cannot share the larger VI for debugging.

 

Catherine_A_1-1676915162761.png

 

 

0 Kudos
Message 3 of 6
(1,176 Views)

When setting a VI to reentrant mode, LV should create a copy every time you run it. But be careful!

0 Kudos
Message 4 of 6
(1,151 Views)

How do you set that mode?

0 Kudos
Message 5 of 6
(1,130 Views)

Under VI properties (Window Appearance >> Customize) you can set the VI to "open when called". If the "close when completed" is also checked, you'll want to uncheck that. It is nice for a normal pop-up, but for something that executes very quickly like this image updater, it will result in a flashing appearance.

0 Kudos
Message 6 of 6
(1,116 Views)