Main Content

Start-Stop Generator

Generate start-stop signal used by signal generation, estimation, and autotuning blocks

Since R2024a

  • Start-Stop Generator block

Libraries:
Simulink Control Design / Signal Generation

Description

Use this block to generate a signal for the start/stop input port of signal generation, frequency response estimation, and PID autotuning blocks in Simulink® Control Design™ library. This port determines when to start and stop generating the perturbation signal in these blocks. The Start-Stop Generator block generates a signal that changes from 0 to 1 at the specified time values to enable the blocks, and from 1 to 0 to disable after the specified duration has passed.

This block is helpful when you to generate start-stop signal to enable estimation or autotuning process at different operating conditions.

Ports

Input

expand all

Specify a signal to enable (1) or disable (0) the block action.

Data Types: single | double

Specify the start times for the signals as a scalar or vector.

The block generates a signal that goes from 0 to 1 at the specified start times for a duration specified using the Duration (sec) parameter. After the duration has passed, the signal goes from 1 to 0.

Data Types: single | double

Connect the output of your plant to this port. The block determines the current operating state of the system and generates the start-stop signal using this signal.

Data Types: single | double

Output

expand all

Start-stop signal. The value of the signal changes from:

  • Negative or zero to positive at the values specified using start times or at steady-state times determined using Steady-state settings.

  • Positive to negative or zero after the duration specified in Duration (sec) has passed.

Typically, you use this signal to start and stop frequency response estimation, signal generation, or autotuning processes. When the enable port is set to 0, the block does not generate a start-stop signal.

Data Types: single | double

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

Specify the sample time of the generated start-stop signal.

Specify the floating-point precision based on simulation environment or hardware requirements.

Specify the source of start time points as one of the following:

  • External time vector — Use the start times output port to specify explicit values of start times.

  • Time after reaching steady-state — Use the plant output signal y and Steady-state settings to determine the times to start generating the start-stop signal.

Specify the duration of the start stop signal.

Specify the number of samples after reaching steady-state for which the block delays generating a start-stop signal.

Specify the upper bound for the operating value used to determine settling time and steady state of the operating point.

Each value of this vector corresponds to the upper bound for the operating point value at that index.

Specify the lower bound for the operating value used to determine settling time and steady state of the operating point.

Each value of this vector corresponds to the lower bound for the operating point value at that index.

Specify the time interval for which the operating condition remains in steady state.

Use a vector to specify different time intervals for different operating points.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2024a