Displaying the Value on the Path
Every path has a value that is propagated downstream when data input is
enabled. The value stored on the path depends on the path type:
Controls paths do not store any data values.
| Paths of type... | Have this color... |
|---|---|
|
Data paths
|
Gray
|
|
Inference paths
| |
|
Control paths
|
Orange
|
You can customize the default path colors by using the Preferences > Color menu choice, described in "Setting Block and Path Colors".
You determine the value on a path in one of two ways:
To display a path's table:
Click on the output path of a block, and select table.
.
|
Note: You cannot enter data into this table; the attributes are read-only.
To hide the path's table:
Click to the right or the left of the name in the title bar.
To move the path's table:
Click to the right or the left of the name in the title bar, and drag the table to a
new location, while holding down the mouse button.
For more information about these path attributes, see "Using Path Attributes".
Adding a Path Display
You add a path display to your diagram when you want to see the path value at
all times.
To add a path display to a diagram:
|
To display the vector value stored on a vector path, use the Vector Path Display
on the Path Displays palette.
Displaying a Block's Table
All blocks have an associated table, which displays status information about the
block and allows you to enter comments. Some blocks also define an attribute that
contains a variable, which keeps a history of the value of the block's output path.
For example, all entry points contain attributes for this purpose, for example,
dp-out, ip-out, or cp-out and sensor-value. Signal generators contain an attribute
named output-value that stores the current sensor value.
To display the table for a block:
Select table from the block's menu.
Comments attribute contains user-defined notes about a block.
For example, the tables for the Summation block, the Numeric Entry Point, and the Sine Wave look like this:
|
The table for the entry point contains additional attributes called
Dp-out, which
contains an embedded variable, and Sensor-value, which is the current value of
the external sensor. For Belief Entry points, the embedded variable is Ip-out. For
Control Path Entry Points, the embedded variable is Cp-out. For Vector Path Entry
Points, the embedded variable is Vpv-out. The table for the signal generator
contains an attribute named Output-value, which is the current value of the signal.
| Prev
| Next | Start of Chapter | End of Chapter | Contents | Index | (12 out of 14)
Copyright © 1996, Gensym Corporation, Inc.