📄 soft_rad.mdl
字号:
Name "Channel model"
Ports [1, 1]
Position [220, 64, 265, 96]
SourceBlock "dsparch3/Direct-Form II\nTranspose Filter"
SourceType "Direct-Form II Transpose Filter"
num "[0.02+0.1*j -0.02+0.08*j 1 0.02-0.05*j 0.01-0.0"
"01*j]"
den "1"
ic "0"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [110, 315, 155, 350]
Orientation "left"
ShowName off
Output "Real and imag"
}
Block {
BlockType SubSystem
Name "Constellation"
Ports [2]
Position [15, 316, 80, 349]
Orientation "left"
CopyFcn "sfunxy([],[],[],'CopyBlock')"
DeleteFcn "sfunxy([],[],[],'DeleteBlock')"
LoadFcn "sfunxy([],[],[],'LoadBlock')"
StartFcn "sfunxy([],[],[],'Start')"
StopFcn "sfunxy([],[],[],'Stop')"
NameChangeFcn "sfunxy([],[],[],'NameChange')"
TreatAsAtomicUnit off
MaskType "My XY scope."
MaskDescription "XY scope using MATLAB graph window. First inpu"
"t is used as time base. Enter plotting ranges."
MaskHelp "This block can be used to explore limit cycles."
" Look at the m-file sfunxy.m to see how it works."
MaskPromptString "x-min:|x-max:|y-min:|y-max:|Refresh rate|Line/M"
"arker style|Sample time:"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on"
MaskCallbackString "||||||"
MaskEnableString "on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,"
MaskVariables "xmin=@1;xmax=@2;ymin=@3;ymax=@4;refresh=@5;styl"
"e=@6;st=@7;"
MaskDisplay "plot([.05 .95 .95 .05 .05],[.45 .45 .95 .95 .45"
"], 0.5+cos(0:0.1:2*pi)*0.3,0.7+sin(0:0.1:2*pi)*0.2)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "normalized"
MaskValueString "-1.5|1.5|-1.5|1.5|500|'*'|-1"
System {
Name "Constellation"
Location [96, 173, 440, 283]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "x"
Position [25, 27, 55, 43]
}
Block {
BlockType Inport
Name "y"
Position [25, 77, 55, 93]
Port "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [105, 46, 135, 79]
ShowName off
Inputs "2"
}
Block {
BlockType "S-Function"
Name "sfunxy"
Ports [1]
Position [175, 55, 225, 75]
ShowName off
FunctionName "my_sfunxy"
Parameters "[xmin xmax ymin ymax],refresh,style,st"
}
Line {
SrcBlock "y"
SrcPort 1
Points [15, 0; 0, -15]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "x"
SrcPort 1
Points [15, 0; 0, 20]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "sfunxy"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Discrete-Time\nEye and Scatter\nDiagrams"
Ports [1]
Position [170, 220, 255, 270]
Orientation "left"
SourceBlock "commblksobsolete/Discrete-Time\nEye and Scatter"
"\nDiagrams"
SourceType "Discrete-Time Eye and Scatter Diagrams"
time_range "2*2e-7"
time_offset "0"
time_decision "8/40e6"
boundary "[-1.5 1.5]"
kept_length "5"
diagram_type "Eye Diagram"
eye_line "b-/r-"
scatter_line "b."
sample_time "1/40e6"
}
Block {
BlockType Reference
Name "Downsample"
Ports [1, 1]
Position [300, 338, 335, 372]
Orientation "left"
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "4"
phase "2"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
}
Block {
BlockType SubSystem
Name "Equalizer taps"
Ports [1]
Position [20, 366, 70, 404]
Orientation "left"
TreatAsAtomicUnit off
System {
Name "Equalizer taps"
Location [244, 379, 663, 668]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 93, 55, 107]
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag1"
Ports [1, 2]
Position [80, 83, 110, 112]
ShowName off
Output "Real and imag"
}
Block {
BlockType Reference
Name "Flip"
Ports [1, 1]
Position [155, 125, 190, 155]
ShowName off
SourceBlock "dspvect2/Flip"
SourceType "Flip"
}
Block {
BlockType Reference
Name "Flip1"
Ports [1, 1]
Position [150, 35, 185, 65]
ShowName off
SourceBlock "dspvect2/Flip"
SourceType "Flip"
}
Block {
BlockType Reference
Name "Imaginary Taps FB"
Ports [1]
Position [215, 115, 250, 165]
SourceBlock "dspsnks2/Time\nFrame Scope"
SourceType "Time Frame Scope"
Domain "User-defined"
XLabel "Samples"
XUnits "Hertz"
XRange "[0...Fs/2]"
XIncr "1"
YLabel "Equalizer Coefficients"
YUnits "dB"
HorizSpan "1"
NChans "1"
AxisParams off
YMin "-0.0619548965272321"
YMax "0.0238965426488054"
FigPos "[36 33 388 285]"
AxisGrid on
AxisZoom on
FrameNumber off
AxisLegend off
Memory off
LineParams off
LineColors "[0 0 1]"
LineStyles "--"
LineMarkers "o"
}
Block {
BlockType Reference
Name "Real taps FB"
Ports [1]
Position [215, 25, 250, 75]
SourceBlock "dspsnks2/Time\nFrame Scope"
SourceType "Time Frame Scope"
Domain "User-defined"
XLabel "Samples"
XUnits "Hertz"
XRange "[0...Fs/2]"
XIncr "1"
YLabel "Equalizer Coefficients"
YUnits "dB"
HorizSpan "1"
NChans "1"
AxisParams off
YMin "-0.0265409726572184"
YMax "1.02759406003656"
FigPos "[434 36 388 285]"
AxisGrid on
AxisZoom on
FrameNumber off
AxisLegend off
Memory off
LineParams off
LineColors "[0 0 1]"
LineStyles "--"
LineMarkers "o"
}
Line {
SrcBlock "Flip1"
SrcPort 1
DstBlock "Real taps FB"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
Points [0, -40]
DstBlock "Flip1"
DstPort 1
}
Line {
SrcBlock "Flip"
SrcPort 1
DstBlock "Imaginary Taps FB"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
Points [5, 0; 0, 35]
DstBlock "Flip"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "FSE Equalizer"
Ports [1, 2]
Position [175, 319, 280, 386]
Orientation "left"
TreatAsAtomicUnit off
System {
Name "FSE Equalizer"
Location [275, 197, 944, 499]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Probe"
Position [25, 83, 55, 97]
}
Block {
BlockType Reference
Name "Downsample1"
Ports [1, 1]
Position [220, 73, 255, 107]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "2"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
}
Block {
BlockType Reference
Name "LMS\nAdaptive Filter"
Ports [2, 2]
Position [100, 76, 185, 134]
LinkData {
BlockName "LMS\nCoefficient Update/Normalization/Nor"
"malization"
DialogParameters {
Inputs "1"
}
}
SourceBlock "dspobslib/LMS\nAdaptive Filter"
SourceType "LMS Adaptive Filter"
n "23"
mu "0.0005"
ic "[zeros(1,11), 1, zeros(1,11)]'"
leakage "1.0"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -