Tst (Test) Module

Compares the A input with the B input and produces 3 logical outputs based on the test of: A equal to B, A greater than or equal to B, and A greater than B. Available in Short version, with the 3rd input hidden.

Tests are always A relative to B. Thus A greater than B is the same as B less than or equal to A; A greater than or equal to B is the same as B less than A.

A special mode is available by setting either the A or B input (but not both) to -9999. In this case the other input will compare its current input with its previous input. This is most useful for detecting when a value changes. Also useful for converting a changing value into a clock pulse.

Inputs:

A (Value): Input to test against B input. Set to -9999 to compare B input with previous B input.

B (Value): Input to test against A input. Set to -9999 to compare A input with previous A input.

Red LED (Logical Input): This is the logical value sent to the output when the result is True; when the test result is False, logical False is always sent. The default for this Input is True, so that a test result of True returns the expected output of True, and False returns False.  However it can also be used as a logical switch+test, so that a test result of True returns whatever is connected to the input, which could be an on/off clock.  Used this way, a clock at the logical input would tick when the test result is True, and it would be shut off when the test result is False.

In the Short version, the 3rd input is hidden, but it can be reached by clicking on the label to the left of the 2nd input. The mouse cursor will change from an arrow to an arrow with a question mark to indicate the availability of the hidden input.

Logical Outputs:

Tst X> True if A is greater than B. 1st (orange) top output LED will highlight.
Tst X>=
True if A is greater than or equal to B. Both top output LEDs will highlight.
Tst X= True if A equal B. 2nd (yellow) top output LED will highlight.
Tst X<> True if A is not equal to B. 2nd (yellow) top output LED off.
Tst X < True if A is less than B. Top output LEDs both off.

BankStep is Copyright © 2001-2004 by John Dunn and Algorithmic Arts. All Rights Reserved.