Professional Documents
Culture Documents
17 Filter Editor
The Results Browser allows you to extract data from simulation output files and
to display the data in various forms, as described in Chapter 11 Data Analysis
on page MC-11-1. The Results Browser also supports several mechanisms for
numerically processing the data and generating new data sets that can also be
plotted. These include computing probability density functions and cumulative
distribution functions, as well as generating histograms.
Filter Construction
Filter models are represented as block diagrams consisting of interconnected
filter elements. Filter elements may be either built-in numeric processing
elements, or references to other filter models. Thus, filter models are
hierarchical, in that they may be composed of other filter models. However, all
filter models must be composed at the lowest level of the predefined filters
described in Chapter 11 Data Analysis on page MC-11-1.
Filters operate on vectors. Vectors are discrete and ordered sets of numeric
data, organized as entries. Each entry consists of an abscissa and an ordinate
value. These are double-precision floating point numbers. A filter model may
operate on one or more vectors and combine them to form its output, which
must consist of just one vector. The vectors that are fed into the filter are called
input vectors; the result of the filter’s processing is called the filter’s output
vector.
A filter model block diagram must abide by several requirements concerning its
structure. First, the graph which it consists of must be acyclic, so that none of a
filter element’s input vectors depend on the calculation of its output vector.
Second, each filter model must have exactly one unused output vector among
all of its filter elements. A filter element’s output is used if it serves as the input
of at least one other filter element. The unused filter element output is the output
of the overall filter model.
Filter models are executed using a data-flow approach. A filter element can
compute its output vector only if all of its input vectors are available. Initially, only
the input vectors supplied by the user in the Results Browser are considered to
be available. These will allow certain filter elements to be executed. Once these
elements produce their output vectors, other elements will in turn be executed,
until finally the last filter element is executed and the result of the overall filter
model is produced.
There are two types of filter model inputs that the user may supply when
executing a filter model from the Results Browser. These inputs are vectors (as
described previously), and parameters. The input vectors of the filter model are
needed to satisfy the filter element inputs that are not attached to the outputs of
other filter elements. These are called unused inputs.
File Contains operations that relate to high-level File Menu on page ER-2-2
functions such as opening and closing
projects, saving scenarios, importing
models, and printing graphics and reports
Edit Contains operations that allow you to edit the Edit Menu on page ER-2-5
preferences that control program operation
and to manipulate text and objects
Windows Lists all open editor windows and allows you Windows Menu on
to make one active page ER-2-7
Note—The editor menus on your machine may vary from those described here,
particularly if there has been any UI customization or use of ETS.
There is one operation available within the Filter Editor that does not appear on
a menu:
Objects Menu
The Objects menu includes operations for creating a filter model.
Create Filter Element Defines a filter in the workspace. Create Filter Element
on page ER-17-6
Create Connection Connects the output of one filter element Create Connection on
to a specified input of another filter page ER-17-6
element.
Compile Menu
The Compile menu includes an operation for compiling a filter model.
Compile Filter Model Transforms a filter model into an Compile Filter Model on
executable form so that it can be invoked page ER-17-7
in the Results Browser.
Toolbar Buttons
The Filter Editor has toolbar buttons for frequently-used operations.
1 2 3
The followong table lists the name of each toolbar button—the name appears
as a tooltip when you rest the cursor on the button—and its equivalent menu
command.
To configure the toolbar buttons, see Configuring the Toolbar on page ER-1-7.
Create Connection
This operation connects two filter elements. The connection represents the
transfer of the output vector of the source filter element to the input vector of the
destination filter element.
Each filter element has a “filter model” attribute. After a filter element is placed
in the workspace, it can be assigned a filter model by modifying the “filter model”
item on its attribute menu. It is assigned the “gain” filter model by default.
For a complete list of filter elements and the functions they represent, see
Chapter 11 Data Analysis on page MC-11-1.
One of the first steps in compiling a filter model is verifying that the model
contains no feedback paths. Also, the filter must present only one unused
output, as described in Filter Construction on page ER-17-2. Filters not meeting
the criteria will not compile successfully.
If the filter is properly formed and compilation completes, the user is prompted
to assign names to unused inputs and promoted parameters. These names are
important properties of the filter model, because they are referenced in the
Results Browser when the filter model is executed.