取消
显示结果 
搜索替代 
您的意思是: 

How to get image of entire tab control in LabVIEW

已解决!
转到解答

When I call the Get Image method with the invoke node, the tabs are missing from the captured image.  

Page 1 Tab.jpg

Is there some other setting or trick to getting the tabs to appear in the Get Image capture? I am using LV2017.

0 项奖励
1 条消息(共 17 条)
6,149 次查看

Try using the FP.Get Image invoke node instead.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 项奖励
2 条消息(共 17 条)
6,143 次查看

I considered that but I only want the image of the tab control not the entire front panel.

0 项奖励
3 条消息(共 17 条)
6,069 次查看

I don't think there's a trick to get the whole tab just using the builtin method.  But you could use a workaround, maybe.

 

Put the tab control in a container of some kind (another tab control, a subpanel, or block it off with a couple of splitter bars).  Make the container transparent so it doesn't look weird with the extra border.  Then tell the container to take an image of itself, and all it will see is your tab control.

0 项奖励
4 条消息(共 17 条)
6,066 次查看

In any case, this almost looks like a bug. Did you report it? Did anyone test in newer versions?

0 项奖励
5 条消息(共 17 条)
6,048 次查看

I do not have access to newer versions. It is not clear to me where to report bugs. I have searched and found known bug list for 2017 and it doesn't seem to be listed or for 2018. Doing a search of "how to report bugs" on the NI page search bar yields bogs of unrelated results such as "How to buy..." and every other mention of the words "How to". I would be glad to report it. Can you point me to a link?

0 项奖励
6 条消息(共 17 条)
5,958 次查看

@TeraTech wrote:

It is not clear to me where to report bugs.


If your business depends on it and you have SSP, you can always file a service request. They will evaluate the severity, put it in the bug database with a reference number, and possibly offer a workaround.

 

However, typically it should be sufficient to post a link to this discussion here in the annual bug thread and it will be seen by NI eventually. In the meantime, forum users can also do some casual testing or search for workarounds.

0 项奖励
7 条消息(共 17 条)
5,951 次查看

Thanks. I posted on the Annual bug thread here:

Re: Annual bug thread for 2021 - Page 2 - NI Community

8 条消息(共 17 条)
5,921 次查看
解答
接受人 TeraTech

Hi TeraTech,

 

had the same problem now and figured out a fairly easy workaround. Posting here now just in case anybody else runs into this bug 😉

Please note though, it's only that simple if the front-panel origin is aligned with the upper left corner of the visible pane area.

 

 LV_TabControl_Image_Workaround.PNG

Please KUDO if you like it 😉

 

Best,

Jan

9 条消息(共 17 条)
4,252 次查看

Thanks for the clever idea. However, the Total Bounds Rect Property (TotalRect on your diagram) is a scripting command, thus the cyan coloring. Scripting commands are only available during design time and aren't available in a compiled executable. So I can't use it for my situation. 

0 项奖励
10 条消息(共 17 条)
4,206 次查看