📄 twobai.mdl
字号:
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 Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
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 StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
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"
}
}
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 "bai21"
Location [2, 70, 1022, 720]
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 Constant
Name "Constant"
Position [60, 280, 90, 310]
Value "0.08"
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 Demux
Name "Demux"
Ports [1, 6]
Position [515, 140, 520, 295]
BackgroundColor "black"
ShowName off
Outputs "6"
}
Block {
BlockType Gain
Name "Matrix\nGain"
Position [310, 510, 340, 540]
Orientation "left"
NamePlacement "alternate"
Gain "K"
Multiplication "Matrix(K*u)"
}
Block {
BlockType Mux
Name "Mux"
Ports [6, 1]
Position [545, 460, 550, 590]
Orientation "left"
NamePlacement "alternate"
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [915, 139, 945, 171]
Floating off
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.09"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [875, 164, 905, 196]
Floating off
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [840, 189, 870, 221]
Floating off
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.5"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [805, 214, 835, 246]
Floating off
Location [306, 278, 630, 517]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.5"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [770, 239, 800, 271]
Floating off
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.5"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [740, 264, 770, 296]
Floating off
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.5"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [165, 104, 195, 136]
Floating off
Location [237, 310, 561, 549]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "20"
YMin "0"
YMax "1.4"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType StateSpace
Name "State-Space"
Position [295, 203, 355, 237]
A "A"
B "B"
C "C"
D "D"
}
Block {
BlockType Step
Name "Step"
Position [15, 205, 45, 235]
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [620, 50, 640, 70]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [90, 210, 110, 230]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [195, 210, 215, 230]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Line {
SrcBlock "Matrix\nGain"
SrcPort 1
Points [-100, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [-5, 0]
Branch {
DstBlock "Sum2"
DstPort 1
}
Branch {
Points [10, 0]
Branch {
Points [15, 0; 0, -100]
DstBlock "Scope6"
DstPort 1
}
Branch {
Points [0, -160]
DstBlock "Sum"
DstPort 1
}
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "State-Space"
DstPort 1
}
Line {
SrcBlock "State-Space"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [105, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Demux"
SrcPort 5
Points [135, 0]
Branch {
Points [0, 300]
DstBlock "Mux"
DstPort 5
}
Branch {
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 6
Points [120, 0; 0, 110]
Branch {
Points [0, 185]
DstBlock "Mux"
DstPort 6
}
Branch {
Points [0, -110]
DstBlock "Scope5"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 4
Points [150, 0]
Branch {
Points [0, 305]
DstBlock "Mux"
DstPort 4
}
Branch {
DstBlock "Scope3"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Matrix\nGain"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [180, 0]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [0, 315]
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [165, 0]
Branch {
DstBlock "Scope2"
DstPort 1
}
Branch {
Points [0, 310]
DstBlock "Mux"
DstPort 3
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [5, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [85, 0; 0, 415]
DstBlock "Mux"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -