Menta error: Illegal closed loop has been detected

Issue

Tam32
Illegal closed loop has been detected

Product Line

TAC Vista

Environment

Menta

Cause

Menta evaluates all expressions in parallel every program cycle. Because of this, the output of an expression cannot be looped directly back to the input of the expression.

Resolution

Any time a logic loop is created in Menta a unitary delay object must be inserted into the loop. These objects are labeled DELB, DELI, and DELR. The type used depends on the data type flowing through the loop. These objects in many cases do not contribute to the logic of control but they are essential for program execution and the application will not compile without them.