📄 pwm3.mdl
字号:
Block {
BlockType Gain
Name "3to2"
Position [390, 28, 430, 72]
NamePlacement "alternate"
Gain "2/3*[1 -0.5 -0.5;0 sqrt(3)/2 -sqrt(3)/2]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Gain
Name "N2n"
Position [235, 27, 285, 73]
Gain "1/3*[2 -1 -1;-1 2 -1;-1 -1 2]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [160, 32, 190, 63]
ShowName off
Operator ">"
InputSameDT off
}
Block {
BlockType Reference
Name "Repeating\nSequence"
Ports [0, 1]
Position [95, 63, 130, 97]
ShowName off
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
rep_seq_t "[0 0.5/fsw 1/fsw]"
rep_seq_y "[1 -1 1]"
}
Block {
BlockType Gain
Name "Vdc"
Position [315, 33, 355, 67]
Gain "Vdc"
}
Block {
BlockType Outport
Name "ab"
Position [450, 43, 480, 57]
}
Line {
SrcBlock "ABC"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 1
}
Line {
SrcBlock "3to2"
SrcPort 1
DstBlock "ab"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "N2n"
DstPort 1
}
Line {
SrcBlock "Repeating\nSequence"
SrcPort 1
Points [5, 0; 0, -25]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Vdc"
SrcPort 1
DstBlock "3to2"
DstPort 1
}
Line {
SrcBlock "N2n"
SrcPort 1
DstBlock "Vdc"
DstPort 1
}
Annotation {
Name "Sinusoidal PWM"
Position [313, 116]
FontSize 11
FontWeight "bold"
}
}
}
Block {
BlockType SubSystem
Name "space vertor"
Ports []
Position [62, 300, 141, 371]
ForegroundColor "orange"
DropShadow on
OpenFcn "close all,figure(1),compass(Fs),axis equal,titl"
"e('SPACE VECTOR in stationary frame');figure(2),compass(Fk,'r'),axis equal,ti"
"tle('SPACE VECTOR in rotating frame'),figure(3),polar(angle(Fs),abs(Fs),'*r')"
",title('SPACE VECTOR TRAJECTORY'),figure(4),polar(angle(Fk),abs(Fk),'*r'),fig"
"ure(4),plot(abpwm(:,1),abpwm(:,2),'-b',ab(:,1),ab(:,2),'-r'),axis equal,grid,"
"title('OUTPUT SPACE VECTOR TRAJECTORY')"
TreatAsAtomicUnit off
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('Space\\nvectors')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "space vertor"
Location [83, 506, 530, 694]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "stat2rot"
Ports [1, 1]
Position [770, 227, 825, 273]
ForegroundColor "red"
TreatAsAtomicUnit off
Port {
PortNumber 1
Name "Fk"
PropagatedSignals "Fk"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "stat2rot"
Location [630, 556, 942, 689]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "stat"
Position [20, 18, 50, 32]
}
Block {
BlockType Gain
Name "-jw"
Position [60, 53, 125, 87]
Gain "-j*2*pi*50"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [205, 47, 235, 78]
ShowName off
Port {
PortNumber 1
Name "Fk"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Math
Name "exp2"
Ports [1, 1]
Position [145, 55, 175, 85]
ShowName off
}
Block {
BlockType Clock
Name "t"
Position [25, 60, 45, 80]
Decimation "10"
}
Block {
BlockType Outport
Name "rot"
Position [270, 58, 300, 72]
}
Line {
SrcBlock "exp2"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "-jw"
SrcPort 1
DstBlock "exp2"
DstPort 1
}
Line {
SrcBlock "t"
SrcPort 1
DstBlock "-jw"
DstPort 1
}
Line {
Name "Fk"
Labels [0, 0]
SrcBlock "Product2"
SrcPort 1
DstBlock "rot"
DstPort 1
}
Line {
SrcBlock "stat"
SrcPort 1
Points [130, 0; 0, 30]
DstBlock "Product2"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Fs"
Position [780, 288, 810, 302]
}
Block {
BlockType Outport
Name "Fk"
Position [875, 283, 905, 297]
ForegroundColor "red"
Port "2"
}
Block {
BlockType Outport
Name "f"
Position [705, 203, 735, 217]
Port "3"
}
Line {
SrcBlock "T1"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
SrcBlock "int2"
SrcPort 1
Points [0, 0; 45, 0]
Branch {
DstBlock "Sum5"
DstPort 1
}
Branch {
DstBlock "T1"
DstPort 1
}
}
Line {
SrcBlock "Sum5"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 0]
DstBlock "2 phase voltage"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "To Workspace2"
DstPort 1
}
}
Line {
SrcBlock "pwm2"
SrcPort 1
Points [25, 0; 0, 60]
DstBlock "Manual Switch2"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [25, 0; 0, 50]
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
Points [25, 0; 0, -45]
DstBlock "Mux3"
DstPort 3
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "modulation\nindex2"
DstPort 1
}
Line {
Name "Fk"
Labels [0, 1]
SrcBlock "stat2rot"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Fk"
DstPort 1
}
}
Line {
Name "Fs"
Labels [2, 0]
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "stat2rot"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "Fs"
DstPort 1
}
}
Line {
Name "dq"
Labels [1, 0]
SrcBlock "Mux2"
SrcPort 1
DstBlock "dq \ncomponents"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
Name "q"
Labels [1, 1]
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
DstBlock "Mux2"
DstPort 2
}
Line {
Name "dq"
Labels [1, 0]
SrcBlock "ab2dq"
SrcPort 1
DstBlock "dq \ncomponents1"
DstPort 1
}
Line {
SrcBlock "number of\nharmonics"
SrcPort 1
DstBlock "To Workspace3"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Branch {
DstBlock "f"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 2
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "modulation\nindex2"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -40]
DstBlock "control signals"
DstPort 1
}
Branch {
Points [0, 35]
Branch {
DstBlock "Manual Switch"
DstPort 1
}
Branch {
Points [0, 120]
DstBlock "Manual Switch1"
DstPort 2
}
}
}
Line {
SrcBlock "pwm1"
SrcPort 1
Points [20, 0; 0, -65]
DstBlock "Manual Switch2"
DstPort 2
}
Line {
SrcBlock "Manual Switch"
SrcPort 1
Points [5, 0; 0, -45]
DstBlock "pwm2"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Manual Switch"
DstPort 2
}
Branch {
Points [0, 80]
DstBlock "Manual Switch1"
DstPort 1
}
}
Line {
SrcBlock "Manual Switch1"
SrcPort 1
DstBlock "pwm1"
DstPort 1
}
Line {
SrcBlock "Manual Switch2"
SrcPort 1
Points [50, 0]
Branch {
Points [45, 0]
Branch {
DstBlock "ab\ncomponents"
DstPort 1
}
Branch {
DstBlock "Demux1"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "ab2dq"
DstPort 1
}
}
Branch {
Points [0, 50]
Branch {
Points [0, 110]
DstBlock "int2"
DstPort 1
}
Branch {
DstBlock "To Workspace1"
DstPort 1
}
}
}
Annotation {
Name "THREE-PHASE SINUSOIDAL PULSE WIDTH MODULATION"
Position [369, 31]
ForegroundColor "red"
FontName "Arial"
FontSize 16
FontWeight "bold"
}
Annotation {
Name "PWM SIGNALS"
Position [584, 217]
FontName "Arial"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "Cycle average"
Position [771, 471]
FontSize 12
FontWeight "bold"
}
Annotation {
Name "modulation\nindex"
Position [191, 137]
ForegroundColor "blue"
}
Annotation {
Name "3-phase input"
Position [84, 72]
FontName "Arial"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "d"
Position [917, 235]
}
Annotation {
Name "Stationary frame"
Position [688, 153]
FontSize 12
FontAngle "italic"
}
Annotation {
Name "Synchronous frame"
Position [879, 157]
FontSize 12
FontAngle "italic"
}
Annotation {
Name "Select model 1 with all manual switches up\n or"
"\nmodel 2 with all switches down "
Position [387, 451]
ForegroundColor "red"
FontName "Arial"
FontSize 16
FontWeight "bold"
FontAngle "italic"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -