LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate jpg with multiple controls

Is there a way to generate a single jpg file that contains several controls?  For example, three separate graphs and a couple of user controls?

0 Kudos
Message 1 of 2
(2,122 Views)

You can use the VI's Get Panel Image method to get an image of the FP and then crop it. The code capture tool allows you do to this relatively easily by simply selecting the controls and invoking a menu command. There are videos on that page demonstrating its use.

 

If you want to do this in code, the CCT also installs VIs you can use from the user libraries palette.

 

If you want to show just these controls and there are other controls in the same area, you will need to use property nodes to hide the other controls before capturing.

 

A side point is that you shouldn't use JPEG for this, as it's lossy and the image will come out fuzzy. You can use PNG instead (which is what the CCT does).


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,113 Views)