📄 switchinv.mdl
字号:
}
System {
Name "3 phase\ninverter"
Location [690, 564, 1099, 779]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "sa"
Position [65, 83, 95, 97]
}
Block {
BlockType Inport
Name "sb"
Position [175, 83, 205, 97]
Port "2"
}
Block {
BlockType Inport
Name "sc"
Position [280, 83, 310, 97]
Port "3"
}
Block {
BlockType Constant
Name "+Ud/2"
Position [15, 29, 50, 51]
ShowName off
Value "Vdc"
}
Block {
BlockType Constant
Name "Constant1"
Position [15, 129, 50, 151]
ShowName off
Value "0"
}
Block {
BlockType Switch
Name "Switch"
Position [125, 75, 155, 105]
ShowName off
Threshold "0.5"
}
Block {
BlockType Switch
Name "Switch1"
Position [235, 75, 265, 105]
ShowName off
Threshold "0.5"
}
Block {
BlockType Switch
Name "Switch2"
Position [345, 75, 375, 105]
ShowName off
Threshold "0.5"
}
Block {
BlockType Outport
Name "va"
Position [145, 170, 175, 180]
Orientation "down"
NamePlacement "alternate"
InitialOutput "0"
}
Block {
BlockType Outport
Name "vb"
Position [255, 170, 285, 180]
Orientation "down"
NamePlacement "alternate"
Port "2"
InitialOutput "0"
}
Block {
BlockType Outport
Name "vc"
Position [370, 170, 400, 180]
Orientation "down"
NamePlacement "alternate"
Port "3"
InitialOutput "0"
}
Line {
SrcBlock "Switch1"
SrcPort 1
DstBlock "vb"
DstPort 1
}
Line {
SrcBlock "Switch2"
SrcPort 1
Points [5, 0]
DstBlock "vc"
DstPort 1
}
Line {
SrcBlock "sc"
SrcPort 1
DstBlock "Switch2"
DstPort 2
}
Line {
SrcBlock "sb"
SrcPort 1
DstBlock "Switch1"
DstPort 2
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "va"
DstPort 1
}
Line {
SrcBlock "sa"
SrcPort 1
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [0, 0; 55, 0]
Branch {
Points [110, 0]
Branch {
Points [110, 0]
DstBlock "Switch2"
DstPort 3
}
Branch {
DstBlock "Switch1"
DstPort 3
}
}
Branch {
DstBlock "Switch"
DstPort 3
}
}
Line {
SrcBlock "+Ud/2"
SrcPort 1
Points [0, 0; 55, 0]
Branch {
Points [110, 0]
Branch {
Points [110, 0]
DstBlock "Switch2"
DstPort 1
}
Branch {
DstBlock "Switch1"
DstPort 1
}
}
Branch {
DstBlock "Switch"
DstPort 1
}
}
}
}
Block {
BlockType Gain
Name "3/2"
Position [480, 93, 520, 137]
Gain "2/3*[1 -0.5 -0.5;0 sqrt(3)/2 -sqrt(3)/2]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Scope
Name "ABC phase\nvoltages"
Ports [1]
Position [480, 43, 510, 77]
ForegroundColor "blue"
NamePlacement "alternate"
Location [368, 109, 721, 378]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "An Bn Cn"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.02"
YMin "-1"
YMax "1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [210, 79, 215, 151]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 2]
Position [575, 94, 580, 136]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [2, 1]
Position [610, 169, 645, 211]
ShowName off
InitialConditionSource "external"
InitialCondition "[1 0]"
Port {
PortNumber 1
Name "fs"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "K"
Position [560, 164, 590, 196]
}
Block {
BlockType Reference
Name "Manual Switch"
Ports [2, 1]
Position [90, 97, 120, 133]
ShowName off
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
sw "1"
action "0"
}
Block {
BlockType Mux
Name "Mux3"
Ports [3, 1]
Position [365, 77, 370, 153]
BackgroundColor "black"
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [625, 94, 655, 136]
ForegroundColor "blue"
ShowName off
Input "Real and imag"
Port {
PortNumber 1
Name "vs"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "Repeating\nSequence"
Ports [0, 1]
Position [25, 65, 55, 95]
ForegroundColor "red"
NamePlacement "alternate"
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
rep_seq_t "[0 1*To 1*To 2*To 2*To 3*To 3*To 4*To 4*To 5*"
"To 5*To 6*To]"
rep_seq_y "[0 0 1 1 2 2 3 3 4 4 5 5]"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [625, 305, 655, 335]
ShowName off
VariableName "h"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [685, 104, 705, 126]
ShowName off
VariableName "vs"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [625, 65, 645, 85]
ShowName off
VariableName "f"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [685, 179, 705, 201]
ShowName off
VariableName "fs"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Scope
Name "ab\ncomponents"
Ports [1]
Position [550, 43, 580, 77]
ForegroundColor "blue"
NamePlacement "alternate"
Location [728, 107, 1119, 379]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "an bn"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.02"
YMin "-1"
YMax "1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "flux"
Ports [1]
Position [680, 208, 710, 242]
ForegroundColor "blue"
Location [730, 132, 1121, 404]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.02"
YMin "-1"
YMax "1"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Constant
Name "fo"
Position [550, 215, 580, 245]
ForegroundColor "red"
Value "[1 0]"
}
Block {
BlockType SubSystem
Name "fourier"
Ports []
Position [576, 256, 649, 299]
BackgroundColor "yellow"
DropShadow on
NamePlacement "alternate"
ShowName off
OpenFcn "fourierdec"
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -