LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enlarge XY Graph for printing

I am posting this question again because I believe the previous message was overlooked. I am creating a small XY graph in my top-level VI. I then want to pass the same data from the top-level VI (containing small xy-graph) to a subVI (containing large xy-graph) in order to increase the size of the graph before the larger graph (subVI) front panel is printed. Since the subVI chart values and properties are dependent on the top-level graph, I am assuming this is what is termed 'polymorphic'. If so I can't use the 'Print Panel To Printer' method correct? And 'Print Panel.vi' opens a new vi correct? I just want to print a portion of the subVI front panel that is being executed.
If I want the subVi graph to reflect changes in the to
p-level chart, will the 'value' property be all I need to select in the property node? I should also add that I am creating a header above the subVI graph from various other values within the top-level VI; and I want to print this header as well.

To make it a little easier to visualize, I have attached an image of the section of code to which I am referring. The subVI is enclosed by the red box with the input terminals circled in green and blue. The cluster is the information for the header. I input the xy terminal with 'value' from a reference node, since the referenced xy graph and the 'hardcopy?' prompt are within different cases.

I'm not sure this is the most efficient way to enlarge a polymorphic graph for printing purposes, but it is all I have been able to come up with. I would appreciate any help.
Message 1 of 2
(2,562 Views)
First of all, your definition of polymorphic VI is incorrect. A polymorphic VI accepts different data types for a single input or output terminal. For example, a polymorphic VI could have an input that accepts either a string or a number. So, the Print Panel to Printer method should work just fine. Print Panel.vi uses this method so you can use this as well. The other option is go to the VI Properties>Print Options and set the VI to print when execution is complete.

To accurately portray the graph on the main VI, you will need the value property and any properties of the main display that is different on the subVI. That might mean x and y scale information if the main doesn't use autoscaling. The same is true of cursor displays, etc.
Message 2 of 2
(2,562 Views)