Page 120 - ExtendSim User Guide
P. 120

Concepts, Tips, and Techniques
Using plotters as inputs
Using plotters as inputs
The blocks in the Plotter library can store every point that was plotted in the table at the bottom of the plotter. After running a simulation, you can easily access all those points.
There are some instances where you may want to use the plotter data as input for another ExtendSim model. For example, if you have a larger model divided up into many smaller mod- els in different files, you may want to use this technique. To quickly pass data from one contin- uous model to another, use the Plotter I/O block (Plotter library). That block has four output connectors that correspond to the four input connectors. To get data out of the plotter into another model, simply select the block, copy it to the Clipboard with the Edit > Copy com- mand, select the second model, paste the plotter at the beginning of the second model, and hook the plotter’s outputs to the places where you need the data.
If you want to use the data in the plotter in another computer application, open the plotter, click the columns of data that you want, copy to the Clipboard with the Edit > Copy command, move to the other application, and paste the data there. If you want less than a full column, select the desired cells by clicking and dragging.
Using a plot line as reference or standard
You may want to plot the current results of a continuous simulation relative to a previous run of a simulation that you are using as a standard. This is fairly easy with the
Plotter I/O block (Plotter library). First, run the simulation to get the line that you want as a ref- erence in the Plotter block. Select Edit > Duplicate to create a copy of the Plotter, including all the data contained within it.
Connect the output connector that is associated with the line you want to the input connector on the original plotter block. When you run the simulation again, the data that generated that line will be plotted as a reference line.
For example, assume that you want to replot the line that came from the top input connector of a Plotter. Following the steps above would make your model look like the image at right.
You could also paste data directly into a column of a Plotter and
use that as a reference. If you want just a straight line for a ref-
erence, instead of following the above steps, simply use a Con-
stant block (Value library) to generate the reference line. You can also generate a reference line from a formula by selecting a function and connecting the output of the Math block (Value library) to the Plotter.
Note that these approaches are different than using the Plotter MultiSim blocks in the Plotter library. Those blocks allow you to plot the results of several runs of a simulation on a single plot.
Uncluttering models
You can use a block to mathematically combine the output of one block with the output of other blocks. You can also use a block to feed the output of blocks into the inputs of several other blocks. However, using individual blocks to represent each function, step, or portion of a complex model can quickly cause models to become too busy. If your models end up being cluttered, combine the functioning of many blocks into a single block. To do this:
• Combine groups of blocks into a hierarchical block. See “Hierarchy” on page 618.
Second Plotter for standard line

   118   119   120   121   122