Page 61 - ExtendSim User Guide
P. 61

Building a Model 35
Plotting against multiple axes
When you are finished typing, click anywhere else on the model window.
Join the Lookup Table’s output connector to the word Rainfall by dragging a line from the connector to the text and, when the line thickens, release the mouse.
☞ Until you connect the text to an input connector on another block, the line will remain dotted.
Click the Rainfall text to select it, then choose Edit > Dupli- cate.
Drag the duplicate text to a spot slightly below and to the left of the Plotter and release the mouse.
Draw a line between this text and the second input connector on the Plotter. Note that both the connection lines are now solid.
Named connection between Random Number and Plotter
Lookup Table joined to named connection text
Named text connection joined to Plotter
Repeat the process above to create a named connection between the Random Number block and the Plotter:
Create a Stream text label and place it near the output of the Random Number block. Connect from the Random Number block’s output connector to the text label. Duplicate the text label and drag it to a spot below and to the left of the Plotter. Connect from the text label to the third input connector on the Plotter.
☞ To display the actual connection lines between blocks, choose Model > Show Named Connec- tions.
Plotting against multiple axes
Click the Run Simulation button on the toolbar.
The Plotter that appears now has three lines on it: the blue one displays the amount of water in the reservoir over time, the red one displays the amount entering the reservoir from the rainfall, and the green line dis- plays the water entering from the stream.
At the end of the simulation run, the Plotter automati-
cally scales its axis to be able to display all values for
both columns of data. However, because the total
amount of water in the reservoir has a much greater
range than the amount entering it each month, the
lines representing the rainfall and stream amounts can
barely be seen. They simply look like horizontal lines across the bottom of the graph.
To solve this problem, you can add a separate axis (Y2) on the right-hand side of the graph and set the Plotter to display the rainfall and stream values against that axis.
If its not already open, double-click the Plotter to open its plotter window.
Tutorial


































































































   59   60   61   62   63