📄 s2_chou.mdl
字号:
BlockType Reference
Name "巴特沃斯低通滤波器"
Ports [1, 1]
Position [350, 162, 415, 218]
ForegroundColor "green"
DropShadow on
FontSize 15
SourceBlock "dsparch4/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
}
Block {
BlockType Scope
Name "抽样后信号"
Ports [1]
Position [355, 254, 385, 286]
ForegroundColor "red"
DropShadow on
FontSize 15
Location [695, 141, 1019, 380]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType DiscretePulseGenerator
Name "抽样脉冲"
Position [35, 213, 80, 247]
DropShadow on
FontSize 15
PulseType "Time based"
Period "0.1"
PulseWidth "50"
}
Block {
BlockType Scope
Name "抽样脉冲信号"
Ports [1]
Position [135, 214, 165, 246]
ForegroundColor "red"
DropShadow on
FontSize 15
Location [359, 468, 683, 707]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType ToWorkspace
Name "环境变量1"
Position [540, 15, 600, 45]
ForegroundColor "blue"
DropShadow on
FontSize 15
VariableName "out1"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "环境变量2"
Position [540, 125, 600, 155]
ForegroundColor "blue"
DropShadow on
FontSize 15
VariableName "out2"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "环境变量3"
Position [540, 220, 600, 250]
ForegroundColor "blue"
DropShadow on
FontSize 15
VariableName "out3"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType Scope
Name "恢复信号"
Ports [1]
Position [480, 174, 510, 206]
ForegroundColor "red"
DropShadow on
FontSize 15
Location [699, 471, 1023, 710]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
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 "Power Spectral Density"
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"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType Clock
Name "时钟信号"
Position [230, 305, 250, 325]
DropShadow on
FontSize 15
Decimation "10"
}
Block {
BlockType Scope
Name "输入信号"
Ports [1]
Position [130, 139, 160, 171]
ForegroundColor "red"
DropShadow on
FontSize 15
Location [356, 140, 680, 379]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType SignalGenerator
Name "信号源"
Position [35, 60, 65, 90]
DropShadow on
FontName "Arial"
FontSize 15
}
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 {
Name "信号抽样"
Position [93, 320]
FontName "Arial"
FontSize 22
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -