📄 pmsm_spwm.mdl
字号:
Name "Ground (input)2"
Tag "PoWeRsYsTeMbLoCk"
Ports [1]
Position [850, 370, 880, 400]
Orientation "down"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (input)"
SourceType "Ground"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [760, 84, 790, 116]
BackgroundColor "green"
Location [52, 237, 488, 727]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "10"
YMin "-1"
YMax "2"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [5, 2]
Position [290, 50, 340, 190]
TreatAsAtomicUnit off
System {
Name "Subsystem"
Location [2, 82, 1014, 722]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "t"
Position [25, 23, 55, 37]
}
Block {
BlockType Inport
Name "n"
Position [25, 58, 55, 72]
Port "2"
}
Block {
BlockType Inport
Name "va"
Position [15, 103, 45, 117]
Port "3"
}
Block {
BlockType Inport
Name "vb"
Position [15, 163, 45, 177]
Port "4"
}
Block {
BlockType Inport
Name "vdc"
Position [15, 213, 45, 227]
Port "5"
}
Block {
BlockType Gain
Name "Gain"
Position [150, 95, 180, 125]
Gain "-1"
}
Block {
BlockType Gain
Name "Gain1"
Position [155, 180, 185, 210]
Gain "-1"
}
Block {
BlockType Gain
Name "Gain2"
Position [175, 310, 205, 340]
Gain "-1"
}
Block {
BlockType If
Name "If"
Ports [1, 2]
Position [475, 306, 540, 339]
IfExpression "u1> 0"
}
Block {
BlockType SubSystem
Name "If Action\nSubsystem"
Ports [2, 2, 0, 0, 0, 0, 0, 1]
Position [520, 482, 590, 518]
TreatAsAtomicUnit on
System {
Name "If Action\nSubsystem"
Location [339, 457, 837, 757]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 78, 105, 92]
}
Block {
BlockType Inport
Name "In2"
Position [80, 113, 110, 127]
Port "2"
}
Block {
BlockType ActionPort
Name "Action Port"
Position [195, 25, 254, 53]
NamePlacement "alternate"
ActionType "else"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 78, 355, 92]
}
Block {
BlockType Outport
Name "Out2"
Position [330, 113, 360, 127]
Port "2"
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "If Action\nSubsystem1"
Ports [3, 2, 0, 0, 0, 0, 0, 1]
Position [630, 363, 675, 437]
TreatAsAtomicUnit on
System {
Name "If Action\nSubsystem1"
Location [-6, 319, 492, 619]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 78, 105, 92]
}
Block {
BlockType Inport
Name "In2"
Position [75, 133, 105, 147]
Port "2"
}
Block {
BlockType Inport
Name "In3"
Position [75, 183, 105, 197]
Port "3"
}
Block {
BlockType ActionPort
Name "Action Port"
Position [215, 30, 274, 58]
ActionType "then"
}
Block {
BlockType Fcn
Name "Fcn"
Position [220, 95, 280, 125]
Expr "u(1)*u(3)/(u(1)+u(2))"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [220, 145, 280, 175]
Expr "u(2)*u(3)/(u(1)+u(2))"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [180, 91, 185, 129]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 93, 355, 107]
}
Block {
BlockType Outport
Name "Out2"
Position [325, 138, 355, 152]
Port "2"
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [10, 0; 0, -15]
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [10, 0; 0, -10]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In3"
SrcPort 1
Points [55, 0]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 50]
DstBlock "Fcn1"
DstPort 1
}
Branch {
DstBlock "Fcn"
DstPort 1
}
}
Line {
SrcBlock "In2"
SrcPort 1
Points [25, 0; 0, -30]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
Points [25, 0; 0, 15]
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch"
Ports [7, 1]
Position [320, 55, 355, 155]
Inputs "6"
InputSameDT off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch1"
Ports [7, 1]
Position [320, 190, 355, 290]
Inputs "6"
InputSameDT off
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [4, 3]
Position [90, 87, 120, 238]
TreatAsAtomicUnit off
System {
Name "Subsystem"
Location [324, 200, 934, 577]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "t"
Position [25, 23, 55, 37]
}
Block {
BlockType Inport
Name "va"
Position [40, 178, 70, 192]
Port "2"
}
Block {
BlockType Inport
Name "vb"
Position [40, 213, 70, 227]
Port "3"
}
Block {
BlockType Inport
Name "vdc"
Position [40, 263, 70, 277]
Port "4"
}
Block {
BlockType Gain
Name "Gain1"
Position [105, 205, 135, 235]
Gain "sqrt(3)"
}
Block {
BlockType Gain
Name "Gain2"
Position [460, 207, 475, 233]
Gain "0.5"
}
Block {
BlockType Gain
Name "Gain4"
Position [105, 170, 135, 200]
Gain "3"
}
Block {
BlockType Gain
Name "Gain5"
Position [460, 307, 475, 333]
Gain "0.5"
}
Block {
BlockType Product
Name "Product"
Ports [3, 1]
Position [230, 86, 240, 144]
Inputs "**/"
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [3, 1]
Position [390, 192, 400, 248]
Inputs "**/"
InputSameDT off
}
Block {
BlockType Product
Name "Product2"
Ports [3, 1]
Position [385, 282, 405, 348]
Inputs "**/"
InputSameDT off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [235, 191, 250, 229]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [240, 301, 255, 339]
ShowName off
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "x"
Position [480, 103, 510, 117]
}
Block {
BlockType Outport
Name "y"
Position [535, 213, 565, 227]
Port "2"
}
Block {
BlockType Outport
Name "z"
Position [555, 300, 585, 320]
Port "3"
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "y"
DstPort 1
}
Line {
SrcBlock "Gain5"
SrcPort 1
Points [30, 0; 0, -10]
DstBlock "z"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [15, 0; 0, 5]
DstBlock "Gain5"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [20, 0; 0, -5]
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
Points [220, 0]
DstBlock "x"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "vdc"
SrcPort 1
Points [-5, 0; 125, 0]
Branch {
Points [0, -135]
DstBlock "Product"
DstPort 3
}
Branch {
Points [70, 0; 0, -30; 90, 0]
Branch {
DstBlock "Product1"
DstPort 3
}
Branch {
Points [0, 95]
DstBlock "Product2"
DstPort 3
}
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [120, 0]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "t"
SrcPort 1
Points [0, 0; 125, 0]
Branch {
Points [0, 65]
DstBlock "Product"
DstPort 1
}
Branch {
Points [140, 0]
Branch {
Points [50, 0]
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, 265]
DstBlock "Product2"
DstPort 1
}
}
}
Line {
SrcBlock "Gain4"
SrcPort 1
Points [40, 0; 0, 10]
Branch {
Points [0, 135]
DstBlock "Sum3"
DstPort 2
}
Branch {
Points [0, 5]
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "va"
SrcPort 1
DstBlock "Gain4"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -