📄 pvmodel.mdl
字号:
Value "0.8"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Gain
Name "Gain"
Position [570, 179, 615, 221]
Gain "Ti"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [570, 304, 610, 346]
Gain "Td"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [240, 325, 270, 355]
Gain "2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Kp1"
Position [570, 403, 615, 447]
Gain "Kp"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Memory
Name "Memory7"
Position [235, 600, 265, 630]
Orientation "left"
NamePlacement "alternate"
}
Block {
BlockType Reference
Name "Ramp1"
Ports [0, 1]
Position [125, 665, 155, 695]
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 "1"
start "0"
X0 "0"
VectorParams1D "on"
}
Block {
BlockType Sum
Name "Subtract"
Ports [3, 1]
Position [395, 302, 430, 348]
Inputs "++-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Subtract1"
Ports [2, 1]
Position [395, 399, 430, 446]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Subtract2"
Ports [2, 1]
Position [980, 164, 1015, 211]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch"
Position [235, 665, 265, 695]
Criteria "u2 > Threshold"
Threshold "0.00"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch1"
Position [1050, 175, 1080, 205]
Criteria "u2 > Threshold"
Threshold "0.00"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [395, 625, 455, 655]
VariableName "Dk_1"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [425, 230, 485, 260]
VariableName "dpk_2"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [435, 275, 495, 305]
VariableName "dpk_1"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [1160, 145, 1220, 175]
VariableName "s"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType Reference
Name "Unary Minus"
Ports [1, 1]
Position [995, 300, 1025, 330]
SourceBlock "simulink/Math\nOperations/Unary Minus"
SourceType "Unary Minus"
DoSatur "off"
}
Block {
BlockType Sum
Name "dp1"
Ports [2, 1]
Position [1105, 294, 1155, 381]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "dp3"
Ports [3, 1]
Position [775, 272, 825, 358]
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Memory
Name "dpk_1"
Position [115, 215, 145, 245]
}
Block {
BlockType Memory
Name "dpk_2"
Position [205, 215, 235, 245]
}
Block {
BlockType Outport
Name "D"
Position [1205, 333, 1235, 347]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Switch1"
SrcPort 1
Points [5, 0; 0, 25]
Branch {
Points [35, 0; 0, -55]
DstBlock "To Workspace4"
DstPort 1
}
Branch {
DstBlock "dp1"
DstPort 1
}
}
Line {
SrcBlock "Unary Minus"
SrcPort 1
Points [0, -115]
DstBlock "Switch1"
DstPort 3
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [5, 0; 0, 55]
DstBlock "Switch1"
DstPort 1
}
Line {
SrcBlock "Subtract2"
SrcPort 1
DstBlock "Switch1"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [20, 0; 0, -5]
DstBlock "Subtract2"
DstPort 2
}
Line {
SrcBlock "dp1"
SrcPort 1
Points [0, 0]
DstBlock "D"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [715, 0; 0, -320]
DstBlock "dp1"
DstPort 2
}
Line {
SrcBlock "Abs"
SrcPort 1
Points [0, 0]
DstBlock "Unary Minus"
DstPort 1
}
Line {
SrcBlock "Ramp1"
SrcPort 1
Points [0, 0]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [5, 0; 0, -25]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Memory7"
SrcPort 1
Points [-20, 0; 0, 25]
Branch {
DstBlock "To Workspace"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Switch"
DstPort 1
}
}
Line {
SrcBlock "Dk_1"
SrcPort 1
Points [280, 0; 0, 125]
DstBlock "Memory7"
DstPort 1
}
Line {
SrcBlock "Kp1"
SrcPort 1
Points [40, 0; 0, -80]
DstBlock "dp3"
DstPort 3
}
Line {
SrcBlock "Subtract1"
SrcPort 1
DstBlock "Kp1"
DstPort 1
}
Line {
SrcBlock "dpk_2"
SrcPort 1
Points [135, 0; 0, 15]
Branch {
DstBlock "To Workspace2"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Subtract"
DstPort 2
}
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [0, 0]
DstBlock "Subtract"
DstPort 3
}
Line {
SrcBlock "Subtract"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "dpk_1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 60]
Branch {
DstBlock "To Workspace3"
DstPort 1
}
Branch {
Points [0, 50]
Branch {
Points [0, 95]
DstBlock "Subtract1"
DstPort 2
}
Branch {
DstBlock "Gain2"
DstPort 1
}
}
}
Branch {
DstBlock "dpk_2"
DstPort 1
}
}
Line {
SrcBlock "e"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -30]
Branch {
Points [0, -25]
DstBlock "Subtract2"
DstPort 1
}
Branch {
DstBlock "Gain"
DstPort 1
}
}
Branch {
Points [0, 75]
Branch {
Points [0, 105]
DstBlock "Subtract1"
DstPort 1
}
Branch {
Points [0, 5]
DstBlock "Subtract"
DstPort 1
}
}
Branch {
DstBlock "dpk_1"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 85]
DstBlock "dp3"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [5, 0; 0, -10]
DstBlock "dp3"
DstPort 2
}
Line {
SrcBlock "dp3"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem4"
Ports [2, 1]
Position [135, 350, 175, 410]
Orientation "left"
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "Kp|Ti|Td"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Kp=@1;Ti=@2;Td=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.0001|0.0001|0.0001"
MaskTabNameString ",,"
System {
Name "Subsystem4"
Location [2, 82, 1270, 977]
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 "e"
Position [20, 223, 50, 237]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Dk_1"
Position [15, 483, 45, 497]
Port "2"
IconDisplay "Port number"
SampleTime "0.001"
}
Block {
BlockType Constant
Name "Constant3"
Position [175, 700, 205, 730]
Value "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -