ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Creating Image of a Tab

Solved!
Go to solution

Is there a way to programmatically create an image file of specific tabs of a VI's front panel?  This would have to happen automatically, so a user will not be able to select the tab.

 

Thanks.

Forbes Black
Lapsed CLAD, LV 5 - LV 2023 (Yeah, I'm that old...)
0 Kudos
Message 1 of 5
(5,258 Views)

Hi diarmaede,

 

Set the tab to the page you need and read the tab image using a method node of the tab container...

 

This usually works with every control.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(5,257 Views)

Thanks.  How do I select the tab I want to image?  Can I specify the tab I want to image without having the front panel show that image?  I would like to select the tab to image without changing what a user sees on the front panel.

Forbes Black
Lapsed CLAD, LV 5 - LV 2023 (Yeah, I'm that old...)
0 Kudos
Message 3 of 5
(5,247 Views)

Hi,

 

I think you will have to switch the page to show the one you want to create an image from to front...

 

When the user shouldn't see this you could create a 2nd VI off-screen or hidden with the same tab container on the front panel.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(5,219 Views)
Solution
Accepted by topic author diarmaede

If you defer panel updates, switch the tab, get the image, switch back, and then un-defer updates you don't need to use a hidden tab or other workaround to avoid a flicker:

 

Defer updates to get tab image1.png

 

Message 5 of 5
(5,199 Views)