📄 svpwm3b.mdl
字号:
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [635, 155, 655, 175]
ShowName off
IconShape "round"
Inputs "|-+"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [395, 175, 425, 205]
ShowName off
IconShape "round"
Inputs "+|+"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [580, 568, 590, 617]
ShowName off
Inputs "+-"
}
Block {
BlockType TransportDelay
Name "T1"
Position [520, 590, 560, 620]
DelayTime "1/fsw"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [765, 523, 805, 557]
ShowName off
VariableName "abpwm"
MaxDataPoints "inf"
Decimation "2"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [765, 643, 795, 677]
ShowName off
VariableName "ab"
MaxDataPoints "inf"
Decimation "2"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [115, 415, 145, 445]
ShowName off
VariableName "h"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Gain
Name "Vdc"
Position [520, 425, 575, 475]
BackgroundColor "red"
ShowName off
}
Block {
BlockType Scope
Name "control signals"
Ports [1]
Position [295, 516, 330, 564]
Location [650, 101, 1089, 386]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "Control signals"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.02"
YMin "-1"
YMax "1"
SaveToWorkspace on
SaveName "cs"
DataFormat "Array"
MaxDataPoints "25000"
SampleInput on
}
Block {
BlockType SubSystem
Name "fourier"
Ports []
Position [51, 471, 156, 513]
ForegroundColor "orange"
DropShadow on
NamePlacement "alternate"
ShowName off
OpenFcn "fourierdec"
FontName "Arial"
FontSize 14
FontWeight "bold"
ShowPortLabels off
TreatAsAtomicUnit off
MaskHelp "Fourier series decomposition"
MaskDisplay "disp('FOURIER')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "fourier"
Location [148, 571, 512, 671]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "To obtain the Fourier decomposition of a pe"
"riodic signal:\na) run a simulation for one period duration\nb) Specify the f"
"undamental frequency\n c) Specify the number of harmonics\n"
Position [187, 48]
FontSize 12
}
}
}
Block {
BlockType Integrator
Name "int2"
Ports [1, 1]
Position [475, 561, 495, 599]
ShowName off
}
Block {
BlockType Gain
Name "modulation\nindex2"
Position [155, 277, 205, 323]
BackgroundColor "red"
NamePlacement "alternate"
ShowName off
}
Block {
BlockType Constant
Name "number of\nharmonics"
Position [60, 415, 90, 445]
BackgroundColor "orange"
Value "40"
}
Block {
BlockType SubSystem
Name "plots"
Ports []
Position [43, 540, 160, 643]
ForegroundColor "orange"
DropShadow on
NamePlacement "alternate"
ShowName off
OpenFcn "close all,figure(1),plot(cs(:,1),cs(:,2),'r',cs"
"(:,1),cs(:,3),'g',cs(:,1),cs(:,4),'b'),grid,title('Control signals'),figure(2"
"),plot(abpwm(:,1),abpwm(:,2),'-b',ab(:,1),ab(:,2),'-r'),axis equal,grid,title"
"('OUTPUT SPACE VECTOR TRAJECTORY')"
FontName "Arial"
FontSize 16
FontWeight "bold"
TreatAsAtomicUnit off
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('PLOTS')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "plots"
Location [81, 508, 528, 696]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Scope
Name "pwm"
Ports [1]
Position [670, 376, 705, 424]
Location [650, 494, 1093, 813]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "3-phase PWM"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.02"
YMin "-0.8"
YMax "0.8"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "25000"
SampleInput on
}
Block {
BlockType Outport
Name "f"
Position [795, 158, 825, 172]
}
Block {
BlockType Outport
Name "f1"
Position [790, 358, 820, 372]
Port "2"
}
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 {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "modulation\nindex2"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, -55]
Branch {
DstBlock "MinMax2"
DstPort 1
}
Branch {
Points [0, -95]
DstBlock "MinMax1"
DstPort 1
}
}
Branch {
Points [410, 0]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "MinMax1"
SrcPort 1
Points [55, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "MinMax2"
SrcPort 1
Points [50, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Manual Switch"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Manual Switch"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Manual Switch"
DstPort 1
}
Line {
SrcBlock "Repeating\nSequence"
SrcPort 1
Points [5, 0; 0, -25]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "T1"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
SrcBlock "int2"
SrcPort 1
Points [0, 0; 5, 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 {
DstBlock "2 phase voltage"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "To Workspace2"
DstPort 1
}
}
Line {
SrcBlock "Vdc"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "3to2"
DstPort 1
}
Branch {
Points [0, -50]
Branch {
DstBlock "pwm"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "f1"
DstPort 1
}
}
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 185; -515, 0; 0, 90]
Branch {
Points [0, 100]
DstBlock "control signals"
DstPort 1
}
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
}
Branch {
DstBlock "f"
DstPort 1
}
}
Line {
SrcBlock "3to2"
SrcPort 1
Points [30, 0; 0, 90]
Branch {
Points [-265, 0; 0, 40]
DstBlock "int2"
DstPort 1
}
Branch {
DstBlock "To Workspace1"
DstPort 1
}
}
Line {
SrcBlock "number of\nharmonics"
SrcPort 1
DstBlock "To Workspace3"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "N2n"
DstPort 1
}
Line {
SrcBlock "N2n"
SrcPort 1
DstBlock "Vdc"
DstPort 1
}
Annotation {
Name "SINUSOIDAL"
Position [509, 91]
ForegroundColor "red"
FontName "Arial"
FontSize 16
FontWeight "bold"
}
Annotation {
Name "modulation\nindex"
Position [176, 262]
ForegroundColor "blue"
}
Annotation {
Name "THREE-PHASE PULSE-WIDTH MODULATION"
Position [229, 36]
ForegroundColor "red"
FontName "Arial"
FontSize 20
FontWeight "bold"
}
Annotation {
Name "3-phase input"
Position [69, 192]
FontName "Arial"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "See reference 1."
Position [93, 104]
FontName "Arial"
FontSize 22
FontAngle "italic"
}
Annotation {
Name "SPACE VECTOR"
Position [524, 246]
ForegroundColor "red"
FontName "Arial"
FontSize 16
FontWeight "bold"
}
Annotation {
Name "Cycle average"
Position [556, 641]
FontSize 12
FontWeight "bold"
}
Annotation {
Name "PWM SIGNALS"
Position [534, 402]
FontName "Arial"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "^\n2/sqrt(3)"
Position [706, 206]
FontName "Arial"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "Vdc"
Position [568, 490]
ForegroundColor "blue"
FontName "Arial"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "Space vectors"
Position [783, 601]
FontName "Arial"
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -