📄 shiyan.mdl
字号:
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [805, 15, 895, 45]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display10"
Ports [1]
Position [1125, 180, 1215, 210]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [805, 120, 895, 150]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display3"
Ports [1]
Position [810, 160, 900, 190]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display4"
Ports [1]
Position [1020, 45, 1110, 75]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display5"
Ports [1]
Position [810, 65, 900, 95]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display6"
Ports [1]
Position [980, 150, 1070, 180]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display7"
Ports [1]
Position [1020, 80, 1110, 110]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display8"
Ports [1]
Position [530, 450, 620, 480]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display9"
Ports [1]
Position [530, 405, 620, 435]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Gain
Name "Gain"
Position [75, 200, 105, 230]
Gain "500"
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 [980, 345, 1010, 375]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [960, 245, 990, 275]
IgnoreLimit off
}
Block {
BlockType SubSystem
Name "Measures"
Ports [0, 1, 0, 0, 0, 4, 3]
Position [475, 104, 555, 186]
NamePlacement "alternate"
AncestorBlock "electricdrivelib/AC drives/DTC Induction Motor "
"Drive/Measures"
FontSize 12
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Measures"
Location [67, 138, 414, 486]
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 Mux
Name "Mux"
Ports [3, 1]
Position [220, 181, 225, 259]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Voltage Measurement"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [140, 183, 165, 207]
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 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 [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 "1"
I "5"
D "0"
}
Block {
BlockType Reference
Name "PWM \nIGBT Inverter"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [420, 262, 480, 363]
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 [580, 283, 665, 357]
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, 402, 1140, 433]
ShowName off
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -