📄 discrete_sys.mdl
字号:
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 "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType Fcn
Expr "sin(u[1])"
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 Scope
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 "-1"
}
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 UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType ZeroOrderHold
SampleTime "1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "discrete_sys"
Location [339, 151, 957, 452]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "Constant"
Position [290, 245, 320, 275]
Orientation "left"
Value "0.75"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [470, 250, 560, 280]
FontSize 10
Decimation "1"
Lockdown off
}
Block {
BlockType Fcn
Name "Fcn"
Position [135, 20, 195, 50]
Orientation "left"
Expr "0.05*sin(u)"
}
Block {
BlockType Gain
Name "Gain"
Position [225, 95, 255, 125]
Gain "0.1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [115, 164, 165, 196]
Orientation "left"
Gain "0.094"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Kp"
Position [95, 225, 125, 255]
Orientation "left"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [535, 204, 565, 236]
NamePlacement "alternate"
Floating off
Location [139, 293, 463, 532]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveToWorkspace on
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [55, 100, 75, 120]
ShowName off
IconShape "round"
Inputs "-++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [310, 71, 330, 124]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [205, 198, 225, 282]
Orientation "left"
ShowName off
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [135, 93, 170, 127]
SampleTime "0.1"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [395, 83, 430, 117]
SampleTime "0.1"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [285, 205, 320, 235]
Orientation "left"
NamePlacement "alternate"
SampleTime "0.25"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [470, 205, 505, 235]
NamePlacement "alternate"
SampleTime "0.5"
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0]
DstBlock "Unit Delay1"
DstPort 1
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 120]
Branch {
DstBlock "Zero-Order\nHold"
DstPort 1
}
Branch {
DstBlock "Zero-Order\nHold1"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "Display"
DstPort 1
}
}
Branch {
Points [0, -65; -180, 0]
Branch {
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Sum1"
DstPort 1
}
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [-65, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [-45, 0]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Kp"
SrcPort 1
Points [-75, 0; 0, -130]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [-60, 0]
DstBlock "Kp"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
Points [-40, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Annotation {
Name "x2(k+1)"
Position [99, 103]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "u(k)"
Position [53, 231]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "x2(k)"
Position [189, 100]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "x1(k)"
Position [378, 29]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "x1(k+1)"
Position [352, 95]
UseDisplayTextAsClickCallback off
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -