📄 qf.mdl
字号:
GenerateASAP2 off
}
PropName "Components"
}
}
PropName "Components"
}
Name "Configuration"
SimulationMode "normal"
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Derivative
LinearizePole "inf"
}
Block {
BlockType Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType TransportDelay
DelayTime "1"
InitialInput "0"
BufferSize "1024"
PadeOrder "0"
TransDelayFeedthrough off
}
Block {
BlockType ZeroPole
Zeros "[1]"
Poles "[0 1]"
Gain "[1]"
AbsoluteTolerance "auto"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "chuanji"
Location [228, 167, 1250, 718]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Sum
Name "Add2"
Ports [2, 1]
Position [635, 197, 665, 228]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add3"
Ports [2, 1]
Position [385, 207, 415, 238]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [795, 130, 885, 160]
Decimation "1"
}
Block {
BlockType Reference
Name "PID Controller1"
Ports [1, 1]
Position [290, 205, 320, 235]
SourceBlock "simulink_extras/Additional\nLinear/PID Controll"
"er"
SourceType "PID Controller"
ShowPortLabels on
P "0.2"
I "0.006"
D "0.5"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [840, 199, 870, 231]
Location [5, 56, 1285, 777]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Step
Name "Step1"
Position [160, 35, 190, 65]
SampleTime "0"
}
Block {
BlockType Step
Name "Step2"
Position [100, 205, 130, 235]
After "10"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [205, 210, 225, 230]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [470, 207, 530, 243]
Numerator "[4]"
Denominator "[5 1]"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay1"
Position [560, 205, 590, 235]
DelayTime "5"
}
Block {
BlockType ZeroPole
Name "Zero-Pole1"
Position [525, 32, 585, 68]
Zeros "[]"
Poles "[-2 -1]"
Gain "[0.5]"
}
Block {
BlockType ZeroPole
Name "Zero-Pole2"
Position [300, 72, 360, 108]
Zeros "[ -0.2]"
Poles "[-2 -1]"
Gain "[-0.25]"
}
Line {
SrcBlock "Step2"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [0, -5]
DstBlock "Transport\nDelay1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "PID Controller1"
DstPort 1
}
Line {
SrcBlock "Transport\nDelay1"
SrcPort 1
DstBlock "Add2"
DstPort 2
}
Line {
SrcBlock "Add2"
SrcPort 1
Points [0, 0; 70, 0]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "Display1"
DstPort 1
}
Branch {
Points [0, 130; -525, 0]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "PID Controller1"
SrcPort 1
Points [45, 0]
DstBlock "Add3"
DstPort 2
}
Line {
SrcBlock "Add3"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "Zero-Pole1"
SrcPort 1
Points [30, 0]
DstBlock "Add2"
DstPort 1
}
Line {
SrcBlock "Step1"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
DstBlock "Zero-Pole1"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Zero-Pole2"
DstPort 1
}
}
Line {
SrcBlock "Zero-Pole2"
SrcPort 1
Points [5, 0]
DstBlock "Add3"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -