Register

Included since version 3.5

Registers are nodes that can perform simple calculations on several state inputs and communicate the result through state outputs.

The state inputs of a register should be marked with lower case letters. These letters can then be used in a formula specified by the register's caption, which is used to determine its current value.

There are three special formula's:


 * The formula "add" will simply add the states of the elements connected to it through its input. When a Register has no formula, it will also function in this way.
 * The formula "max" indicates that the value of the register is set to the highest value of its inputs.
 * The formula "min" indicates that the value of the register is set to the lowest value of its inputs.

When a register has no inputs, you can make it interactive. The values of interactive registers can be changed by the user when a diagram is running.

For both normal and interactive registers you can specify upper and lower limits for its value.



As of version 4.04 Registers can also produce triggers. A register that has a trigger as an output will fire that trigger is a random value generated between 0 and 100 is less than the value of that register. If it has any reverse triggers leading out it will fire those if the random number is greater than or equal to the current value. This works for both interactive and passive registers. The test is repeated every iteration step.

In addition, if a register has a trigger input. It will only generate trigger if it is fired.

