# Qinsy

# Operator

+ - * / % & | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|

Several different operators are currently supported to modify any number. The sequence order is important when you use a combination of operators in order to get the right outcome. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

*) You may also enter one of the following constants: |

Operator | Description | Examples |
---|---|---|

ADD |
- [ Manual ]
Add the operator value to the current value. - List with all number items already available in the current layout.
So instead of using a fixed manual value as operand, you may select another item from a list with all defined items representing a number. Any combination is possible, as long as the selected item represents a number and already exists in the current layout. The number preceding the item's name corresponds to the order of that item in the layout, which is visible in the OVERVIEW, Layout pane.
| |

SUB |
- [ Manual ]
Subtract the operator value from the current value. - List with all number items already available in the current layout.
So instead of using a fixed manual value as operand, you may select another item from a list with all defined items representing a number. Any combination is possible, as long as the selected item represents a number and already exists in the current layout. The number preceding the item's name corresponds to the order of that item in the layout, which is visible in the OVERVIEW, Layout pane.
| |

MUL |
- [ Manual ]
Multiply the operator value with the current value. - List with all number items already available in the current layout.
So instead of using a fixed manual value as operand, you may select another item from a list with all defined items representing a number. Any combination is possible, as long as the selected item represents a number and already exists in the current layout. The number preceding the item's name corresponds to the order of that item in the layout, which is visible in the OVERVIEW, Layout pane.
| |

DIV |
- [ Manual ]
Divide the current value by the operator value. The operator value can not be zero - List with all number items already available in the current layout.
So instead of using a fixed manual value as operand, you may select another item from a list with all defined items representing a number. Any combination is possible, as long as the selected item represents a number and already exists in the current layout. The number preceding the item's name corresponds to the order of that item in the layout, which is visible in the OVERVIEW, Layout pane.
| |

ABS |
| ABS( 12.18) = 12.18 |

MOD |
| 100 MOD 10 = 0 |

INT |
| INT(345.678) = 345 |

MASK |
| 21 AND 1 = 1 : 1 |

POS | Boolean indication if a value is zero, positive or negative, so the result will always be -1, 0 or 1. Result will be -1 when the decoded value is negative, 0 (zero) when the decoded value is zero and will be 1 when the decoded value is positive. | POS(-123) = -1 |

INV |
Result will be | INV(100.0) = 0.01 INV(-0.03) =- 33.3333 INV(0) = #invalid operator |

SQRT |
Result will be | SQRT(100) = 10.0 SQRT(-100) = #invalid operator |

SQR |
The result will be value * value | SQR(100) = 10000 SQR(-100) = 10000 |

CUBE |
The result will be value * value * value | CUBE(100) = 1000000.0 CUBE(-100) = -1000000.0 |

SIN |
Please use the DIV operator (with value 57.29578) in order to convert a possible value in degrees into radians first.
Also you may use an ADD operator to add a value of half pi (1.570796 rad or 90 deg), in order to get the cosine as end result. For example, when the original items value is 100°, so the unit is degrees, and you need to display the cosine, then use the following combination: From QINSy v8.16 on you should use the COS operator, instead of using the above described workaround. | |

COS |
Please use the DIV operator (with value 57.29578) in order to convert a possible value in degrees into radians first.
| |

TAN |
The tangent of the value. The item's value is expected to be in Please use the DIV operator (with value 57.29578) in order to convert a possible value in degrees into radians first.
#invalid operator when the decoded value is half-pi (90°), 1.5 pi (270°), minus half-pi (-90°), etc. | |

ASIN |
The result will be an angle in
| |

ACOS |
The result will be an angle in
| |

ATAN |
The result will be a angle in
| |

ANGLE180 | The result will be a value always between -180 <= and <= +180 This operator can be useful when dealing with numbers representing an angle. | |

ANGLE360 | The result will be a value always between 0 <= and < 360 This operator can be useful when dealing with numbers representing an angle. | |

MIN |
Additionally, you may use the period to set the length for a buffer containing the last number of trigger updates. Leave the period zero (default) for an 'endless' buffer. | |

MAX |
Additionally, you may use the period to set the length for a buffer containing the last number of trigger updates. Leave the period zero (default) for an 'endless' buffer. | |

AVE |
Additionally, you may use the period to set the length for a buffer containing the last number of trigger updates. Leave the period zero (default) for an 'endless' buffer. | |

STD |
The standard deviation (95% confidential region) of the item during the entire session that the generic component was active. You may use the DIV operator, with value 1.95996428539, in order to convert the result to 1-sigma (68%). Additionally, you may use the period to set the length for a buffer containing the last number of trigger updates. Leave the period zero (default) for an 'endless' buffer. |