For information on common attributes that you can configure for blocks, see "Specifying Initial Values", "Specifying a History of Values to Maintain", and "Specifying How to Handle Multiple Values".
Reading Notes and Errors
The Notes and Error attributes of a block display the status of the block. These
attributes appear in the table for the block. You cannot edit these attributes.
To display the notes and error for a block:
Select table from the block's menu.
|
Different parts of G2 write to these attributes. The G2 engine writes to the
Notes
attribute, and the NOL software that is built on top of G2 writes to the Error
attribute.
Error attribute. When there is no error, this attribute contains the null
string (""). When NOL finds an error, it turns the color of the affected block to the
error color (yellow, by default) and writes a description of the error to the Error
attribute of the affected block and to the Error Queue. After you fix the error,
select reset from the block's menu to clear the Error attribute.
Notes attribute. This attribute is where
G2 writes status and error information. It contains OK if G2 finds no errors in the
object. Note that the Notes attribute may contain OK even if NOL finds an error in
the block.
Adding Comments to a Block
To add comments to an application:
Display the table for any block, and enter any value in the Comments
attribute.
Comments attribute:
|
To show the comments with a block:
Use the show attribute display menu choice for the attribute in the table:
|
When you first start G2, NOL automatically resets all the blocks in the application.
To manually reset an individual block:
Select reset from the block's menu.
To reset all the blocks in your diagram:
Select Controls > Reset All Blocks...
When you reset a block, NOL does the following:
Error attribute back to a null string (""). You can also clear errors for a blocks without resetting, as described in "Clearing Block Errors".
yes, as described in "Specifying What Happens to History Upon Reset".
To evaluate a block manually:
Choose evaluate from the block's menu.
When you evaluate an entry point, the current value is propagated with a new timestamp.
When you evaluate a block with a single input control path, the block acts as if it has received a new control signal.
When you manually evaluate a block, the block uses its existing input values. Thus, for certain blocks, manually evaluating the block has no effect, for example, manually evaluating an observation block.
Many blocks let you manually change a block's output value with the
override
menu choice. You can override any of these types of blocks:
|
Entry Points
|
Observations
|
|
Signal Generators
|
Conclusion block
|
To override the value of a block:
override from the block's menu.
Quality of manual onto the path.
|
The
Quality of the output path value of the block you override is manual. The
Quality of the output path value for downstream blocks that calculate values
based on a manual value is also manual. For example, here is the table for the
output path of the Summation block in the example:
|
Once the block is locked, only the manual override value is propagated downstream.
| When overriding... | You get an override dialog with... |
|---|---|
|
A data block
|
An edit box for entering a number
|
|
An inference block
|
Radio buttons for selecting .true, .false, or unknown
|
NOL displays a dialog box that lets you enter a value. There are five different
override dialogs:
.true, .false, or unknown.
To enter a value:
|
|
Overriding a Discrete Inference Block
An inference block whose Logic attribute is set to discrete displays the dialog box
in this figure. It contains a list of three radio buttons: one each for .true, unknown,
and .false.
To override the value:
Click on the value you want, then click OK or Apply.
|
|
Once you specify the dimension of the vector and select OK, NOL displays a
spreadsheet for editing the vector:
|
For information on using a spreadsheet to override a vector block, see "Using the GXL Spreadsheet to Edit Data".
Locking and Unlocking Blocks
Once you override a block's value, the block displays a lock symbol and an "M"
on the icon, indicating that it is locked and the override is manual. For
example:
To let a block that you have overridden pass values normally again:
Choose either unlock or reset from the block's menu.
To stop a block from passing its value:
Choose lock from the block's menu.
Enabling and Disabling Evaluation
Sometimes you want to stop a block from passing its output value and
responding to new input values. For example, you may want to disable part of
your application so you can concentrate on another part.
Caution: Enabling and disabling blocks and workspaces for evaluation is different
from enabling and disabling blocks and workspaces in G2. Do not use the
G2 menu choices enable and disable for blocks or KB Workspace > Enable
and KB Workspace > Disable for workspaces.
By default, all blocks are enabled for evaluation. Enabling or disabling a block
enables or disables any attached capabilities and restrictions as well.
To disable evaluation of a single block:
Click on a block that is enabled and select disable evaluation.
To enable evaluation of a single block:
Click on a block that is disabled and select enable evaluation.
To disable evaluation of all blocks on a workspace:
Click on a workspace whose evaluation is enabled and select
KB Workspace > Disable Evaluation.
To enable evaluation of all blocks on a workspace:
Click on a workspace whose evaluation is disabled and select
KB Workspace > Enable Evaluation.
To preserve those block's values before you reset G2 or save your KB:
Choose make permanent from the block's menu.
To restore a block to the values it had when you last chose make permanent:
Choose restore permanent values from the block's menu.
Select the clear error menu choice for the block.