📄 two_phase_final_model.mdl
字号:
Name "Memory"
Position [600, 363, 625, 387]
Orientation "left"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [215, 208, 235, 292]
Inputs "3"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [210, 392, 230, 468]
Inputs "3"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [535, 416, 555, 469]
Inputs "2"
}
Block {
BlockType Mux
Name "Mux3"
Ports [3, 1]
Position [525, 293, 540, 357]
Inputs "3"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1]
Position [545, 214, 565, 261]
Inputs "2"
}
Block {
BlockType Mux
Name "Mux5"
Ports [6, 1]
Position [188, 65, 792, 80]
Orientation "up"
Inputs "6"
}
Block {
BlockType Scope
Name "Scope"
Ports [5]
Position [900, 82, 940, 188]
Floating off
Location [1, 52, 1025, 737]
Open off
NumInputPorts "5"
TickLabels "on"
List {
ListType AxesTitles
axes1 "V_1"
axes2 "V_2"
axes3 "i_1"
axes4 "i'_2"
axes5 "psi_m"
}
TimeRange "0.2"
YMin "-400~-5~-5~-5~-5"
YMax "400~5~5~5~5"
SaveName "ScopeData1"
DataFormat "Array"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [460, 15, 520, 40]
Orientation "up"
NamePlacement "alternate"
VariableName "y"
MaxDataPoints "200000"
Decimation "2"
SaveFormat "Array"
}
Block {
BlockType SubSystem
Name "Two_phase.m"
Ports []
Position [687, 16, 745, 42]
DropShadow on
OpenFcn "Two_phase"
ShowPortLabels "none"
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
MaskType "Masked block of m1.m"
MaskHelp "Uses m1.m to initialize and plot"
MaskDisplay "disp('Initialize\\nand plot')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Two_phase.m"
Location [429, 365, 719, 566]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Annotation {
Name "This masked block uses m1.m\nto initialize Two_phase_final_model.mdl.\nand plots the simulated results "
Position [147, 43]
VerticalAlignment "top"
}
}
}
Block {
BlockType Integrator
Name "psi1_"
Ports [1, 1]
Position [430, 237, 460, 263]
InitialCondition "Psi1o"
}
Block {
BlockType Integrator
Name "psi2'_"
Ports [1, 1]
Position [440, 417, 470, 443]
InitialCondition "Psip2o"
}
Block {
BlockType Sin
Name "v1"
Ports [0, 1]
Position [120, 235, 155, 265]
Amplitude "Vpk"
Frequency "wb"
Phase "0*pi/2"
}
Block {
BlockType Outport
Name "Out_psi1"
Position [835, 170, 855, 190]
IconDisplay "Port number"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out_psim"
Position [845, 315, 865, 335]
Port "2"
IconDisplay "Port number"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out_i1"
Position [760, 230, 780, 250]
Port "3"
IconDisplay "Port number"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out_i2'"
Position [740, 435, 760, 455]
Port "4"
IconDisplay "Port number"
InitialOutput "0"
}
Line {
SrcBlock "Look-Up\nTable"
SrcPort 1
DstBlock "Memory"
DstPort 1
}
Line {
SrcBlock "Memory"
SrcPort 1
Points [-90, 0; 0, -30]
DstBlock "Mux3"
DstPort 3
}
Line {
SrcBlock "Fcn5"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Out_i2'"
DstPort 1
}
Branch {
Points [25, 0; 0, -25; 95, 0; 0, -255; -65, 0; 0, -10]
Branch {
DstBlock "Mux5"
DstPort 6
}
Branch {
DstBlock "Scope"
DstPort 4
}
}
Branch {
Labels [0, 0]
Points [25, 0; 0, 60; -610, 0; 0, -75]
DstBlock "Load Module"
DstPort 1
}
}
Line {
SrcBlock "Fcn4"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Out_i1"
DstPort 1
}
Branch {
Points [40, 0; 0, -70; -85, 0; 0, -30]
Branch {
DstBlock "Mux5"
DstPort 5
}
Branch {
Points [0, -5]
DstBlock "Scope"
DstPort 3
}
}
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [75, 0]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "v1"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [10, 0; 0, -75; 170, 0; 0, -60]
Branch {
DstBlock "Mux5"
DstPort 2
}
Branch {
Points [0, -20]
DstBlock "Scope"
DstPort 1
}
}
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Fcn5"
DstPort 1
}
Line {
SrcBlock "psi2'_"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Mux2"
DstPort 1
}
Branch {
Points [25, 0; 0, -105]
DstBlock "Mux3"
DstPort 2
}
Branch {
Points [25, 0; 0, -50; -310, 0; 0, 25]
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Fcn2"
DstPort 1
}
Line {
SrcBlock "Fcn3"
SrcPort 1
Points [0, 0]
Branch {
Points [15, 0; 0, 50]
DstBlock "Look-Up\nTable"
DstPort 1
}
Branch {
Points [50, 0; 0, -150; -250, 0]
DstBlock "Mux5"
DstPort 4
}
Branch {
Points [50, 0; 0, 165; -285, 0; 0, -35]
DstBlock "Mux2"
DstPort 2
}
Branch {
DstBlock "Out_psim"
DstPort 1
}
Branch {
Points [50, 0; 0, 165; -600, 0; 0, -35]
DstBlock "Mux1"
DstPort 3
}
Branch {
Points [50, 0; 0, -45; -270, 0; 0, -30]
DstBlock "Mux4"
DstPort 2
}
Branch {
Points [50, 0; 0, -85]
Branch {
Points [0, -50; -595, 0; 0, 30]
DstBlock "Mux"
DstPort 1
}
Branch {
Points [90, 0; 0, -65]
DstBlock "Scope"
DstPort 5
}
}
}
Line {
SrcBlock "psi1_"
SrcPort 1
Points [0, 0]
Branch {
Points [35, 0; 0, 55; -305, 0; 0, -25]
DstBlock "Mux"
DstPort 3
}
Branch {
Points [35, 0; 0, -70]
DstBlock "Out_psi1"
DstPort 1
}
Branch {
Points [35, 0; 0, -25]
DstBlock "Mux4"
DstPort 1
}
Branch {
Points [35, 0; 0, 55]
DstBlock "Mux3"
DstPort 1
}
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn4"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn3"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "psi2'_"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "psi1_"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Load Module"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, -315; 260, 0]
Branch {
DstBlock "Mux5"
DstPort 3
}
Branch {
DstBlock "Scope"
DstPort 2
}
}
}
Annotation {
Name "i2'"
Position [697, 429]
VerticalAlignment "top"
}
Annotation {
Name "v2p"
Position [192, 432]
VerticalAlignment "top"
}
Annotation {
Name "Dpsi"
Position [572, 364]
VerticalAlignment "top"
}
Annotation {
Name "psim"
Position [762, 307]
VerticalAlignment "top"
}
Annotation {
Name "psi2'"
Position [482, 413]
VerticalAlignment "top"
}
Annotation {
Name "psi1"
Position [477, 232]
VerticalAlignment "top"
}
Annotation {
Name "i1"
Position [697, 227]
VerticalAlignment "top"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -