📄 mo_de.mdl
字号:
XUnits "Hertz"
XRange "[0...Fs]"
XIncr "1/20000"
YLabel "Magnitude, dB"
YUnits "Magnitude"
HorizSpan "1"
NChans "1"
AxisParams on
YMin "0.226183923469169"
YMax "3630.74475795847"
FigPos "get(0,'defaultfigureposition')"
AxisGrid on
AxisZoom on
FrameNumber off
AxisLegend on
Memory off
LineParams off
}
Block {
BlockType Constant
Name "Constant"
Position [125, 190, 155, 220]
}
Block {
BlockType Sin
Name "Cos"
Position [410, 225, 440, 255]
SineType "Time based"
Frequency "5000*2*3.14"
Phase "pi*2"
SampleTime "1/20000"
}
Block {
BlockType Reference
Name "Digital FIR\nFilter Design"
Ports [1, 1]
Position [575, 117, 645, 173]
SourceBlock "dspddes2/Digital FIR\nFilter Design"
SourceType "Digital FIR Filter Design"
filttype "Lowpass"
N "9"
Wlo "0.4"
Whi "0.6"
W0 "[.2 .5 .8]"
g0 "1"
W1 "[0 .2 .3 .6 .8 1]"
gains "[1 .5 0 0 1 .5]"
wintype "Hamming"
Rs "10"
Kbeta "5"
frame off
numChans "1"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [320, 117, 350, 153]
ShowName off
Port {
PortNumber 1
Name "Modulated\nsignal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [465, 125, 495, 165]
ShowName off
Port {
PortNumber 1
Name "Demodulated\nsignal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [225, 14, 255, 46]
DropShadow on
Location [94, 409, 418, 648]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.04"
YMin "-1"
YMax "1"
DataFormat "StructureWithTime"
SampleInput on
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [500, 29, 530, 61]
NamePlacement "alternate"
Location [423, 410, 747, 649]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.04"
YMin "-2"
YMax "2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [690, 214, 720, 246]
Location [93, 718, 417, 957]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.04"
YMin "0"
YMax "2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [690, 129, 720, 161]
Location [423, 720, 747, 959]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.04"
YMin "5.55112e-017"
YMax "1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [25, 110, 55, 140]
DropShadow on
SineType "Time based"
Frequency "200*(2*pi)"
SampleTime "1/20000"
}
Block {
BlockType Sum
Name "Up"
Ports [2, 1]
Position [160, 110, 190, 140]
NamePlacement "alternate"
IconShape "round"
Inputs "|++"
Port {
PortNumber 1
Name "Upper\nSideband"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sin
Name "cos"
Position [255, 195, 285, 225]
SineType "Time based"
Frequency "5000*2*3.14"
SampleTime "1/20000"
}
Block {
BlockType Gain
Name "m"
Position [85, 110, 115, 140]
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "m"
DstPort 1
}
Line {
Name "Upper\nSideband"
Labels [0, 0]
SrcBlock "Up"
SrcPort 1
DstBlock "A"
DstPort 1
}
Line {
SrcBlock "A"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
Name "Modulated\nsignal"
Labels [0, 0]
SrcBlock "Product1"
SrcPort 1
Points [15, 0; 60, 0]
Branch {
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, -55]
Branch {
Points [135, 0; 0, -40]
DstBlock "Buffered FFT\nFrame Scope"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Scope1"
DstPort 1
}
}
}
Line {
Name "Demodulated\nsignal"
SrcBlock "Product2"
SrcPort 1
Points [50, 0]
Branch {
Labels [-1, 1]
DstBlock "Digital FIR\nFilter Design"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "cos"
SrcPort 1
Points [15, 0]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Cos"
SrcPort 1
Points [0, -85]
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "m"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Up"
DstPort 1
}
Branch {
Points [0, -95]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [15, 0]
DstBlock "Up"
DstPort 2
}
Line {
SrcBlock "Digital FIR\nFilter Design"
SrcPort 1
DstBlock "Scope3"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -