You are here

Graphs

26 July, 2019 - 09:47
Available under Creative Commons-ShareAlike 4.0 International License. Download for free at http://cnx.org/contents/5b6e61df-b830-48cb-9764-94696cb47c80@1.3

Using the previous G program example, we will now visualize the results by adding a graph to the Front Panel windows. Right click on the Front Panel window. Select XY Graph from the Controls » Modern » Graph menu.

media/image71.png
Figure 1.70 XY Graph Selection 

Drop the XY Graph in the Front Panel window. Double click on the x and y axis labels and renameTime to Fahrenheit and Amplitude to Celsius.

media/image72.png
Figure 1.71 XY Graph in Front Panel window 

The Block Diagram window contains theXY Graph terminal.

media/image73.png
Figure 1.72 XY Graph Terminal in Diagram 

Select Bundle from the Functions » Programming » Cluster, Class & Variant menu

media/image74.png
Figure 1.73 Bundle Operator 

Drop it on the diagram as shown in Bundle for XY Graph.

media/image75.png
Figure 1.74 Bundle for XY Graph  

Wire the Fahrenheit and Celsius results to the input Bundle terminals and the output Bundle terminal to the XY Graph.

Save the program and run it. The resulting graph is shown in the fgure below.

media/image76.png
Figure 1.75 Wired XY Graph 
media/image77.png
Figure 1.76 XY Graph Result