LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get image of entire tab control in LabVIEW

Solved!
Go to solution

Have you actually tried it or are you just assuming that it won't work?

 

Just because a node is blue doesn't mean it won't work in an EXE.  Most blue scripting "read" nodes will work just fine, like this one.  It's mostly the write nodes that don't.

 

Also I expect you could use the method shown anywhere if you use the Pane "Origin" property node as an offset.  

Kyle97330_0-1707429045290.png

 

0 Kudos
Message 11 of 17
(556 Views)

I can confirm "blue" does not mean incompatible with the runtime engine. All blue property "reads" I have ever used do work in the runtime engine, because they do not modify the code like some actual scripting code.

 

If you are really allergic to blue nodes though, you can combine Position and Bounds instead:

 

raphschru_0-1707431265513.png

 

Regards,

Raphaël.

 

Message 12 of 17
(549 Views)

I don't remember if this this was ever reported, but this bug has been bugging us since tab controls exist (LV5?).

 

Getting the image from the front panel is the only way I know of to get the image. It's obviously not the same, as you'd also the images of all objects overlapping the tab bounds.

 

I think I've at some point made code that changed the VI's background color, and then restored it, getting 2 images and using the color difference as a mask, also overlaying the control's image. But even going through all that won't result in a perfect image (as the borders have alpha values that are not 0 or 1). *sigh*.

 

You'd only need this for a general 'image getter'. If it's a feature in your application, simply arrange the tab so it works by getting the FP image and let it go.


@raphschru wrote:

I can confirm "blue" does not mean incompatible with the runtime engine. All blue property "reads" I have ever used do work in the runtime engine, because they do not modify the code like some actual scripting code

Blue nodes are only visible with scripting on (you can still QD, CTRL+SHIFT+B them if you know the property name).

 

There are also brown (secret\NI private scripting) and pink (obsolete) nodes.

Message 13 of 17
(536 Views)

Well, actually no, you can use the TotalBoundsRect in a compiled executable. I do it and the LV help also says it's possible:

 

LV_TotalBound_Help.PNG

The color certainly is misleading here...

Message 14 of 17
(495 Views)

@jqu wrote:

The color certainly is misleading here...

Why?

 

Blue nodes are only visible with scripting on .

There are also brown (secret\NI private scripting).

Pink nodes are obsolete nodes.

 

Nothing misleading about it...

Message 15 of 17
(480 Views)

@jqu wrote:

 

The color certainly is misleading here...


Nobody claimed that blue nodes only work in the IDE (but many indeed won't work in the runtime engine). The color is not about if it works or not in an executable but what type of application it serves. The blue nodes were considered mostly important when wanting to script VIs and diagrams. The yellow ones are the general ones. It is a pretty good idea to distinguish between such classes of nodes to reduce the amount of nodes a normal LabVIEW user has to browse through. With scripting enabled the number of properties gets quite a bit bigger and if you also enable the private ones, things get totally messy.

 

If you want to know if a method or property is available in a particular application mode, you need to check the help text for that, not think the color implies something like this. There are yellow methods and properties too that won't work in the runtime engine.

Rolf Kalbermatter
My Blog
Message 16 of 17
(459 Views)

I had either read or mistakenly recalled that scriptiong/blue nodes wouldn't work at runtime. Thanks everyone for the clarifications. I've marked the solution.

^TeraTech.

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Check out this lengthy post of mostly complaints)
0 Kudos
Message 17 of 17
(377 Views)