LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to print graphics without printing all front panel?

How to print graphics without printing all front panel?
0 Kudos
Message 1 of 4
(3,093 Views)
Try this example. This will effectively take a picture of your control and save it to a jpeg file. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
Message 2 of 4
(3,083 Views)
This is an advanced task, but it is very possible! You must Build!
I'm gonna point out a few steps so that you can follow them to the end result!
I think we should start with an easy VI.


1.) Create a VI that has Data/graphics that you wish to show. I created MAIN_only_window.vi
2.) Resize the Front Panel to only show the info that you wish to display.
I created three possible indicators/controls that are on the front panel. Two of those should be shown (stop button and data array) and one of those should not be shown (clearly labeled)
Make sure the icon is not visible on the front panel before proceeding. Resize the window to show exactly as you wish it to show w/out the tool bars/header.
3.) Build the File:
Click Tools, Build Application or Shared Library (DLL)
Pick Path/filename
Under VI settings "edit build settings"
change "window has title bar", "menu bar", and "tool bar" to "no" (click change and save)
4.) save/build and run the VI.
Chances are if you have seen VI in the forest it hasn't fallen.
0 Kudos
Message 3 of 4
(3,081 Views)
The simple way is to adjust your prining preferences in the print dialog box in menu File->Print. The controls which you do not want to print you can hide by right click and select hide (those will now be printed). Doing some experiments will show you that it is an easy way to print.

You can also access the controls you want to print through the vi-server and property node.

The advantage of doing this in this way rather than exporting jpg picture is that the quality of your graphs will be the best you can imagine, because LV will automatically adjust your printing quality to your printer. (I enclose some useful nodes you can use).

Hope it helps
Pawel
0 Kudos
Message 4 of 4
(3,042 Views)