📄 hahahacheng.mdl
字号:
}
Block {
BlockType Reference
Name "Voltage Measurement1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [140, 208, 165, 232]
ShowName off
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
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"
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement2"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [140, 233, 165, 257]
ShowName off
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
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"
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType PMIOPort
Name "Ta"
Position [30, 18, 60, 32]
Port "1"
Side "Left"
}
Block {
BlockType PMIOPort
Name "Tb"
Position [30, 53, 60, 67]
Port "2"
Side "Left"
}
Block {
BlockType PMIOPort
Name "Tc"
Position [30, 88, 60, 102]
Port "3"
Side "Left"
}
Block {
BlockType PMIOPort
Name "V_Com"
Position [30, 243, 60, 257]
Port "4"
Side "Left"
}
Block {
BlockType PMIOPort
Name "Mta"
Position [285, 23, 315, 37]
Orientation "left"
Port "5"
Side "Right"
}
Block {
BlockType PMIOPort
Name "Mtb"
Position [285, 58, 315, 72]
Orientation "left"
Port "6"
Side "Right"
}
Block {
BlockType PMIOPort
Name "Mtc"
Position [285, 88, 315, 102]
Orientation "left"
Port "7"
Side "Right"
}
Block {
BlockType Outport
Name "V_abc"
Position [290, 213, 320, 227]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "V_abc"
DstPort 1
}
Line {
SrcBlock "Voltage Measurement2"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Voltage Measurement1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Voltage Measurement"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "V_Com"
SrcPort RConn1
Points [45, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Voltage Measurement2"
DstPort LConn2
}
Branch {
ConnectType "DEST_SRC"
Points [0, -25]
Branch {
ConnectType "DEST_SRC"
DstBlock "Voltage Measurement1"
DstPort LConn2
}
Branch {
ConnectType "DEST_SRC"
Points [0, -25]
DstBlock "Voltage Measurement"
DstPort LConn2
}
}
}
Line {
LineType "Connection"
SrcBlock "Tc"
SrcPort RConn1
Points [15, 0]
Branch {
ConnectType "DEST_SRC"
Points [0, 145]
DstBlock "Voltage Measurement2"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "Mtc"
DstPort RConn1
}
}
Line {
LineType "Connection"
Points [100, 60; 74, 0; 0, 5; 96, 0]
DstBlock "Mtb"
DstPort RConn1
Branch {
ConnectType "SRC_DEST"
SrcBlock "Tb"
SrcPort RConn1
Points [25, 0]
}
Branch {
ConnectType "SRC_SRC"
Points [0, 155]
DstBlock "Voltage Measurement1"
DstPort LConn1
}
}
Line {
LineType "Connection"
Points [110, 25; 64, 0; 0, 5; 96, 0]
DstBlock "Mta"
DstPort RConn1
Branch {
ConnectType "SRC_DEST"
SrcBlock "Ta"
SrcPort RConn1
Points [35, 0]
}
Branch {
ConnectType "SRC_SRC"
Points [0, 165]
DstBlock "Voltage Measurement"
DstPort LConn1
}
}
}
}
Block {
BlockType Constant
Name "PHI f"
Position [205, 350, 235, 380]
Orientation "left"
Value "0.175"
}
Block {
BlockType Reference
Name "PID Controller"
Ports [1, 1]
Position [145, 245, 175, 275]
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.31"
I "78"
D "0"
}
Block {
BlockType Reference
Name "PWM \nIGBT Inverter"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [415, 252, 475, 353]
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 [610, 293, 695, 367]
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 Relay
Name "Relay"
Position [250, 305, 280, 335]
ShowName off
OnSwitchValue "0.01"
OffSwitchValue "-0.01"
OffOutputValue "2"
}
Block {
BlockType Step
Name "Step"
Position [40, 295, 70, 325]
Orientation "left"
NamePlacement "alternate"
ShowName off
Time "0.1"
Before "1"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [3, 1]
Position [300, 255, 355, 385]
ShowName off
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 "TQ"
Position [30, 98, 60, 112]
NamePlacement "alternate"
FontSize 12
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "PHIQ"
Position [25, 58, 55, 72]
NamePlacement "alternate"
FontSize 12
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "SQ"
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 [240, 153, 350, 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 [235, 273, 345, 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, 278, 615, 292]
FontSize 12
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Multiport\nSwitch2"
SrcPort 1
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 {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -