📄 imsq6full.mdl
字号:
BlockType ToWorkspace
Name "To Workspace1"
Position [195, 365, 225, 395]
ShowName off
VariableName "h"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Scope
Name "ab\ncurrents"
Ports [1]
Position [690, 307, 730, 353]
ForegroundColor "green"
Location [541, 113, 1003, 406]
Open on
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.02"
YMin "-1.5"
YMax "1.5"
DataFormat "Array"
}
Block {
BlockType Scope
Name "ab voltages"
Ports [1]
Position [350, 70, 380, 110]
ForegroundColor "blue"
NamePlacement "alternate"
Location [9, 107, 483, 406]
Open on
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.02"
YMin "-1"
YMax "1"
DataFormat "Array"
}
Block {
BlockType SubSystem
Name "ab2dq"
Ports [1, 1]
Position [680, 229, 740, 281]
ForegroundColor "red"
TreatAsAtomicUnit off
Port {
PortNumber 1
Name "dq"
PropagatedSignals ", "
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "ab2dq"
Location [658, 416, 996, 663]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "ab"
Position [20, 92, 50, 108]
}
Block {
BlockType Fcn
Name "Fcn"
Position [165, 22, 220, 58]
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 Scope
Name "dq \ncurrents"
Ports [1]
Position [785, 232, 825, 278]
ForegroundColor "magenta"
Location [621, 63, 1120, 384]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.02"
YMin "-1"
YMax "1.5"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "info"
Ports []
Position [22, 289, 94, 358]
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 [39, 196, 559, 281]
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 "This model shows the steady-state condition"
"s of the motor when it operates at full load"
Position [10, 40]
HorizontalAlignment "left"
VerticalAlignment "top"
FontSize 12
}
}
}
Block {
BlockType Scope
Name "mec"
Ports [2]
Position [890, 150, 935, 210]
ForegroundColor "lightBlue"
Location [616, 449, 1113, 781]
Open on
NumInputPorts "2"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.02"
YMin "0.5~0.85"
YMax "1~1.2"
DataFormat "Array"
}
Block {
BlockType Constant
Name "number of\nharmonics"
Position [140, 365, 170, 395]
ForegroundColor "lightBlue"
Value "20"
}
Block {
BlockType SubSystem
Name "space vector"
Ports []
Position [262, 295, 323, 353]
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 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 "Tl"
SrcPort 1
DstBlock "Mechanical \nsystem"
DstPort 1
}
Line {
Name "wm"
Labels [1, 0]
SrcBlock "Mechanical \nsystem"
SrcPort 1
Points [65, 0]
Branch {
Points [65, 0]
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 {
Points [205, 0]
Branch {
Points [65, 0]
DstBlock "mec"
DstPort 2
}
Branch {
Labels [1, 0]
Points [0, -25]
DstBlock "Te"
DstPort 1
}
}
Branch {
DstBlock "Mux8"
DstPort 1
}
}
}
Line {
SrcBlock "From"
SrcPort 1
DstBlock "IM"
DstPort 3
}
Line {
Name "dq"
SrcBlock "ab2dq"
SrcPort 1
Points [10, 0]
Branch {
Labels [1, 0]
DstBlock "dq \ncurrents"
DstPort 1
}
Branch {
Points [0, 130]
DstBlock "idq"
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 "number of\nharmonics"
SrcPort 1
DstBlock "To Workspace1"
DstPort 1
}
Annotation {
Name "vA"
Position [102, 150]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -