📄 s2_chou.mdl
字号:
Model {
Name "S2_chou"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Thu May 01 11:17:17 2003"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "Tomas"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sun Jun 08 20:40:00 2003"
ModelVersionFormat "1.%<AutoIncrement:17>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "10.0"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
LimitDataPoints on
MaxDataPoints "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
SingleTaskRateTransMsg "none"
MultiTaskRateTransMsg "error"
IntegerOverflowMsg "warning"
CheckForMatrixSingularity "none"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
RTWOptions "-aEnforceIntegerDowncast=1 -aExtMode=0 -aFoldNonRol"
"ledExpr=1 -aForceParamTrailComments=0 -aGenerateComments=1 -aIgnoreCustomStor"
"ageClasses=1 -aIncHierarchyInIds=0 -aInlineInvariantSignals=0 -aLocalBlockOut"
"puts=1 -aLogVarNameModifier=\"rt_\" -aRTWVerbose=1 -aRollThreshold=5 -aShowEl"
"iminatedStatements=1"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
TLCProfiler off
TLCDebug off
TLCCoverage off
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
TryForcingSFcnDF off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect on
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt on
RTWExpressionDepthLimit 5
BooleanDataType off
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
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 "S2_chou"
Location [234, 217, 854, 579]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "巴特沃斯低通滤波器"
Ports [1, 1]
Position [350, 162, 415, 218]
ForegroundColor "green"
DropShadow on
FontSize 15
SourceBlock "dsparch3/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "8"
Wlo "30"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Product
Name "乘法器"
Ports [2, 1]
Position [230, 171, 275, 204]
ForegroundColor "darkGreen"
DropShadow on
FontSize 15
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Scope
Name "抽样后信号"
Ports [1]
Position [355, 254, 385, 286]
ForegroundColor "red"
DropShadow on
FontSize 15
Floating off
Location [47, 428, 371, 667]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType DiscretePulseGenerator
Name "抽样脉冲"
Position [35, 213, 80, 247]
DropShadow on
FontSize 15
PulseType "Time-based"
Amplitude "1"
Period "0.1"
PulseWidth "50"
PhaseDelay "0"
SampleTime "1"
VectorParams1D on
}
Block {
BlockType Scope
Name "抽样脉冲信号"
Ports [1]
Position [135, 214, 165, 246]
ForegroundColor "red"
DropShadow on
FontSize 15
Floating off
Location [617, 398, 941, 637]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType ToWorkspace
Name "环境变量1"
Position [540, 15, 600, 45]
ForegroundColor "blue"
DropShadow on
FontSize 15
VariableName "out1"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "环境变量2"
Position [540, 125, 600, 155]
ForegroundColor "blue"
DropShadow on
FontSize 15
VariableName "out2"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "环境变量3"
Position [540, 220, 600, 250]
ForegroundColor "blue"
DropShadow on
FontSize 15
VariableName "out3"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType Scope
Name "恢复信号"
Ports [1]
Position [480, 174, 510, 206]
ForegroundColor "red"
DropShadow on
FontSize 15
Floating off
Location [410, 478, 734, 717]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Reference
Name "频谱分析"
Ports [1]
Position [320, 60, 350, 90]
ForegroundColor "red"
DropShadow on
FontName "Arial"
FontSize 15
SourceBlock "simulink_extras/Additional\nSinks/Power Spectra"
"l\nDensity"
SourceType "Spectrum Analyzer"
npts "128"
fftpts "512"
HowOften "64"
sampleT "0.1"
}
Block {
BlockType ToWorkspace
Name "时间变量"
Position [415, 300, 475, 330]
ForegroundColor "blue"
DropShadow on
FontSize 15
VariableName "timeout"
MaxDataPoints "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType Clock
Name "时钟信号"
Position [230, 305, 250, 325]
DropShadow on
FontSize 15
DisplayTime off
Decimation "10"
}
Block {
BlockType Scope
Name "输入信号"
Ports [1]
Position [130, 139, 160, 171]
ForegroundColor "red"
DropShadow on
FontSize 15
Floating off
Location [171, 245, 495, 484]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SignalGenerator
Name "信号源"
Position [35, 60, 65, 90]
DropShadow on
FontName "Arial"
FontSize 15
WaveForm "sine"
Amplitude "1"
Frequency "1"
Units "Hertz"
VectorParams1D on
}
Line {
SrcBlock "信号源"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 80]
DstBlock "输入信号"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "环境变量1"
DstPort 1
}
Branch {
Points [105, 0]
Branch {
DstBlock "频谱分析"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "乘法器"
DstPort 1
}
}
}
Line {
SrcBlock "抽样脉冲"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "抽样脉冲信号"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "乘法器"
DstPort 2
}
}
Line {
SrcBlock "乘法器"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "巴特沃斯低通滤波器"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "抽样后信号"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "环境变量2"
DstPort 1
}
}
Line {
SrcBlock "巴特沃斯低通滤波器"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "恢复信号"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "环境变量3"
DstPort 1
}
}
Line {
SrcBlock "时钟信号"
SrcPort 1
DstBlock "时间变量"
DstPort 1
}
Annotation {
Position [93, 320]
Text "信号抽样"
FontName "Arial"
FontSize 22
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -