Polybench® for biosignals / reference 1.34.1
Compares variables of other objects and changes its signal output to 0 (false) or 1 (true).

Variable Compare

Overview

Using the Variable Compare you can compare a variable in your application to a fixed value. The comparison is valid for numerical values as well as textual values.
If a textual value is compared, then the alphabetical order of the variable compared to the Compare Value is determined.

If a variable refers to multiple values, then the first value found is used. In that case, you cannot know exactly which value is used; therefore please take care that the variable you specify refers to a unique location.

Operator ports

Output K: Floating point values
This is a Constant output, which does not output a signal, but a single value. A constant output does not have a sample frequency and is therefore recognized by Polybench to be a constant. Many calculations can be performed on constants as well as signals (or a combination of both). If an operator performs a calculation on constants only, it becomes a constant operator itself.

Constants and any other data source are allowed to be mixed without synchronization ("Synchronizer").

In a schematic, connectors that are connected to constant outputs are always colored black, while connections from other data sources may be colored differently.

Properties

Find more information about changing properties here: "Properties Viewer"

Address
type: Address, starts with '$' sign (see "Address - how to address objects and variable parameters")
Specify the address of a variable that should be compared to CompareValue

You may type or paste the address, or you may press the small button on the right to open the Address Constructor ("Address Constructor")

CompareValue
type: See description
Define the value that the variable is compared against.


Method
type: Select from the list
Select the comparison method.
Select one of those presets:
Equal
Put out True if S1 equals S2
Unequal
Put out True if S1 is unequal to S2
GreaterOrEqual
Put out True if S1 greater than or equal to S2
LessOrEqual
Put out True if S1 less than or equal to S2
Greater
Put out True if S1 greater than S2
Less
Put out True if S1 is less than S2


Caption
type: Word or phrase
The name of the object in the project. This name must not contain '.', '$' nor '@' characters.

For more information about the rules and usage of the Caption property, please refer to "Caption property - background and usage".

Documentation
type: See description
Optional documentation of this object. If this object is an operator, the Documentation text is displayed below the operator symbol.