Subtractor block

The subtracter block calculates the difference between two fields.

Return to Overview of blocks

Subtractor block

Description

The value of an output field is the value of the field from port 1 minus the value of the field from port 2.

Subtractor block

Block Type

Mathematical block

Input/Output ports

Each input port can only accept floating point (i.e. double) fields.

There is an output field for each difference calculation that the block is configured to compute.

Functions performed on tags
  • On the values - The value of an output field is the value of the field from port 1 minus the value of the field from port 2.  If the quality of any one of the input fields is bad, the value of the output field is 0 (and the quality is bad)

  • On the timestamp - The output field will always have the execution time stamp.

  • On the quality - When any of the 2 fields used to produce an output field has bad quality, the quality of the output field will be bad (and the output field's value will be 0).

Return to top


Related topics:

  

CSense 2023- Last updated: June 24,2025