Skip to main content

Sign Function

According to the positive and negative output symbol value of the input signal, it is used for flow direction judgment, segmentation operation and logic switching.

Component Appearance and Location​

Expand Controller in component library on the left and find "Symbolic Functions".

Created with Fabric.js 5.3.0

Ports and Connections​

Port KeyTypeDirectionInterface NameDisplay Conditions
0CONTROLinputInput signal portalways show
1CONTROLoutputOutput signal portalways show

The input terminal receives the signal to be judged, and the output terminal gives its positive, negative or zero direction.

Parameter List​

Sign Function has no parameters to display.

Parameter Guidance​

Connect the signed signal to port 0. For flow direction, confirm the target and measurement port convention. Measurement Direction

Modeling Steps​

  1. Connect signed flow, error, or another signal.
  2. Connect output to logic or an oscilloscope.
  3. Run transient simulation and compare simultaneous input and output.

View Results​

Output is dimensionless: 1 for positive, 0 for zero, −1 for negative input. Magnitude changes without sign changes leave output unchanged.

Professional Theory​

For input uu at the current control instant, output is

sgn⁡(u)={−1,u<0,0,u=0,1,u>0.\operatorname{sgn}(u)= \begin{cases} -1, & u<0,\\ 0, & u=0,\\ 1, & u>0. \end{cases}

NexusFlow tests directly against zero. Every finite nonzero input is classified by sign once ready at the current control instant. Signal Updates

Applicability and Limits​

  • Direction. Encodes direction or error sign. Branch the original and use Absolute Value for magnitude.
  • Near zero. Define thresholds and switching logic for deadband or hysteresis.
  • Commands. Map −1, 0, and 1 into the receiver allowed range when needed.

Common Inspections​

  • Frequent switching. Check repeated zero crossings and need for deadband.
  • Unexpected direction. Check measurement, port, and positive-flow definitions.