📄 adeq.mdl
字号:
}
}
Block {
BlockType Reference
Name "Equalizer\nResponse"
Ports [1]
Position [555, 290, 590, 340]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer off
BufferSize "128"
Overlap "64"
inpFftLenInherit on
FFTlength "128"
numAvg "2"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber off
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[29 124 450 360]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1"
XLabel "Samples"
YUnits "dB"
YMin "-12"
YMax "8"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType Reference
Name "Filter \nTaps"
Ports [1]
Position [555, 380, 590, 430]
SourceBlock "dspsnks4/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "User-defined"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber off
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[491 123 450 360]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr off
XIncr "1"
XLabel "Samples"
YUnits "dB"
YMin "-1"
YMax "2"
YLabel "Equalizer Coefficients"
LineProperties off
LineMarkers "."
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [445, 385, 500, 425]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [170, 87, 215, 123]
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "6"
ic "0"
reset_popup "None"
Port {
PortNumber 1
Name "Signal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "LMS\nAdaptive Filter"
Ports [2, 2]
Position [305, 151, 390, 209]
SourceBlock "dspadpt3/LMS\nAdaptive Filter"
SourceType "LMS Adaptive Filter"
n "11"
mu ".5"
ic "0.0"
leakage "1.0"
normalized on
Adapt off
RstPort "None"
}
Block {
BlockType Reference
Name "Manual Switch"
Ports [2, 1]
Position [465, 147, 495, 183]
Orientation "left"
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
sw "1"
action "0"
}
Block {
BlockType Math
Name "Math\nfunctions"
Ports [1, 1]
Position [470, 90, 500, 120]
ShowName off
Operator "square"
Port {
PortNumber 1
Name "Squared\nerror"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "Noise"
Ports [0, 1]
Position [175, 220, 205, 250]
SourceBlock "simulink/Sources/Band-Limited\nWhite Noise"
SourceType "Continuous White Noise."
Cov ".002e-5"
Ts "1e-5"
seed "[23341]"
VectorParams1D on
}
Block {
BlockType Scope
Name "Results"
Ports [3]
Position [560, 50, 590, 100]
ShowName off
Location [339, 94, 878, 502]
Open on
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
TimeRange "0.005"
YMin "-2~0~0"
YMax "2~2~1"
DataFormat "Array"
}
Block {
BlockType Signum
Name "Sign"
Position [105, 149, 140, 181]
}
Block {
BlockType Signum
Name "Sign1"
Position [460, 204, 495, 236]
}
Block {
BlockType SubSystem
Name "Simulation Notes"
Ports []
Position [75, 274, 134, 317]
BackgroundColor "cyan"
DropShadow on
TreatAsAtomicUnit off
MaskDisplay "disp('Notes')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Simulation Notes"
Location [2, 70, 1022, 720]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "Adaptive Channel Equalization\n\nThis examp"
"le shows the ability of the LMS algorithm\nto adaptively compute the estimate"
" of an FIR\nequalization filter.\n\nThere are two modes of operation: (a)trai"
"ning mode \nand (b) decision-directed mode. The training mode is\napplied dur"
"ing the initial stage of adaptation of the \nadaptive filter. After convergen"
"ce, the equalizer can be\nswitched to the decision-directed mode, which uses "
"a threshold\ndevice to act as the desired signal."
Position [167, 99]
FontName "Arial"
FontSize 14
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [235, 150, 265, 180]
ShowName off
IconShape "round"
Inputs "|++"
Port {
PortNumber 1
Name "Signal+Noise"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [380, 90, 410, 120]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [525, 205, 555, 235]
ShowName off
IconShape "round"
Inputs "|+-"
}
Line {
SrcBlock "LMS\nAdaptive Filter"
SrcPort 2
Points [0, 120; 15, 0]
Branch {
DstBlock "Equalizer\nResponse"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Frame Status\nConversion"
DstPort 1
}
}
Line {
SrcBlock "Dispersive\nChannel"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "LMS\nAdaptive Filter"
SrcPort 1
Points [0, -10]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [10, 0; 0, 65; 25, 0]
Branch {
DstBlock "Sign1"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Sum2"
DstPort 2
}
}
}
Line {
SrcBlock "Band-Limited\nWhite Noise"
SrcPort 1
DstBlock "Sign"
DstPort 1
}
Line {
SrcBlock "Noise"
SrcPort 1
Points [40, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sign"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -60]
DstBlock "Integer Delay"
DstPort 1
}
Branch {
DstBlock "Dispersive\nChannel"
DstPort 1
}
}
Line {
Labels [1, 0]
SrcBlock "Sum1"
SrcPort 1
Points [15, 0; 0, 40; 80, 0]
DstBlock "Manual Switch"
DstPort 1
}
Line {
Name "Squared\nerror"
Labels [1, 1]
SrcBlock "Math\nfunctions"
SrcPort 1
Points [40, 0]
DstBlock "Results"
DstPort 3
}
Line {
Name "Signal+Noise"
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Labels [-1, 1]
Points [0, -105]
DstBlock "Results"
DstPort 1
}
Branch {
DstBlock "LMS\nAdaptive Filter"
DstPort 1
}
}
Line {
Name "Signal"
Labels [0, 0]
SrcBlock "Integer Delay"
SrcPort 1
Points [0, 0; 120, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Labels [-1, 1]
Points [0, -30]
DstBlock "Results"
DstPort 2
}
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Filter \nTaps"
DstPort 1
}
Line {
SrcBlock "Manual Switch"
SrcPort 1
Points [-15, 0]
Branch {
Points [-25, 0; 0, -30; -130, 0]
DstBlock "LMS\nAdaptive Filter"
DstPort 2
}
Branch {
Points [0, -60]
DstBlock "Math\nfunctions"
DstPort 1
}
}
Line {
SrcBlock "Sign1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [10, 0; 0, -45]
DstBlock "Manual Switch"
DstPort 2
}
Annotation {
Name "LMS Adaptive Equalization with training/decisio"
"n-directed mode"
Position [332, 21]
FontName "MS Sans Serif"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "training mode"
Position [556, 155]
}
Annotation {
Name "decision-\ndirected mode"
Position [611, 198]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -