Main Content

Chirp Input Signals

R2026b

A swept-frequency cosine input signal, or chirp signal, excites your system at a range of frequencies, such that the input frequency changes instantaneously.

A plot of a chirp signal showing the signal amplitude u(t) on the vertical axis ranging from -1 to 1 and time on the horizontal axis. The signal is a swept-frequency cosine that starts with a low frequency on the left, producing wide oscillations, and increases in frequency toward the right, producing progressively narrower oscillations. A dashed horizontal line marks the zero amplitude level.

You can use a chirp input signal for frequency-response estimation at the command line or in Model Linearizer. The estimation algorithm injects the chirp signal at the input point you specify for estimation, and measures the response at the output point. Chirp signals are useful when your system is nearly linear in the simulation range. They are also useful when you want to obtain a response quickly for a lot of frequency points. The frequency-response model that results when you use a chirp input contains only frequencies that fall within the range of the chirp.

Create Chirp Signals Using Model Linearizer

In the Model Linearizer, to use a chirp input signal for estimation, in the Estimation tab, select Input Signal > Chirp. You can specify the frequency range and other properties of the chirp in one of two ways:

  • Enter the values manually in the Create chirp input dialog box.

  • Initialize the frequencies based on the dynamics of a linear model, such as a linearization of your system.

To create a chirp signal based on a linear model:

  1. Obtain a linearized model, linsys1.

    For example, see Linearize Simulink Model at Model Operating Point, which shows how to linearize a model.

  2. In the Model Linearizer, in the Estimation tab, select Input Signal > Chirp.

    The Create chirp input dialog box opens.

    The Create chirp input dialog box in Model Linearizer. The dialog box contains fields for Variable name set to in_chirp1, Frequency units set to rad/s, and a Parameters section. The Parameters section includes an Initialize parameters based on a system panel with a drop-down list for selecting a linear system.

  3. In the System list, select linsys1. Click Compute parameters.

    The Parameters section of the Create chirp input dialog box, showing the Initialize parameters based on a system panel. The System drop-down list is set to linsys1. On the right side a Compute parameters button is available to automatically determine chirp signal parameters based on the selected system.

    The software automatically selects frequency points based on the dynamics of linsys1. The software also automatically determines other parameters of the chirp signal, including:

    • Frequency range — Range of frequencies for the chirp, which the software chooses based on the frequencies at which the linear system has interesting dynamics.

    • Amplitude — Amplitude of applied perturbation.

    • Sample time — Sample time of signal. To avoid aliasing, the software chooses the sample time such that the Nyquist frequency of the signal is five times the upper end of the frequency range, 2π5*max(FreqRange).

    • Number of samples

    • Initial phase

    • Sweep method

    • Sweep shape

  4. Click OK to create the chirp input signal. A new input signal in_chirp1 appears in the Linear Analysis Workspace.

    The Linear Analysis Workspace panel in Model Linearizer showing a newly created chirp input signal, in_chirp1. Below the table, a Variable Preview section displays details of the signal: Chirp input signal with linear sweep from 1 to 1000 rad/s and a simulation time of 12.5651 seconds.

You can now select this signal in the Input Signal drop-down list for estimation.

The mapping between the parameters of the Create chirp input dialog box in the Model Linearizer and the properties of frest.Chirp is as follows:

Create chirp input dialog boxfrest.Chirp property
Frequency range > From First element associated with the 'FreqRange' option
Frequency range > ToSecond element associated with the 'FreqRange' option
Amplitude'Amplitude'
Sample time (sec)'Ts'
Number of samples'NumSamples'
Initial phase (deg)'InitialPhase'
Sweep method'SweepMethod'
Sweep shape'Shape'

Create Chirp Signals Using MATLAB Code

To create a chirp signal for estimation at the command line with frestimate, use frest.Chirp. See that page for examples and more information about chirp signal properties.

See Also

Topics