| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (4 out of 5)

Circuit Breakers


Circuit Breakers allow you to control a NOL diagram with a loop. They are not required if another block can halt the iteration of the loop. Otherwise, you use the circuit breaker to prevent infinite loops in a diagram.

When the Circuit Breaker is open, the value on the path is propagated across the breaker unchanged, but NOL does not evaluate the downstream block immediately. The next block evaluates when it receives data from somewhere else. When the Circuit Breaker is closed, the value on the path is propagated across the breaker, and the downstream block evaluates immediately.

Circuit Breakers contain a menu choice for opening and closing the circuit breaker. If the circuit breaker is open, the menu choice is close breaker, and if the circuit breaker is closed, the menu choice is open breaker.

Opening and closing the circuit breaker also changes the icon as shown in the following figure:


All types of circuit breakers are open by default.

Configuring

Circuit Breaker configuration panels vary depending on the type of circuit breaker.

Configuring the Data Path Circuit Breaker

This is the configuration panel for the Data Path Circuit Breaker.


Attribute Description
Value on Initialization
See "Specifying an Initial Data Value".

Configuring the Inference Path Circuit Breaker

This is the configuration panel for the Inference Path Circuit Breaker.


Attribute Description
Status on Initialization
See "Specifying an Initial Status Value".

Configuring the Control Path, Vector Path, and Data Pair Path Circuit Breakers

The Control Path Circuit Breaker, Vector Path Circuit Breaker, and Data Pair Path Circuit Breaker have no configurable attributes.

Example

In the following example, the Circuit Breaker is open, which allows the Summation block to accumulate values from the Numeric Entry Point each time a new value appears on the path. Do not close the Circuit Breaker in this situation.


See Also

For more information on how to use this block, see the sections below.

Click here for more information...
Basic Block Behavior
Specifying Initial Values
Understanding How Blocks Evaluate

| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (4 out of 5)

Copyright © 1996, Gensym Corporation, Inc.