XYPlotter

Parent Previous Next

Results / XYPlotter
Block Name: XYPlotter

Code File Location: VisualSim/actor/lib/gui/XYPlotter

Block Overview

o       Plot the results of a model.   

o       The X- and Y-axis can have different data values.  

o       Plots can be Latency vs. Packet Size or Task Delay vs. Processor Speed.

Description

This block accepts data on the input and plots them.  Multiple datasets can be connected the block by sending the datasets on separate wire inputs to this block.  Data at inputX and inputY are plotted on this instance. When plotted, the first dataset of inputX and the first dataset of inputY are together considered the first signal, then the second channel of inputX and the second channel of inputY are considered the second signal, and so on. This requires that inputX and inputY to arrive simultaneously. The block assumes that there is at least one value available for each dataset. The horizontal axis is given by the value of the input from inputX and vertical axis is given by inputY.

The block behavior is controlled as follows:

Refer XYPlotter Demo Model. To determine the right file format, view the File Format demo.


Parameter

Explanation

Type

Example

fillOnWrapup

This(Checkbox) determines whether to fill the plot when wrapup is invoked.

-

-

legend

The legend parameter is a comma-separated list of labels to attach to each dataset. Normally, the number of elements in this list should equal the number of input channels, although this is not enforced.

String

Read,Write

startingDataSet

The index number of the first dataset to start the display. All datasets with number prior to this are not displayed.

Integer

0

viewPlot

If this option is enabled, the plot will be displayed during the simulation.  This must be disabled during batch mode.

-

-

savePlot

If this option is enabled, then the plot will be saved to the File_Name.

-

-

fileName

This block accepts a file name as a parameter. There are a number of file path options available for this block.  To see the list, view the section on File Paths in the Reference Guide document here. The file name is a concatenation of any number of individual strings and parameters, separated by "+".  To view the file path in a demo model, click here.

-

-



 

Port

Explanation

Type

inputX

Input port for the horizontal axis.

Double

inputY

Input port for the vertical axis.

Double



Created with the Personal Edition of HelpNDoc: iPhone web sites made easy