Discrete-time or continuous-time three-phase sinusoidal signal generator with programmable magnitude, phase, frequency, and overlapping harmonics
Simscape / Electrical / Control / General Control
The Programmable Signal Generator (Three-Phase) generates a three-phase sinusoidal signal with programmable magnitude, phase, and frequency over time. You can specify one or two harmonics that can be overlapped on the signal fundamental frequency.
You can switch between continuous and discrete implementations of the block by using the
Sample time parameter. To configure the block for continuous
time, set Sample time to 0
. To configure the
block for discrete time, set Sample time to a positive, nonzero
value.
abc
— Three-phase sinusoidal signalThree-phase sinusoidal signal, returned as a vector.
Data Types: single
| double
m
— Signal measurementsMagnitude, frequency, phase, and angle of the sine wave of all three phases of the sinusoidal signal, returned as a vector.
Data Types: single
| double
Sample time
— Block sample time1e-5
(default) | 0 | positive scalarTime between consecutive block executions. During execution, the block produces outputs and, if appropriate, updates its internal state. For more information, see What Is Sample Time? and Specify Sample Time.
For discrete-time operation, specify a positive integer. For
continuous-time operation, specify 0
.
Variation configuration
— Type of magnitude variationConstant
(default) | Ramp
| Step
| Modulation
| Table
Type of variation to apply to the signal magnitude.
Magnitude (value)
— Magnitude of generated three-phase sine wave100
(default) | scalarMagnitude of the generated positive-sequence three-phase sine wave.
To enable this parameter, set Variation configuration to
Constant
,
Ramp
,
Step
, or
Modulation
.
Rate of change (value/s)
— Magnitude rate of change100
(default) | scalarRate of change of the magnitude.
To enable this parameter, set Variation
configuration to
Ramp
.
Step value (value)
— Magnitude step value100
(default) | scalarAmplitude of the step variation for the signal magnitude.
To enable this parameter, set Variation
configuration to
Step
.
Modulation magnitude
— Modulation magnitude50
(default) | scalarMagnitude of the modulation for the signal magnitude.
To enable this parameter, set Variation
configuration to
Modulation
.
Modulation frequency
— Modulation frequency10
(default) | scalarFrequency of the modulation for the signal magnitude.
To enable this parameter, set Variation
configuration to
Modulation
.
Start time
— Start time of magnitude variation0.1
(default) | scalarTime when the programmed variation on the magnitude starts.
To enable this parameter, set Variation configuration to
Constant
,
Ramp
,
Step
, or
Modulation
.
Stop time
— Stop time of magnitude variation0.6
(default) | scalarTime when the programmed variation on the magnitude stops.
To enable this parameter, set Variation configuration to
Constant
,
Ramp
,
Step
, or
Modulation
.
Table data
— Magnitude table values[0 30 60 90]
(default) | vectorValues of the signal magnitude that correspond to the time values specified in the Time values parameter.
To enable this parameter, set Variation
configuration to
Table
.
Time values
— Magnitude time values[0 0.3 0.6 0.9]
(default) | vectorTime values when the signal magnitude changes to the values specified in the Table data parameter.
To enable this parameter, set Variation
configuration to
Table
.
Variation configuration
— Type of frequency variationConstant
(default) | Ramp
| Step
| Modulation
| Table
Type of variation to apply to the signal frequency.
Frequency (Hz)
— Frequency of generated three-phase sine wave100
(default) | scalarFrequency of the generated positive-sequence three-phase sine wave.
To enable this parameter, set Variation configuration to
Constant
,
Ramp
,
Step
, or
Modulation
.
Rate of change (Hz/s)
— Frequency rate of change100
(default) | scalarRate of change of the frequency.
To enable this parameter, set Variation
configuration to
Ramp
.
Step value (Hz)
— Frequency step value100
(default) | scalarAmplitude of the step variation for the signal frequency.
To enable this parameter, set Variation
configuration to
Step
.
Modulation magnitude
— Frequency modulation magnitude50
(default) | scalarMagnitude of the modulation for the signal frequency.
To enable this parameter, set Variation
configuration to
Modulation
.
Modulation frequency
— Frequency modulation frequency10
(default) | scalarFrequency of the modulation for the signal frequency.
To enable this parameter, set Variation
configuration to
Modulation
.
Start time
— Start time of frequency variation0.1
(default) | scalarTime when the programmed variation on the frequency starts.
To enable this parameter, set Variation configuration to
Constant
,
Ramp
,
Step
, or
Modulation
.
Stop time
— Stop time of frequency variation0.6
(default) | scalarTime when the programmed variation on the frequency stops.
To enable this parameter, set Variation configuration to
Constant
,
Ramp
,
Step
, or
Modulation
.
Table data
— Frequency table values[0 30 60 90]
(default) | vectorValues of the signal frequency that correspond to the time values specified in the Time values parameter.
To enable this parameter, set Variation
configuration to
Table
.
Time values
— Frequency time values[0 0.3 0.6 0.9]
(default) | vectorTime values when the signal frequency changes to the values specified in the Table data parameter.
To enable this parameter, set Variation
configuration to
Table
.
Variation configuration
— Type of phase variationConstant
(default) | Ramp
| Step
| Modulation
| Table
Type of variation to apply to the phase magnitude.
Phase shift (deg)
— Phase shift of generated three-phase sine wave100
(default) | scalarPhase shift of the generated positive-sequence three-phase sine wave.
To enable this parameter, set Variation configuration to
Constant
,
Ramp
,
Step
, or
Modulation
.
Rate of change (deg/s)
— Phase rate of change100
(default) | scalarRate of change of the phase.
To enable this parameter, set Variation
configuration to
Ramp
.
Step value (deg)
— Phase step value100
(default) | scalarAmplitude of the step variation for the signal phase.
To enable this parameter, set Variation
configuration to
Step
.
Modulation magnitude
— Phase modulation magnitude50
(default) | scalarMagnitude of the modulation for the signal phase.
To enable this parameter, set Variation
configuration to
Modulation
.
Modulation frequency
— Phase modulation frequency10
(default) | scalarFrequency of the modulation for the signal phase.
To enable this parameter, set Variation
configuration to
Modulation
.
Start time
— Start time of phase variation0.1
(default) | scalarTime when the programmed variation on the phase starts.
To enable this parameter, set Variation configuration to
Constant
,
Ramp
,
Step
, or
Modulation
.
Stop time
— Stop time of phase variation0.6
(default) | scalarTime when the programmed variation on the phase stops.
To enable this parameter, set Variation configuration to
Constant
,
Ramp
,
Step
, or
Modulation
.
Table data
— Phase table values[0 30 60 90]
(default) | vectorValues of the signal phase that correspond to the time values specified in the Time values parameter.
To enable this parameter, set Variation
configuration to
Table
.
Time values
— Phase time values[0 0.3 0.6 0.9]
(default) | vectorTime values when the signal frequency changes to the values specified in the Table data parameter.
To enable this parameter, set Variation
configuration to
Table
.
Enable harmonic A
— Harmonic A overlapoff
(default) | on
Whether harmonic A overlaps the fundamental frequency of the generated signal.
Harmonic sequence
— Type of harmonic A sequenceZero Sequence
(default) | Positive Sequence
| Negative Sequence
Type of sequence for harmonic A.
To enable this parameter, select the Enable harmonic A check box.
Harmonic order
— Order of harmonic A3
(default) | scalarOrder of harmonic A that overlaps the signal fundamental frequency.
To enable this parameter, select the Enable harmonic A check box.
Harmonic magnitude
— Magnitude of harmonic A50
(default) | scalarMagnitude of harmonic A that overlaps the signal fundamental frequency.
To enable this parameter, select the Enable harmonic A check box.
Harmonic phase shift
— Phase shift of harmonic A180
(default) | scalarPhase shift of harmonic A that overlaps the signal fundamental frequency.
To enable this parameter, select the Enable harmonic A check box.
Start time
— Start time of harmonic A overlap0.1
(default) | scalarTime when the harmonic A overlaps the signal fundamental frequency.
To enable this parameter, select the Enable harmonic A check box.
Stop time
— Stop time of harmonic A overlap0.6
(default) | scalarTime when the harmonic A stops overlapping the signal fundamental frequency.
To enable this parameter, select the Enable harmonic A check box.
Enable harmonic B
— Harmonic B overlapoff
(default) | on
Whether harmonic B overlaps the fundamental frequency of the generated signal.
Harmonic sequence
— Type of sequence of harmonic BZero Sequence
(default) | Positive Sequence
| Negative Sequence
Type of sequence for harmonic B.
To enable this parameter, select the Enable harmonic B check box.
Harmonic order
— Order of harmonic B3
(default) | scalarOrder of harmonic B that overlaps the signal fundamental frequency.
To enable this parameter, select the Enable harmonic B check box.
Harmonic magnitude
— Magnitude of harmonic B50
(default) | scalarMagnitude of harmonic B that overlaps the signal fundamental frequency.
To enable this parameter, select the Enable harmonic B check box.
Harmonic phase shift
— Phase shift of harmonic B180
(default) | scalarPhase shift of harmonic B that overlaps the signal fundamental frequency.
To enable this parameter, select the Enable harmonic B check box.
Start time
— Start time of harmonic B overlap0.1
(default) | scalarTime when the harmonic B overlaps the signal fundamental frequency.
To enable this parameter, select the Enable harmonic B check box.
Stop time
— Stop time of harmonic B overlap0.6
(default) | scalarTime when the harmonic B stops overlapping the signal fundamental frequency.
To enable this parameter, select the Enable harmonic B check box.