ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

print a graph

I have a front panel with a waveform graph on it and would like to add a push
button "print graph".
Is there a way to print out of a waveform graph?

I found the "print panel" vi and "append front panel image to report" vi, but
they both make a hardcopy of the entire front panel.
I hoped to find something like "print indicator" or "append indicator image to
report".

Peter Nyffeler mailto:nyffeler@phys.chem.ethz.ch
Tel P 01 363 62 42, Tel G 01 632 43 60, Fax G 01 632 10 21
0 Kudos
Message 1 of 3
(3,158 Views)
What version of LabVIEW do you have? 6.1 and above has the Append Control Image to Report. In older versions, one easy way was to create a subVI that just had the indicator you wanted to print. Set the VI Properties>Print Options>Automatically Print Front Panel Every Time VI Completes Execution to checked and pass all the data to the subVI.
0 Kudos
Message 2 of 3
(3,158 Views)
Peter,

Here is a small piece of code that prints an image of the graph. It uses the report tools, basically creates a new report, adds the control image (using a control reference, prits the report to the default priter and closes the report. To create the control reference just right-click in the control and select Create>>Reference. You can find this VIs in the Report palette.

Hope this helps.

Regards,
Juan Carlos
N.I.
0 Kudos
Message 3 of 3
(3,158 Views)