Control Math

The control math object provides the ability to manipulate input control signals. This module can be configured
in the SFD to operate in one of the following modes:

  • ADD – In this mode, control inputs into the object are summed up and their sum is fed to the output of the object.
  • SUBTRACT – The difference between two control inputs into this object is sent out at the output.
  • MULTIPLY – Takes the input controls and writes their product to the output.
  • DIVIDE – Takes two input controls and writes the result of their division to the output. If the divisor is zero, the maximum float value is returned as the result.
  • MAXIMUM – Takes the input controls and writes out the maximum of the values.
  • MINIMUM – Takes in two input controls and writes out the minimum of the two values.
  • LIN2DB – Takes a linear control value as an input and outputs its logarithmic equivalent. If the input value is less than or equal to zero, the result returned is zero.
  • DB2LIN – Takes a logarithmic control value as an input and outputs its linear equivalent.
  • INVERT – Reads a control value and outputs the negative (inverse) of that value.
  • RECIPROCAL – Takes in a value, x, and outputs its reciprocal 1/x. If the value x is zero, the maximum float value is returned as the result.
  • SQUARE – Takes in a value, x, and outputs its squared value x²
  • SQUAREROOT – Takes in a value, x, and outputs its SQRT(x). If the value x, is negative, the result returned is zero.
  • AND – Takes in two inputs, x1 and x2, and outputs x1 AND x2
  • OR – Takes in two inputs, x1 and x2, and outputs x1 OR x2
  • XOR – Takes in two inputs, x1 and x2, and outputs x1 XOR x2
  • NOT – Takes in an input x, and outputs NOT x
  • NAND – Takes in two inputs, x1 and x2, and outputs x1 NAND x2
  • NOR – Takes in two inputs, x1 and x2, and outputs x1 NOR x2
  • GREATER – Takes in two inputs, x1 and x2, and outputs true if x1 > x2
  • LESS – Takes in two inputs, x1 and x2, and outputs true if x1 < x2
  • EQUAL – Takes in two inputs, x1 and x2, and outputs true if x1 = x2
  • SPLITTER – Takes in an input control and copies it to the outputs, the number of which the user specified in the SFD.
  • DUPLICATE – Takes in the number of inputs users have specified and writes each input out to two output pins.
  • DELAY – Takes in a user setting delay (in ms) and writes to the output only after that delay time has passed. This object does not expose any variables to tuning and control.

_________________

Rate this post!