When an input satisfies one of the twenty-five rules, a corresponding output increments, allowing you to count the number of times an input met a rule.
The Bin module can be used in ordinary histogram applications, where the module counts the number of observations that fall into each of the disjoint categories (i.e., Bin 1 to Bin 25 output registers).
The input value from Source A is tested against all of the arguments in the Rule setup registers.
The input value from Source B is tested against all of the arguments in the Rule setup registers.
This input is used as the nominal value of Source A in the Rule setup registers if Eval Mode A is set to PERCENTAGE. Refer to the Eval Mode A setup register below.
This input is used as the nominal value of Source B in the Rule setup registers if Eval Mode A is set to PERCENTAGE. Refer to the Eval Mode B setup register below..
A pulse at this input triggers the Bin module’s evaluation: the values at the inputs are tested against the Rules setup registers, then the output registers are updated accordingly.
This input enables or disables the Bin module. When disabled, the module does not update the Bin 1 to Bin 25 output registers, and ignores pulses at the Evaluate input. This input is optional; if you leave it unlinked, the module is enabled by default.
This input resets the module’s Bin outputs to NOT AVAILABLE until an Evaluate pulse is received. This input is optional; if you leave it unlinked, this input never receives a pulse.
These strings specify the rules that Source A and Source B are tested against. If a Rule is met, its corresponding Bin output is incremented. For Rule string syntax, refer to “Specifying Rules” section.
This register defines whether the rules testing Source A are relative to Nominal A. When this register is set to VALUE, the Rules’ numeric arguments are in absolute terms; if this register is set to PERCENTAGE, the Rules are in terms of a percentage of Nominal. Refer to the “Evaluation Modes” section for details.
This register defines whether the rules testing Source B are relative to Nominal B. When this register is set to VALUE, the Rules’ numeric arguments are in absolute terms; if this register is set to PERCENTAGE, the Rules are in terms of a percentage of Nominal. Refer to the “Evaluation Modes” section for details.
This register allows you to set a custom priority level to certain events written to the Event output register. When EvPriority is zero, no event is written. Refer to the Event output register description for details.
Once the Evaluate input is pulsed and Rule n is satisfied by the Source inputs, Bin n is incremented by one. The Bin module continues to increment its Bin outputs each time their corresponding Rules are met by the Source inputs, until the module is disabled or reset.
All events are recorded in the Event register. Possible events and their associated priority numbers are:
|Event priority group
|Input Links, setup registers or labels have been changed.
|A Bin output was incremented.
* The EvPriority setup register defines the priorities of these events.
The Event output register stores the following information for each ION event: time stamp, priority, cause, effect, and any values or conditions associated with the cause and effect.
Detailed module operation
When the Bin module receives a pulse on its Evaluate input, it checks whether any of the Rule setup registers are satisfied by the values of the Source inputs. The Source inputs may be relative to their corresponding Nominal inputs depending on the Eval Mode setting (refer to “Evaluation Modes”). If Rule n is satisfied by the inputs, then the Bin n output is incremented.
The rules are specified using variables (A for Source A, B for Source B), numbers, mathematical operands, and ampersands (the ‘&’ symbol). An ampersand allows you to test both Source A and Source B in the same rule.
Valid operands include:
|less-than or equal to
|greater-than or equal to
For example, to specify a rule where Bin 1 increments when Source A is greater than 15, the Rule 1 setup register is:
Note that the spaces between the variable, number, and operator are required. Use an ampersand to test both Source A and Source B in the same Rule. For example, to specify Bin 12 to increment when Source A is greater-than 20 and less-than 40; and Source B is greater-than or equal to 50; set Rule 12 to:
20 < A < 40 & B >= 50 (spaces required)
The Eval Mode setup registers define whether the numbers in the rules are absolute or relative to the nominal.
When set to PERCENTAGE, the numeric arguments in the Rule setup registers are interpreted as percentages of the Nominal input. For example, if the Rule 1 setup register is set to A < 50, then the Bin 1 output will increment if Source A is less-than 50% of Nominal A.
When the Eval Mode setup registers are set to VALUE, the numeric arguments are absolute, and the Nominal inputs are not used to evaluate that particular Rule.