📄 aaaaa.mdl
字号:
Lockdown off
}
Block {
BlockType Display
Name "Display3"
Ports [1]
Position [605, 425, 695, 455]
Orientation "left"
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display4"
Ports [1]
Position [455, 460, 545, 490]
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display5"
Ports [1]
Position [225, 610, 315, 640]
Orientation "left"
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display6"
Ports [1]
Position [110, 595, 200, 625]
Decimation "1"
Lockdown off
}
Block {
BlockType Gain
Name "Gain"
Position [80, 200, 110, 230]
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [1205, 485, 1235, 515]
Orientation "down"
NamePlacement "alternate"
ShowName off
Gain "3"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [985, 345, 1015, 375]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [995, 245, 1025, 275]
IgnoreLimit off
}
Block {
BlockType Constant
Name "PHI f"
Position [215, 420, 245, 450]
Orientation "left"
Value "0.175"
}
Block {
BlockType Reference
Name "PID Controller"
Ports [1, 1]
Position [135, 290, 165, 320]
ShowName off
SourceBlock "simulink_extras/Additional\nLinear/PID Controll"
"er"
SourceType "PID Controller"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
P "0.01"
I "500"
D "0"
}
Block {
BlockType Reference
Name "PWM \nIGBT Inverter"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [430, 267, 490, 368]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
NamePlacement "alternate"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Arms "3"
SnubberResistance "5000"
SnubberCapacitance "inf"
Device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 0.0 0.0 ]"
ForwardVoltage ".8"
GTOparameters "[ 1e-6 ,1e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "None"
converterType "Rectifier"
}
Block {
BlockType Reference
Name "Permanent Magnet\nSynchronous Machine"
Ports [1, 1, 0, 0, 0, 3]
Position [570, 276, 660, 364]
DialogController "POWERSYS.PowerSysDialog"
FontSize 11
SourceBlock "powerlib/Machines/Permanent Magnet\nSynchronous"
" Machine"
SourceType "Permanent Magnet Synchronous Machine"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
FluxDistribution "Sinusoidal"
MechanicalLoad "Torque Tm"
PresetModel "No"
ShowDetailedParameters on
Resistance "2.8750 "
Inductance "8.5e-3"
dqInductances "[8.5e-3, 8.5e-3]"
Flux "0.175"
Flat "120"
Mechanical "[0.8e-3 1e-3 4]"
PolePairs "4"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [1110, 408, 1135, 432]
ShowName off
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [1110, 438, 1135, 462]
ShowName off
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Rad2Deg"
Position [695, 590, 725, 620]
Orientation "left"
Gain "180/pi"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [1180, 293, 1210, 322]
}
Block {
BlockType Relay
Name "Relay"
Position [265, 370, 295, 400]
OnSwitchValue "0.01"
OffSwitchValue "-0.01"
OffOutputValue "2"
}
Block {
BlockType Gain
Name "Rs"
Position [885, 165, 915, 195]
Gain "2.875"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Rs1"
Position [895, 335, 925, 365]
Gain "2.875"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Step
Name "Step"
Position [35, 200, 65, 230]
Time "0.1"
Before "1"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [3, 1]
Position [330, 277, 380, 363]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem"
Location [421, 99, 1090, 679]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "H Phi"
Position [25, 83, 55, 97]
NamePlacement "alternate"
FontSize 12
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "H Te"
Position [30, 28, 60, 42]
NamePlacement "alternate"
FontSize 12
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Sector"
Position [25, 128, 55, 142]
FontSize 12
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant1"
Position [205, 145, 220, 165]
ShowName off
FontSize 12
}
Block {
BlockType Lookup2D
Name "Flux = -1"
Position [100, 157, 155, 208]
FontSize 12
RowIndex "[1;2;3]"
ColumnIndex "[1;2;3;4;5;6]"
OutputValues "[3 4 5 6 1 2;0 7 0 7 0 7;5 6 1 2 3 4]"
InputSameDT off
}
Block {
BlockType Lookup2D
Name "Flux = 1"
Position [100, 97, 155, 148]
NamePlacement "alternate"
FontSize 12
RowIndex "[1;2;3]"
ColumnIndex "[1;2;3;4;5;6]"
OutputValues "[2 3 4 5 6 1;7 0 7 0 7 0;6 1 2 3 4 5]"
InputSameDT off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch1"
Ports [3, 1]
Position [170, 34, 190, 216]
ShowName off
FontSize 12
Inputs "2"
InputSameDT off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch2"
Ports [9, 1]
Position [405, 94, 435, 476]
ShowName off
FontSize 12
Inputs "8"
InputSameDT off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [220, 110, 250, 140]
ShowName off
FontSize 12
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Constant
Name "v0"
Position [245, 153, 355, 177]
FontSize 12
Value "[0 1 0 1 0 1]"
}
Block {
BlockType Constant
Name "v1"
Position [245, 194, 355, 216]
FontSize 12
Value "[1 0 0 1 0 1]"
}
Block {
BlockType Constant
Name "v2"
Position [245, 233, 355, 257]
FontSize 12
Value "[1 0 1 0 0 1]"
}
Block {
BlockType Constant
Name "v3"
Position [245, 273, 355, 297]
FontSize 12
Value "[0 1 1 0 0 1]"
}
Block {
BlockType Constant
Name "v4"
Position [245, 313, 355, 337]
FontSize 12
Value "[0 1 1 0 1 0]"
}
Block {
BlockType Constant
Name "v5"
Position [245, 353, 355, 377]
FontSize 12
Value "[0 1 0 1 1 0]"
}
Block {
BlockType Constant
Name "v6"
Position [245, 394, 355, 416]
FontSize 12
Value "[1 0 0 1 1 0]"
}
Block {
BlockType Constant
Name "v7"
Position [245, 433, 355, 457]
FontSize 12
Value "[1 0 1 0 1 0]"
}
Block {
BlockType Outport
Name "Gates"
Position [585, 298, 615, 312]
FontSize 12
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Multiport\nSwitch2"
SrcPort 1
Points [100, 0; 0, 20]
DstBlock "Gates"
DstPort 1
}
Line {
SrcBlock "v5"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 7
}
Line {
SrcBlock "v3"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 5
}
Line {
SrcBlock "v6"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 8
}
Line {
SrcBlock "v2"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 4
}
Line {
SrcBlock "Multiport\nSwitch1"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Flux = -1"
SrcPort 1
DstBlock "Multiport\nSwitch1"
DstPort 3
}
Line {
SrcBlock "Flux = 1"
SrcPort 1
DstBlock "Multiport\nSwitch1"
DstPort 2
}
Line {
SrcBlock "H Phi"
SrcPort 1
Points [0, -25]
DstBlock "Multiport\nSwitch1"
DstPort 1
}
Line {
SrcBlock "Sector"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Flux = 1"
DstPort 2
}
Branch {
Points [0, 60]
DstBlock "Flux = -1"
DstPort 2
}
}
Line {
SrcBlock "v7"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 9
}
Line {
SrcBlock "v4"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 6
}
Line {
SrcBlock "v1"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 3
}
Line {
SrcBlock "v0"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 2
}
Line {
SrcBlock "H Te"
SrcPort 1
Points [0, 75; 15, 0]
Branch {
DstBlock "Flux = 1"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -