LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I save a XY plot as a PNG

I found an old form with a link but the link was dead, so I started this one. If some one could help me save a xy plot as a PNG or JPEG that would be great.  I found an example that illustrated how to save a graph but the xy plot will not work in this example. I'm trying to dynamically save xy plot (BH curve) to show the effects of transients in HV transformers.
Thank you for your help and time
Dan

0 Kudos
Message 1 of 4
(3,763 Views)

What version of LabVIEW are you using?  In LabVIEW 8.0, I see an "Export Image" method for the XY Graph.  Just create an invoke node for the XY Graph and select the Export Image method.  I don't know if this method is in earlier LabVIEW versions...if it's not there (and you're using an older LabVIEW version), you can use the "Get Image" method to get the image as a flattened image cluster, then you can use one of the VIs on the Graphics and Sound > Graphics Formats palette to save the flattened image data to an image file on disk.

Hope this helps,
-D

0 Kudos
Message 2 of 4
(3,757 Views)
As a follow-up to the reply, LabVIEW 7.1 has an "Export Simplified Image" menu item, but it's limited to a format of Enhanced Metafile or Bitmap, so you would need to use Darren's alternative solution of getting the image and using the Graphics functions to save the image.
0 Kudos
Message 3 of 4
(3,740 Views)

Thanks for your help guys. It works great, the pic quality is much better then my digital scopes pics.
Dan

0 Kudos
Message 4 of 4
(3,705 Views)