LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I export a screenshot of a plot area, all contents?

Solved!
Go to solution

I have an XY graph in my control panel which has some other controls within its bounds, and I want the program to export an image of the graph, including the controls.

 

My front panel looks like this:

front panel.gif

 

And I want my export to look like the following when I push the "Screenshot" button:

desired export.gif

 

When I use the waveform's Get Image method, it excludes the other controls:

export event.gif

export.jpg

 

I thought I would try using an invoke node on the VI's front panel (as described here), and then take a subset of that image using the graph's position/bounds, but the origin of the screenshot depends on how the user has scrolled or resized the window, so that's unreliable. I'm looking for a way to do this that doesn't involve fixing the window size and position.

 

Any ideas?

0 Kudos
Message 1 of 6
(3,146 Views)
Solution
Accepted by topic author Artybear
Message 2 of 6
(3,139 Views)

That works great! Sleek too; I thought I was going to have to resort to something hacky. Thanks!

0 Kudos
Message 3 of 6
(3,125 Views)

Oops.  That original will only work correctly if the control is in the first pane.

Here's the fixed version.

0 Kudos
Message 4 of 6
(3,096 Views)

@paul_a_cardinale wrote:

Oops.  That original will only work correctly if the control is in the first pane.

Here's the fixed version.


Hello  pcardinale

Could you please post a PNG image of the VI or LV2009 version of the VI because i have LV2009 I was not able to open the VI.

Thanks

 

Kamal Daniel

0 Kudos
Message 5 of 6
(3,085 Views)
0 Kudos
Message 6 of 6
(3,074 Views)