📄 hao.mdl
字号:
MaskIconUnits "normalized"
MaskValueString "700|660|4000|7500e-6|8"
MaskTabNameString ",,,,"
System {
Name "Braking chopper"
Location [124, 112, 720, 515]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType BusCreator
Name "Bus\nCreator3"
Ports [3, 1]
Position [505, 186, 510, 254]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Cbus"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [268, 255, 312, 315]
Orientation "down"
NamePlacement "alternate"
DialogController "POWERSYS.PowerSysDialog"
FontName "Arial"
FontSize 12
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "C"
Resistance "[]"
Inductance "[]"
SetiL0 off
InitialCurrent "0"
Capacitance "cap_bus"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "DC_link"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [208, 270, 252, 330]
Orientation "down"
NamePlacement "alternate"
ShowName off
DialogController "POWERSYS.PowerSysDialog"
FontName "Arial"
FontSize 12
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "R"
Resistance "br"
Inductance "[]"
SetiL0 off
InitialCurrent "0"
Capacitance "[]"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Diode1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [199, 80, 241, 120]
Orientation "down"
NamePlacement "alternate"
ShowName off
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
FontName "Arial"
FontSize 12
SourceBlock "powerlib/Power\nElectronics/Diode"
SourceType "Diode"
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"
Ron "0.01"
Lon "0"
Vf "0.8"
IC "0"
Rs "10"
Cs "10e-9"
Measurements off
}
Block {
BlockType Reference
Name "I bus"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [385, 38, 410, 62]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Current Measureme"
"nt"
SourceType "Current 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"
Port {
PortNumber 1
Name "I bus (A)"
PropagatedSignals "signal"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "I rectifier"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [115, 33, 140, 57]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Current Measureme"
"nt"
SourceType "Current 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"
Port {
PortNumber 1
Name "I rectifier (A)"
PropagatedSignals "signal"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "Ideal Switch"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [212, 180, 248, 225]
Orientation "down"
NamePlacement "alternate"
ShowName off
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
FontName "Arial"
FontSize 12
SourceBlock "powerlib/Power\nElectronics/Ideal Switc"
"h"
SourceType "Ideal Switch"
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"
Ron "0.01"
Lon "0"
IC "0"
Rs "0.1"
Cs "0.01e-6"
Measurements off
}
Block {
BlockType SubSystem
Name "Proportional controller"
Ports [1, 1]
Position [80, 140, 180, 190]
NamePlacement "alternate"
FontName "Arial"
FontSize 12
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Proportional controller"
Location [55, 303, 691, 494]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "V bus"
Position [25, 38, 55, 52]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant"
Position [115, 70, 145, 100]
ShowName off
Value "chopa"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion5"
Position [275, 110, 325, 130]
NamePlacement "alternate"
ShowName off
}
Block {
BlockType Gain
Name "Gain"
Position [190, 30, 220, 60]
ShowName off
Gain "1/100"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [405, 39, 440, 146]
ShowName off
}
Block {
BlockType SubSystem
Name "Ramp_generator"
Ports [0, 1]
Position [230, 66, 280, 104]
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Ramp_generator"
Location [337, 474, 593, 586]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0."
"500000]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant3"
Position [160, 73, 185, 97]
Orientation "left"
NamePlacement "alternate"
ShowName off
}
Block {
BlockType DiscreteIntegrator
Name "Discrete-Time\nIntegrator1"
Ports [2, 1]
Position [75, 20, 110, 60]
ShowName off
IntegratorMethod "Integration: Forward Euler"
ExternalReset "rising"
InitialConditionSource "internal"
SampleTime "Ts"
IgnoreLimit off
ICPrevOutput "DiscIntNeverNeededParam"
ICPrevScaledInput "DiscIntNeverNeededParam"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [115, 68, 135, 92]
Orientation "left"
NamePlacement "alternate"
ShowName off
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [70, 70, 95, 90]
Orientation "left"
NamePlacement "alternate"
ShowName off
SampleTime "Ts"
}
Block {
BlockType Constant
Name "fc"
Position [30, 15, 60, 45]
ShowName off
Value "freq_chop"
}
Block {
BlockType Outport
Name "ramp_out"
Position [175, 33, 205, 47]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
Points [-10, 0; 0, -30]
DstBlock "Discrete-Time\nIntegrator1"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
DstBlock "Unit Delay1"
DstPort 1
}
Line {
SrcBlock "Constant3"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 2
}
Line {
SrcBlock "Discrete-Time\nIntegrator1"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
DstBlock "ramp_out"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Relational\nOperator1"
DstPort 1
}
}
Line {
SrcBlock "fc"
SrcPort 1
DstBlock "Discrete-Time\nIntegrator1"
DstPort 1
}
}
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [330, 24, 360, 106]
ShowName off
}
Block {
BlockType Relay
Name "Relay"
Position [175, 105, 205, 135]
ShowName off
OnSwitchValue "chopa"
OffSwitchValue "chopd"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [145, 35, 165, 55]
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [80, 35, 100, 55]
ShowName off
SampleTime "Ts"
}
Block {
BlockType Outport
Name "Gate"
Position [495, 88, 525, 102]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Data Type Conversion5"
SrcPort 1
DstBlock "Logical\nOperator"
DstPort 2
}
Line {
SrcBlock "Relay"
SrcPort 1
DstBlock "Data Type Conversion5"
DstPort 1
}
Line {
SrcBlock "Logical\nOpe
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -