Main Content

Check Signal Range with Check Dynamic Range Block

You can check if an input signal falls outside of a dynamic upper and lower bound by using the Check Dynamic Range block.

This model uses a Sine Wave block as a dynamic test signal. The Check Dynamic Range block determines if the value of the sine wave exceeds the signal from the Ramp block or falls below the signal from the Step block at each time step. In the Check Dynamic Range block, the Output assertion signal parameter is selected, so the output signal indicates if the assertion condition is true (1) or false (0). Press Run to observe the model output.

In the Scope block, you can see that the Check Dynamic Range block outputs 0 until the sine wave falls below the value of the Ramp block when the simulation time is 2.47. The block output stays at 1 until the simulation time reaches 3.14, when the sine wave falls below the value of the Step block. The Step block activates when the simulation time reaches 3.5, placing the sine wave between the bounds. The Check Dynamic Range block recognizes this change and outputs 1.

See Also

|