📄 vectorcontrol.mdl
字号:
Line {
SrcBlock "Relay"
SrcPort 1
Points [10, 0; 0, -25; 25, 0]
Branch {
Points [0, 60]
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "pulses"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [4]
Position [1340, 382, 1375, 588]
Location [111, 155, 1139, 832]
Open off
NumInputPorts "4"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-1198.6~-2000~-1~-1"
YMax "-1197.2~1000~1~1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope1"
Ports [4]
Position [1145, 12, 1185, 123]
Location [44, 139, 1072, 816]
Open off
NumInputPorts "4"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "110~3.20364~-0.001925~0"
YMax "200~3.20364~-0.00175~1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Constant
Name "Tl"
Position [1085, 405, 1115, 435]
Orientation "left"
FontSize 12
Value "5"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [1085, 808, 1120, 842]
Orientation "left"
NamePlacement "alternate"
X0 "5"
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [1145, 653, 1180, 687]
Orientation "left"
NamePlacement "alternate"
X0 "5"
SampleTime "-1"
}
Block {
BlockType Reference
Name "Universal Bridge"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [860, 462, 915, 538]
Orientation "left"
SourceBlock "powerlib/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
ShowPortLabels on
Arms "3"
SnubberResistance "1e5"
SnubberCapacitance "inf"
Device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 0 0 ]"
ForwardVoltage "0"
GTOparameters "[ 10e-6 , 20e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "None"
}
Block {
BlockType Reference
Name "Voltage Measurement"
Ports [0, 1, 0, 0, 0, 2]
Position [1195, 328, 1220, 352]
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
Port {
PortNumber 1
Name "Uab"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "XY Graph"
Ports [2]
Position [1390, 260, 1420, 295]
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
ShowPortLabels on
xmin "-1000"
xmax "1000"
ymin "-1000"
ymax "1000"
st "-1"
}
Block {
BlockType SubSystem
Name "ab->abc"
Ports [1, 1]
Position [755, 212, 815, 308]
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "dq/ABC convert"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "ab->abc"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "156"
Block {
BlockType Inport
Name "Iab*"
Position [30, 63, 60, 77]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [130, 56, 300, 84]
NamePlacement "alternate"
ShowName off
Expr "-0.5*u[1]+0.866*u[2]"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [130, 97, 300, 123]
NamePlacement "alternate"
ShowName off
Expr "-0.5*u[1]-0.866*u[2]"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [130, 16, 300, 44]
NamePlacement "alternate"
ShowName off
Expr "u[1]"
}
Block {
BlockType Gain
Name "Gain"
Position [345, 53, 385, 87]
Gain "(2/3)^0.5"
}
Block {
BlockType Gain
Name "Gain1"
Position [345, 94, 390, 126]
Gain "(2/3)^0.5"
}
Block {
BlockType Gain
Name "Gain2"
Position [345, 13, 385, 47]
Gain "(2/3)^0.5"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [450, 12, 460, 128]
ShowName off
Inputs "3"
}
Block {
BlockType Outport
Name "Iabc*"
Position [480, 63, 510, 77]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Iabc*"
DstPort 1
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Iab*"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "Fcn2"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Fcn1"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "ab->abc1"
Ports [2, 2]
Position [855, 645, 910, 725]
Orientation "left"
NamePlacement "alternate"
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "dq/ABC convert"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "ab->abc1"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "195"
Block {
BlockType Inport
Name "Iab"
Position [25, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Teta"
Position [25, 88, 55, 102]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [130, 26, 300, 54]
NamePlacement "alternate"
ShowName off
Expr "u[1]*cos(u[3])+u[2]*sin(u[3])"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [130, 87, 300, 113]
NamePlacement "alternate"
ShowName off
Expr "-u[1]*sin(u[3])+u[2]*cos(u[3])"
}
Block {
BlockType Gain
Name "Gain"
Position [345, 23, 385, 57]
Gain "(2/3)^0.5"
}
Block {
BlockType Gain
Name "Gain1"
Position [345, 84, 390, 116]
Gain "(2/3)^0.5"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [85, 19, 90, 121]
ShowName off
Inputs "2"
}
Block {
BlockType Outport
Name "Id"
Position [480, 33, 510, 47]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Iq"
Position [480, 93, 510, 107]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Id"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Iq"
DstPort 1
}
Line {
SrcBlock "Iab"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Teta"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -30]
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Fcn1"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "abc->ab"
Ports [1, 1]
Position [1010, 650, 1070, 690]
Orientation "left"
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "abc->ab"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Iabc"
Position [35, 73, 65, 87]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [125, 31, 405, 59]
NamePlacement "alternate"
ShowName off
Expr "u[1]-0.5*u[2]-0.5*u[3]"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [120, 101, 440, 129]
NamePlacement "alternate"
ShowName off
Expr "1.7321*u[2]/2-1.7321*u[3]/2"
}
Block {
BlockType Gain
Name "Gain1"
Position [460, 95, 520, 135]
Gain "(2/3)^0.5"
}
Block {
BlockType Gain
Name "Gain2"
Position [460, 21, 520, 69]
Gain "(2/3)^0.5"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [575, 61, 580, 99]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "Iab"
Position [620, 73, 650, 87]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -