📄 c8bp_pid.mdl
字号:
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Demux
Outputs "4"
DisplayOption "none"
BusSelectionMode off
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
OutMin "[]"
OutMax "[]"
DataType "auto"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
OutMin "[]"
OutMax "[]"
DataType "auto"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels "FromPortIcon"
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
CollapseMode "All dimensions"
CollapseDim "1"
InputSameDT on
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as first input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
SampleTime "-1"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
LockScale off
RndMeth "Floor"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "c8bp_pid"
Location [165, 418, 945, 882]
Open on
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"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 2]
Position [245, 107, 360, 213]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskPromptString "sampling period |number of hidden layer nods|the value of xite|the value of alfa|the value of kF1|the value of kF2"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "T=@1;nh=@2;xite=@3;alfa=@4;kF1=@5;kF2=@6;"
MaskDisplay "disp('BP PID\\n controller')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0|0|0|0|0|0"
MaskTabNameString ",,,,,"
System {
Name "Subsystem"
Location [298, 340, 1038, 651]
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 "r(k)"
Position [25, 83, 55, 97]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "y(k)"
Position [70, 113, 100, 127]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [555, 60, 560, 140]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux"
Ports [9, 1]
Position [395, 43, 400, 157]
ShowName off
Inputs "9"
DisplayOption "bar"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [440, 76, 525, 124]
FunctionName "nnbp_pid"
Parameters "T,nh,xite,alfa,kF1,kF2"
}
Block {
BlockType Saturate
Name "Saturation"
Position [595, 60, 625, 90]
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [115, 80, 135, 100]
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [175, 74, 205, 106]
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [245, 74, 275, 106]
}
Block {
BlockType UnitDelay
Name "Unit Delay2"
Position [180, 139, 215, 171]
}
Block {
BlockType UnitDelay
Name "Unit Delay3"
Position [435, 254, 470, 286]
Orientation "left"
}
Block {
BlockType UnitDelay
Name "Unit Delay4"
Position [410, 189, 445, 221]
Orientation "left"
}
Block {
BlockType UnitDelay
Name "Unit Delay5"
Position [490, 189, 525, 221]
Orientation "left"
}
Block {
BlockType Outport
Name "u(k)"
Position [685, 68, 715, 82]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Out2"
Position [685, 113, 715, 127]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [0, 80]
DstBlock "Unit Delay5"
DstPort 1
}
Line {
SrcBlock "Unit Delay4"
SrcPort 1
Points [-40, 0; 0, -75]
DstBlock "Mux"
DstPort 8
}
Line {
SrcBlock "Unit Delay3"
SrcPort 1
Points [-75, 0; 0, -150]
DstBlock "Mux"
DstPort 7
}
Line {
SrcBlock "Unit Delay5"
SrcPort 1
Points [-15, 0]
Branch {
DstBlock "Unit Delay4"
DstPort 1
}
Branch {
Points [5, 0; 0, -40; -95, 0]
DstBlock "Mux"
DstPort 9
}
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [30, 0; 0, 20]
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "u(k)"
DstPort 1
}
Branch {
Points [0, 195]
DstBlock "Unit Delay3"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "Unit Delay2"
SrcPort 1
Points [115, 0; 0, -55]
DstBlock "Mux"
DstPort 5
}
Line {
SrcBlock "y(k)"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Sum"
DstPort 2
}
Branch {
Points [195, 0; 0, -30]
DstBlock "Mux"
DstPort 4
}
Branch {
Points [0, 35]
DstBlock "Unit Delay2"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
Points [30, 0; 0, -10]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Unit Delay1"
DstPort 1
}
Branch {
Points [0, -40; 80, 0; 0, 20]
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Unit Delay"
DstPort 1
}
Branch {
Points [0, -60; 175, 0; 0, 30]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "r(k)"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 115; 280, 0; 0, -95]
DstBlock "Mux"
DstPort 6
}
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -