📄 imsq6ssa.mdl
字号:
Expr "u(1)*cos(u(3))+u(2)*sin(u(3))"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [165, 186, 220, 224]
Expr "-u(1)*sin(u(3))+u(2)*cos(u(3))"
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [125, 12, 130, 63]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1]
Position [125, 177, 130, 228]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux5"
Ports [2, 1]
Position [270, 106, 275, 139]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Clock
Name "t"
Position [80, 110, 100, 130]
Decimation "10"
}
Block {
BlockType Gain
Name "w"
Position [115, 102, 165, 138]
Gain "2*pi*50"
}
Block {
BlockType Outport
Name "dq"
Position [300, 118, 330, 132]
}
Line {
SrcBlock "t"
SrcPort 1
DstBlock "w"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "w"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -35; -80, 0; 0, -35]
DstBlock "Mux3"
DstPort 2
}
Branch {
Points [0, 40; -80, 0; 0, 55]
DstBlock "Mux4"
DstPort 2
}
}
Line {
SrcBlock "ab"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -75]
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Mux4"
DstPort 1
}
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [30, 0]
DstBlock "Mux5"
DstPort 2
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [30, 0]
DstBlock "Mux5"
DstPort 1
}
Line {
SrcBlock "Mux5"
SrcPort 1
DstBlock "dq"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "cycle\n average"
Ports [1, 1]
Position [805, 230, 845, 260]
ForegroundColor "blue"
TreatAsAtomicUnit off
System {
Name "cycle\n average"
Location [580, 607, 997, 761]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "sig"
Position [25, 38, 55, 52]
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [80, 30, 110, 60]
ShowName off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [260, 35, 280, 55]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay 1/fo"
Position [225, 70, 255, 100]
DelayTime "1/300"
}
Block {
BlockType Gain
Name "fo"
Position [135, 28, 180, 62]
Gain "300"
}
Block {
BlockType Outport
Name "ave"
Position [305, 38, 335, 52]
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "fo"
DstPort 1
}
Line {
SrcBlock "fo"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Transport\nDelay 1/fo"
DstPort 1
}
}
Line {
SrcBlock "sig"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Transport\nDelay 1/fo"
SrcPort 1
Points [10, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "ave"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "dq \ncurrents"
Ports [1]
Position [785, 287, 825, 333]
ForegroundColor "magenta"
Location [611, 85, 1110, 406]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.35"
YMin "-1"
YMax "1.5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType SubSystem
Name "info"
Ports []
Position [32, 310, 115, 389]
ForegroundColor "darkGreen"
DropShadow on
ShowName off
FontName "Arial"
FontSize 12
FontWeight "bold"
TreatAsAtomicUnit off
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('Info')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "info"
Location [92, 315, 560, 397]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "97"
Annotation {
Name "An induction motor\nunder 6-pulse squarewav"
"e excitation"
Position [243, 17]
ForegroundColor "blue"
FontSize 12
FontWeight "bold"
}
Annotation {
Name "The motor runs in a steady state at no load"
" when a step load is suddenly applied.\n"
Position [10, 40]
HorizontalAlignment "left"
VerticalAlignment "top"
FontSize 12
}
}
}
Block {
BlockType Scope
Name "mec"
Ports [1]
Position [890, 125, 935, 185]
ForegroundColor "lightBlue"
Location [648, 177, 1145, 463]
Open on
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.35"
YMin "0.795"
YMax "0.84"
DataFormat "Array"
LimitDataPoints off
}
Block {
BlockType SubSystem
Name "space vector"
Ports []
Position [197, 305, 283, 385]
BackgroundColor "yellow"
DropShadow on
ShowName off
OpenFcn "imsq6plt"
FontName "Arial"
FontSize 12
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 "space vector"
Location [77, 512, 524, 700]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Scope
Name "torque"
Ports [1]
Position [890, 205, 935, 265]
ForegroundColor "lightBlue"
Location [618, 495, 1115, 801]
Open on
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.35"
YMin "-0.5"
YMax "2"
SaveName "ScopeData1"
DataFormat "Array"
LimitDataPoints off
}
Block {
BlockType Outport
Name "wm"
Position [830, 118, 860, 132]
}
Block {
BlockType Outport
Name "Te"
Position [830, 173, 860, 187]
Port "2"
}
Block {
BlockType Outport
Name "iab"
Position [645, 378, 675, 392]
Port "3"
}
Block {
BlockType Outport
Name "idq"
Position [785, 378, 815, 392]
Port "4"
}
Block {
BlockType Outport
Name "f"
Position [640, 223, 670, 237]
Port "5"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
Name "vB"
Labels [0, 0]
SrcBlock "6-pulse1"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 0]
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -105]
DstBlock "Mux5"
DstPort 2
}
}
Line {
Name "vC"
Labels [0, 0]
SrcBlock "6-pulse2"
SrcPort 1
Points [50, 0]
Branch {
Points [25, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Mux5"
DstPort 3
}
}
Line {
SrcBlock "6-pulse"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -75]
DstBlock "Mux5"
DstPort 1
}
Branch {
DstBlock "Gain1"
DstPort 1
}
}
Line {
Name "ABC"
Labels [1, 1]
SrcBlock "Mux5"
SrcPort 1
DstBlock "ABC\n voltages"
DstPort 1
}
Line {
Name "b"
SrcBlock "Gain"
SrcPort 1
Points [50, 0]
DstBlock "Mux7"
DstPort 2
}
Line {
Name "vas"
SrcBlock "Gain1"
SrcPort 1
DstBlock "Mux7"
DstPort 1
}
Line {
Name "vs"
SrcBlock "Mux7"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "ab voltages"
DstPort 1
}
Branch {
Labels [1, 0]
DstBlock "IM"
DstPort 1
}
}
Line {
Name "wk"
Labels [0, 0]
SrcBlock "Ground"
SrcPort 1
DstBlock "IM"
DstPort 2
}
Line {
Name "Tl"
Labels [0, 0]
SrcBlock "Step"
SrcPort 1
DstBlock "Mechanical \nsystem"
DstPort 1
}
Line {
Name "wm"
Labels [1, 0]
SrcBlock "Mechanical \nsystem"
SrcPort 1
Points [65, 0]
Branch {
DstBlock "mec"
DstPort 1
}
Branch {
Points [0, -30]
Branch {
DstBlock "wm"
DstPort 1
}
Branch {
DstBlock "Goto"
DstPort 1
}
}
}
Line {
Name "Te"
Labels [0, 0]
SrcBlock "IM"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Mechanical \nsystem"
DstPort 2
}
Branch {
Points [-10, 0; 0, 30]
Branch {
DstBlock "Mux8"
DstPort 1
}
Branch {
Points [170, 0]
Branch {
Labels [1, 0]
Points [0, -25]
DstBlock "Te"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "cycle\n average"
DstPort 1
}
Branch {
Points [40, 0; 0, 20]
DstBlock "Mux1"
DstPort 1
}
}
}
}
Line {
SrcBlock "From"
SrcPort 1
DstBlock "IM"
DstPort 3
}
Line {
Name "dq"
SrcBlock "ab2dq"
SrcPort 1
Points [10, 0; 0, 55]
Branch {
Points [0, 75]
DstBlock "idq"
DstPort 1
}
Branch {
DstBlock "dq \ncurrents"
DstPort 1
}
}
Line {
SrcBlock "Mux8"
SrcPort 1
DstBlock "f"
DstPort 1
}
Line {
Name "is"
Labels [0, 1]
SrcBlock "IM"
SrcPort 2
Points [20, 0]
Branch {
DstBlock "ab2dq"
DstPort 1
}
Branch {
Points [0, 75]
Branch {
DstBlock "ab\ncurrents"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "iab"
DstPort 1
}
}
Branch {
DstBlock "Mux8"
DstPort 2
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "torque"
DstPort 1
}
Line {
SrcBlock "cycle\n average"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Annotation {
Name "vA"
Position [102, 150]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -