📄 sim21.mdl
字号:
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
ZeroCross on
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
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 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 ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
}
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 "Sim21"
Location [2, 78, 1022, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Clock
Name "Clock"
Position [55, 493, 90, 527]
BackgroundColor "magenta"
Decimation "10"
}
Block {
BlockType Fcn
Name "Fcn"
Position [85, 111, 150, 139]
BackgroundColor "[0.501961, 0.000000, 0.501961]"
Expr "3*u -2* u*u"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [85, 356, 150, 384]
BackgroundColor "[0.501961, 0.000000, 0.501961]"
Expr "3*u -2* u*u"
}
Block {
BlockType Gain
Name "Mu"
Position [235, 121, 275, 159]
BackgroundColor "[0.501961, 0.000000, 1.000000]"
Gain "1/4"
}
Block {
BlockType Gain
Name "Mu1"
Position [235, 366, 275, 404]
BackgroundColor "[0.501961, 0.000000, 1.000000]"
Gain "1/4"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [580, 194, 630, 236]
BackgroundColor "cyan"
ShowName off
Inputs "2"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [620, 431, 670, 529]
BackgroundColor "cyan"
ShowName off
Inputs "3"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [175, 109, 205, 171]
BackgroundColor "cyan"
ShowName off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [175, 354, 205, 416]
BackgroundColor "cyan"
ShowName off
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [680, 185, 720, 245]
BackgroundColor "[0.501961, 0.250980, 0.250980]"
Location [141, 250, 485, 564]
Open off
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "20"
YMin "-3"
YMax "3"
DataFormat "Array"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [315, 104, 345, 151]
BackgroundColor "cyan"
ShowName off
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [315, 349, 345, 396]
BackgroundColor "cyan"
ShowName off
Inputs "-+"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [740, 458, 820, 502]
BackgroundColor "[0.501961, 0.000000, 0.250980]"
VariableName "SimuData"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Integrator
Name "x1"
Ports [1, 1]
Position [485, 106, 520, 154]
BackgroundColor "magenta"
ShowName off
InitialCondition "2"
Port {
PortNumber 1
Name "x1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Integrator
Name "x2"
Ports [1, 1]
Position [385, 108, 425, 152]
BackgroundColor "magenta"
ShowName off
Port {
PortNumber 1
Name "x2"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Integrator
Name "x3"
Ports [1, 1]
Position [485, 351, 520, 399]
BackgroundColor "magenta"
ShowName off
InitialCondition "2"
Port {
PortNumber 1
Name "x1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Integrator
Name "x4"
Ports [1, 1]
Position [385, 353, 425, 397]
BackgroundColor "magenta"
ShowName off
Port {
PortNumber 1
Name "x2"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Line {
Labels [0, 1]
SrcBlock "Sum"
SrcPort 1
DstBlock "x2"
DstPort 1
}
Line {
Name "x2"
Labels [2, 0]
SrcBlock "x2"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "x1"
DstPort 1
}
Branch {
Points [0, 95]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Labels [2, 1]
Points [-395, 0; 0, -70]
DstBlock "Product"
DstPort 2
}
}
}
Line {
Name "x1"
Labels [2, 0]
SrcBlock "x1"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, -90; -275, 0]
Branch {
Labels [2, 0]
Points [-225, 0; 0, 85]
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Sum"
DstPort 1
}
}
Branch {
Labels [1, 0]
Points [0, 45; -55, 0; 0, 30]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Mu"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Mu"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
Labels [0, 1]
SrcBlock "Sum1"
SrcPort 1
DstBlock "x4"
DstPort 1
}
Line {
Name "x2"
Labels [2, 0]
SrcBlock "x4"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "x3"
DstPort 1
}
Branch {
Points [0, 105]
Branch {
Labels [2, 1]
Points [-395, 0; 0, -80]
DstBlock "Product1"
DstPort 2
}
Branch {
Labels [1, 0]
DstBlock "Mux1"
DstPort 2
}
}
}
Line {
Name "x1"
Labels [1, 0]
SrcBlock "x3"
SrcPort 1
Points [25, 0]
Branch {
Points [0, -90; -275, 0]
Branch {
Labels [2, 0]
Points [-225, 0; 0, 85]
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Sum1"
DstPort 1
}
}
Branch {
Points [0, 75]
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Mu1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Mu1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -