📄 pvmodel.mdl
字号:
Orientation "left"
NamePlacement "alternate"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "fix_step2"
Ports [1, 1]
Position [415, 30, 455, 90]
Orientation "left"
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "a|b|dk_1"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "a=@1;b=@2;dk_1=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.01|0.001|0.8"
MaskTabNameString ",,"
System {
Name "fix_step2"
Location [0, 82, 1268, 999]
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 "dp"
Position [25, 28, 55, 42]
IconDisplay "Port number"
}
Block {
BlockType "S-Function"
Name "S-Function1"
Ports [1, 1]
Position [155, 30, 215, 60]
FunctionName "fix_step"
Parameters "a,b"
}
Block {
BlockType Outport
Name "dD"
Position [240, 38, 270, 52]
NamePlacement "alternate"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "dp"
SrcPort 1
Points [80, 0]
DstBlock "S-Function1"
DstPort 1
}
Line {
SrcBlock "S-Function1"
SrcPort 1
Points [0, 0]
DstBlock "dD"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "D"
Position [215, 13, 245, 27]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "dp"
SrcPort 1
Points [0, 0]
DstBlock "fix_step2"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [155, 0]
DstBlock "dp1"
DstPort 2
}
Line {
SrcBlock "Memory7"
SrcPort 1
Points [-45, 0; 0, 55]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [5, 0; 0, -25]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Ramp1"
SrcPort 1
Points [30, 0; 0, 5]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "dp1"
SrcPort 1
Points [-20, 0]
Branch {
Points [0, -5; -55, 0]
DstBlock "D"
DstPort 1
}
Branch {
Points [-25, 0; 0, 30]
DstBlock "Memory7"
DstPort 1
}
}
Line {
SrcBlock "fix_step2"
SrcPort 1
Points [-40, 0; 0, -10]
DstBlock "dp1"
DstPort 1
}
}
}
Block {
BlockType Memory
Name "Memory1"
Position [640, 275, 670, 305]
Orientation "left"
NamePlacement "alternate"
}
Block {
BlockType Memory
Name "Memory10"
Position [1110, 175, 1140, 205]
Orientation "down"
NamePlacement "alternate"
}
Block {
BlockType Memory
Name "Memory2"
Position [605, 235, 635, 265]
Orientation "down"
NamePlacement "alternate"
}
Block {
BlockType Memory
Name "Memory3"
Position [490, 1045, 520, 1075]
Orientation "left"
NamePlacement "alternate"
}
Block {
BlockType Memory
Name "Memory4"
Position [375, 1105, 405, 1135]
Orientation "left"
NamePlacement "alternate"
}
Block {
BlockType Memory
Name "Memory5"
Position [1335, 375, 1365, 405]
}
Block {
BlockType Memory
Name "Memory6"
Position [440, 355, 470, 385]
Orientation "left"
NamePlacement "alternate"
}
Block {
BlockType Memory
Name "Memory7"
Position [60, 445, 90, 475]
}
Block {
BlockType Memory
Name "Memory8"
Position [1150, 210, 1180, 240]
Orientation "left"
NamePlacement "alternate"
}
Block {
BlockType Memory
Name "Memory9"
Position [130, 495, 160, 525]
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [710, 1097, 740, 1128]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Ramp1"
Ports [0, 1]
Position [925, 910, 955, 940]
SourceBlock "simulink/Sources/Ramp"
SourceType "Ramp"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
slope "100"
start "0"
X0 "0"
VectorParams1D on
}
Block {
BlockType Reference
Name "Ramp2"
Ports [0, 1]
Position [765, 1040, 795, 1070]
SourceBlock "simulink/Sources/Ramp"
SourceType "Ramp"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
slope "1000"
start "0"
X0 "0"
VectorParams1D on
}
Block {
BlockType Reference
Name "Ramp3"
Ports [0, 1]
Position [225, 1005, 255, 1035]
SourceBlock "simulink/Sources/Ramp"
SourceType "Ramp"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
slope "0.1"
start "0"
X0 "0.0001"
VectorParams1D on
}
Block {
BlockType Reference
Name "Ramp4"
Ports [0, 1]
Position [690, 390, 720, 420]
Orientation "left"
NamePlacement "alternate"
SourceBlock "simulink/Sources/Ramp"
SourceType "Ramp"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
slope "1000"
start "0"
X0 "0"
VectorParams1D on
}
Block {
BlockType Reference
Name "Ramp5"
Ports [0, 1]
Position [850, 135, 880, 165]
SourceBlock "simulink/Sources/Ramp"
SourceType "Ramp"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
slope "0.1"
start "0"
X0 "0.0001"
VectorParams1D on
}
Block {
BlockType Saturate
Name "Saturation"
Position [50, 365, 80, 395]
Orientation "left"
NamePlacement "alternate"
UpperLimit "1"
LowerLimit "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [475, 119, 505, 151]
Floating off
Location [5, 56, 1285, 997]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [3]
Position [240, 230, 280, 290]
Floating off
Location [5, 56, 1285, 997]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
YMin "-5~-5~-5"
YMax "5~5~5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [685, 474, 715, 506]
Floating off
Location [-3, 56, 1277, 997]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.07000766236365999"
YMin "0"
YMax "11"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [505, 234, 535, 266]
Floating off
Location [5, 56, 1285, 997]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope6"
Ports [4]
Position [480, 511, 520, 589]
Floating off
Location [-3, 56, 1277, 997]
Open off
NumInputPorts "4"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
TimeRange "2.5"
YMin "145.165~145~-5~-5"
YMax "145.195~145.3~5~5"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope7"
Ports [2]
Position [1485, 299, 1525, 361]
Floating off
Location [5, 56, 1285, 997]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "2.5"
YMin "145.165~145"
YMax "145.195~145.3"
SaveName "ScopeData7"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope8"
Ports [3]
Position [1485, 379, 1525, 441]
Floating off
Location [32, 62, 1312, 1003]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "2.5"
YMin "145.165~145~-5"
YMax "145.195~145.3~5"
SaveName "ScopeData8"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope9"
Ports [2]
Position [1485, 449, 1525, 511]
Floating off
Location [14, 60, 1294, 1001]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -