📄 lms.mdl
字号:
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Gaussian Noise\nGenerator"
Ports [0, 1]
Position [20, 173, 100, 217]
FontName "Arial"
SourceBlock "commnoisgen2/Gaussian Noise\nGenerator"
SourceType "Gaussian Noise Generator"
m "0"
d "1"
s "100"
Ts "1/1000"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Reference
Name "LMS Filter"
Ports [2, 3]
Position [205, 97, 310, 183]
SourceBlock "dspadpt3/LMS Filter"
SourceType "LMS Filter"
Algo "LMS"
L "200"
stepflag "Dialog"
mu "0.001"
leakage "1.0"
addnparflag off
ic "0"
Adapt off
resetflag "None"
weights on
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [505, 69, 535, 101]
Location [135, 77, 705, 316]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "10"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [375, 124, 405, 156]
Location [146, 313, 754, 552]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [500, 154, 530, 186]
Location [188, 355, 753, 594]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [150, 144, 180, 176]
Location [119, 300, 729, 539]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [215, 14, 245, 46]
Location [29, 239, 727, 478]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [240, 229, 270, 261]
Location [136, 310, 701, 549]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [495, 219, 525, 251]
Location [171, 236, 736, 475]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveName "ScopeData6"
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "Sine Wave"
Ports [0, 1]
Position [20, 98, 65, 142]
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude "1"
Frequency "12/(2*pi)"
Phase "0.001"
SampleMode "Discrete"
OutComplex "Real"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "1/1000"
SamplesPerFrame "1"
additionalParams on
allowOverrides on
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
ResetState "Restart at time zero"
}
Block {
BlockType Reference
Name "Sine Wave1"
Ports [0, 1]
Position [115, 223, 160, 267]
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude "1"
Frequency "12/(2*pi)"
Phase "0.002"
SampleMode "Discrete"
OutComplex "Real"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "1/1000"
SamplesPerFrame "1"
additionalParams on
allowOverrides on
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
ResetState "Restart at time zero"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [100, 110, 120, 130]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [385, 225, 405, 245]
ShowName off
IconShape "round"
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [370, 75, 390, 95]
ShowName off
IconShape "round"
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [30, 0]
Branch {
Points [20, 0; 10, 0]
Branch {
DstBlock "LMS Filter"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Sum2"
DstPort 1
}
}
Branch {
Points [0, -90]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "LMS Filter"
DstPort 2
}
Branch {
DstBlock "Scope5"
DstPort 1
}
}
Line {
SrcBlock "LMS Filter"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [0, 60]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [65, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 175]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "LMS Filter"
SrcPort 2
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Gaussian Noise\nGenerator"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -35]
DstBlock "Scope3"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 2
}
Branch {
Points [285, 0]
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Scope6"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -