Sine Wave Generator (Three-Phase)
Libraries:
Simscape /
Electrical /
Control /
General Control
Description
The Sine Wave Generator (Three-Phase) block generates a balanced three-phase sine wave from magnitude, phase shift, and frequency inputs.
Ports
Input
mag — Magnitude of generated three-phase sine wave
scalar
Magnitude of the generated three-phase sine wave, specified as a scalar.
ang — Phase shift of the generated three-phase sine wave, deg
scalar
Phase shift for phase a of the generated three-phase sine wave, specified as a scalar in degrees.
freq — Frequency of generated three-phase sine wave, Hz
scalar
Frequency of the generated three-phase sine wave, specified as a scalar in Hz.
Output
abc — Three-phase sine wave
vector
Three-phase sine wave, returned as a Simulink signal vector.
wt — Angle of sine wave of all three phases, rad
vector
Angle of all three phases of the sine wave, returned as a Simulink signal vector in rad.
Parameters
Sample time (-1 for inherited) — Block sample time
-1
(default) | 0
| positive scalar
Time 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 inherited discrete-time operation, set this parameter to -1
.
For discrete-time operation, set this parameter to a positive integer. For
continuous-time operation, set this parameter to 0
.
If this block is in a masked subsystem or a variant subsystem that supports switching between continuous operation and discrete operation, promote this parameter to ensure correct switching between the continuous and discrete implementations of the block. For more information, see Promote Block Parameters on a Mask.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Version History
Introduced in R2020a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)