Contenuto principale

Sawtooth Generator

(To be removed) Generate sawtooth waveform at regular intervals

The Specialized Power Systems library will be removed in R2026a. Use the Simscape™ Electrical™ blocks and functions instead. For more information on updating your models, see Upgrade Specialized Power System Models to use Simscape Electrical Blocks.

  • Sawtooth Generator block

Libraries:
Simscape / Electrical / Specialized Power Systems / Sources / Signal Generator Sources

Description

The Sawtooth Generator block generates a sawtooth waveform, with peak amplitude of +/−1, at regular intervals. The figure shows how the Frequency and Phase block parameters affect the output waveform.

Characteristics

Sample TimeSpecified in the Sample Time parameter
Continuous if Sample Time = 0
Scalar ExpansionNo
DimensionalizedNo
Zero-Crossing DetectionNo

Ports

Output

expand all

Output of the block sawtooth signal.

Parameters

expand all

Specify the frequency of the sawtooth waveform, in hertz.

Specify the delay of the sawtooth waveform, in degrees. When the phase is set to 0, the waveform starts with an amplitude of −1 and a positive slope.

Specify the sample time of the block, in seconds. Set to 0 to implement a continuous block.

Extended Capabilities

expand all

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

Version History

Introduced in R2013a