📄 siso_closed_loop_2.mdl
字号:
IncludeFileDelimiter "Auto"
ERTCustomFileBanners off
SupportAbsoluteTime on
LogVarNameModifier "rt_"
MatFileLogging off
MultiInstanceERTCode off
SupportNonFinite on
SupportComplex on
PurelyIntegerCode off
SupportContinuousTime on
SupportNonInlinedSFcns on
EnableShiftOperators on
ParenthesesLevel "Nominal"
ExtMode off
ExtModeStaticAlloc off
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
GenerateASAP2 off
}
PropName "Components"
}
}
PropName "Components"
}
Name "Configuration"
SimulationMode "normal"
ExtraOptions "-aExtMode=0 "
CurrentDlgPage "Diagnostics"
}
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 Clock
DisplayTime off
}
Block {
BlockType RandomNumber
Mean "0"
Variance "1"
Seed "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
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
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "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 "timedomain"
Location [229, 248, 1460, 898]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "125"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Anti-aliasing filter 2"
Ports [1, 1]
Position [470, 107, 535, 163]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "2"
Wlo "30*2*pi"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Anti-aliasing filter 3"
Ports [1, 1]
Position [690, 252, 755, 308]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "2"
Wlo "30*2*pi"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Anti-aliasing filter 4"
Ports [1, 1]
Position [155, 407, 220, 463]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "2"
Wlo "30*2*pi"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Clock
Name "Clock"
Position [700, 400, 720, 420]
Decimation "10"
}
Block {
BlockType ToWorkspace
Name "External1"
Position [285, 420, 345, 450]
VariableName "u"
MaxDataPoints "inf"
SampleTime "0.01"
SaveFormat "Array"
}
Block {
BlockType TransferFcn
Name "H1"
Position [255, 267, 310, 303]
Numerator "[2]"
Denominator "[0.01 1]"
}
Block {
BlockType TransferFcn
Name "H2"
Position [430, 259, 545, 301]
Numerator "1"
Denominator "[0.025 0.15 1]"
}
Block {
BlockType RandomNumber
Name "Input u"
Position [35, 260, 65, 290]
Seed "1"
SampleTime "0"
}
Block {
BlockType ToWorkspace
Name "Internal"
Position [600, 120, 660, 150]
VariableName "x"
MaxDataPoints "inf"
SampleTime "0.01"
SaveFormat "Array"
}
Block {
BlockType RandomNumber
Name "Noise"
Position [295, 150, 325, 180]
Variance "0.01"
Seed "2"
SampleTime "0"
}
Block {
BlockType ToWorkspace
Name "Output"
Position [820, 265, 880, 295]
VariableName "y"
MaxDataPoints "inf"
SampleTime "0.01"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "Output1"
Position [785, 395, 845, 425]
VariableName "t"
MaxDataPoints "inf"
SampleTime "0.01"
SaveFormat "Array"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [355, 262, 385, 293]
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [185, 267, 215, 298]
Inputs "+-"
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "H1"
DstPort 1
}
Line {
SrcBlock "Input u"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Sum3"
DstPort 1
}
Branch {
Points [0, 160]
DstBlock "Anti-aliasing filter 4"
DstPort 1
}
}
Line {
SrcBlock "Anti-aliasing filter 3"
SrcPort 1
DstBlock "Output"
DstPort 1
}
Line {
SrcBlock "Anti-aliasing filter 2"
SrcPort 1
DstBlock "Internal"
DstPort 1
}
Line {
SrcBlock "Anti-aliasing filter 4"
SrcPort 1
DstBlock "External1"
DstPort 1
}
Line {
SrcBlock "H2"
SrcPort 1
Points [85, 0]
Branch {
Points [0, 80; -485, 0; 0, -70]
DstBlock "Sum3"
DstPort 2
}
Branch {
DstBlock "Anti-aliasing filter 3"
DstPort 1
}
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Output1"
DstPort 1
}
Line {
SrcBlock "H1"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "H2"
DstPort 1
}
Branch {
Points [0, -145]
DstBlock "Anti-aliasing filter 2"
DstPort 1
}
}
Line {
SrcBlock "Noise"
SrcPort 1
Points [10, 0]
DstBlock "Sum2"
DstPort 1
}
Annotation {
Name "2nd order Butterworth filters, 30 Hz\nto preven"
"t aliasing."
Position [508, 88]
UseDisplayTextAsClickCallback off
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -