cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Programmatically Creating Image of a Tab

Programmatically Creating Image of a Tab

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 2017
0 Kudos
Message 1 of 5
(169 Views)

Re: Programmatically Creating Image of a Tab

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
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 on Win7+cRIO
Kudos are welcome Smiley Wink

Message 2 of 5
(168 Views)

Re: Programmatically Creating Image of a Tab

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 2017
0 Kudos
Message 3 of 5
(158 Views)

Re: Programmatically Creating Image of a Tab

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
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 on Win7+cRIO
Kudos are welcome Smiley Wink

Message 4 of 5
(130 Views)
Highlighted

Re: Programmatically Creating Image of a Tab

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
(110 Views)