02-15-2023 11:04 AM
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.
02-15-2023 11:53 AM
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".
02-20-2023 11:46 AM
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.
02-21-2023 03:20 AM
When setting a VI to reentrant mode, LV should create a copy every time you run it. But be careful!
02-21-2023 08:06 AM
How do you set that mode?
02-21-2023 11:40 AM
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.