⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lms(new).mdl

📁 使用simulink对LMS算法进行多径仿真
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 43, 55, 57]
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Digital Filter"
	      Ports		      [1, 1]
	      Position		      [75, 28, 145, 72]
	      SourceBlock	      "dsparch4/Digital Filter"
	      SourceType	      "Digital Filter"
	      TypePopup		      "FIR (all zeros)"
	      IIRFiltStruct	      "Direct form II transposed"
	      AllPoleFiltStruct	      "Direct form"
	      FIRFiltStruct	      "Direct form"
	      CoeffSource	      "Specify via dialog"
	      NumCoeffs		      "b"
	      DenCoeffs		      "[1 0.1]"
	      BiQuadCoeffs	      "[1 0.3 0.4 1 0.1 0.2]"
	      LatticeCoeffs	      "[0.2 0.4]"
	      denIgnore		      on
	      FiltPerSampPopup	      "One filter per frame"
	      IC		      "0"
	      ICnum		      "0"
	      ICden		      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [175, 43, 205, 57]
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Digital Filter"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Digital Filter"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Dispersive\nChannel3"
	  Ports			  [1, 1]
	  Position		  [140, 276, 185, 314]
	  TreatAsAtomicUnit	  off
	  MaskType		  "Simple Dispersive Channel"
	  MaskDescription	  "Dispersive channel filter."
	  MaskHelp		  "Dispersive channel filter"
	  MaskPromptString	  "Dispersion:"
	  MaskStyleString	  "edit"
	  MaskTunableValueString  "on"
	  MaskEnableString	  "on"
	  MaskVisibilityString	  "on"
	  MaskToolTipString	  "on"
	  MaskVariables		  "d=@1;"
	  MaskInitialization	  "b=.5*(1+cos(2*pi./d.*[-1 0 1])); h=log(abs("
"freqz(b,1,64)));"
	  MaskDisplay		  "plot(h)"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "3.5"
	  System {
	    Name		    "Dispersive\nChannel3"
	    Location		    [9, 112, 368, 230]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 43, 55, 57]
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Digital Filter"
	      Ports		      [1, 1]
	      Position		      [75, 28, 145, 72]
	      SourceBlock	      "dsparch4/Digital Filter"
	      SourceType	      "Digital Filter"
	      TypePopup		      "FIR (all zeros)"
	      IIRFiltStruct	      "Direct form II transposed"
	      AllPoleFiltStruct	      "Direct form"
	      FIRFiltStruct	      "Direct form"
	      CoeffSource	      "Specify via dialog"
	      NumCoeffs		      "b"
	      DenCoeffs		      "[1 0.1]"
	      BiQuadCoeffs	      "[1 0.3 0.4 1 0.1 0.2]"
	      LatticeCoeffs	      "[0.2 0.4]"
	      denIgnore		      on
	      FiltPerSampPopup	      "One filter per frame"
	      IC		      "0"
	      ICnum		      "0"
	      ICden		      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [175, 43, 205, 57]
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Digital Filter"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Digital Filter"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  MultiPortSwitch
	  Name			  "Multiport\nSwitch"
	  Ports			  [5, 1]
	  Position		  [255, 91, 305, 179]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Signal From\nWorkspace"
	  Ports			  [0, 1]
	  Position		  [15, 28, 70, 62]
	  SourceBlock		  "dspsrcs4/Signal From\nWorkspace"
	  SourceType		  "Signal From Workspace"
	  X			  "[ones(1,1000) ones(1,1000).*2 ones(1,1000)."
"*3 ones(1,1000).*4]'"
	  Ts			  "1e-5"
	  nsamps		  "1"
	  OutputAfterFinalValue	  "Cyclic repetition"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [375, 128, 405, 142]
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [50, 0]
	  Branch {
	    Points		    [0, -30]
	    Branch {
	      Points		      [0, -50]
	      DstBlock		      "Dispersive\nChannel"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "Dispersive\nChannel1"
	      DstPort		      1
	    }
	  }
	  Branch {
	    Points		    [0, 30]
	    Branch {
	      DstBlock		      "Dispersive\nChannel2"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 65]
	      DstBlock		      "Dispersive\nChannel3"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Dispersive\nChannel3"
	  SrcPort		  1
	  Points		  [50, 0]
	  DstBlock		  "Multiport\nSwitch"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "Dispersive\nChannel"
	  SrcPort		  1
	  DstBlock		  "Multiport\nSwitch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Dispersive\nChannel1"
	  SrcPort		  1
	  Points		  [15, 0; 0, -35]
	  DstBlock		  "Multiport\nSwitch"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Dispersive\nChannel2"
	  SrcPort		  1
	  Points		  [25, 0; 0, -80]
	  DstBlock		  "Multiport\nSwitch"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Multiport\nSwitch"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Signal From\nWorkspace"
	  SrcPort		  1
	  Points		  [165, 0]
	  DstBlock		  "Multiport\nSwitch"
	  DstPort		  1
	}
      }
    }
    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		      "|+-"
    }
    Line {
      SrcBlock		      "LMS\nAdaptive Filter"
      SrcPort		      2
      Points		      [0, 0; 15, 0]
      Branch {
	DstBlock		"Equalizer\nResponse"
	DstPort			1
      }
      Branch {
	Points			[0, 90]
	DstBlock		"Flip"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Bernoulli Binary\nGenerator"
      SrcPort		      1
      DstBlock		      "Relay"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Noise"
      SrcPort		      1
      Points		      [40, 0]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      Labels		      [2, 0]
      SrcBlock		      "Sum1"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	DstBlock		"Math\nfunctions"
	DstPort			1
      }
      Branch {
	Points			[0, 30; -135, 0]
	DstBlock		"LMS\nAdaptive Filter"
	DstPort			2
      }
    }
    Line {
      Name		      "Signal+Noise"
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	DstBlock		"LMS\nAdaptive Filter"
	DstPort			1
      }
      Branch {
	Points			[0, -90]
	Branch {
	  Labels		  [-1, 1]
	  Points		  [0, -15]
	  DstBlock		  "Results"
	  DstPort		  1
	}
	Branch {
	  Points		  [10, 0; 0, 295]
	  DstBlock		  "Error Rate\nCalculation"
	  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, -35]
	DstBlock		"Results"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Relay"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Points			[0, -60]
	DstBlock		"Integer Delay"
	DstPort			1
      }
      Branch {
	DstBlock		"Subsystem"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "LMS\nAdaptive Filter"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Sign"
	DstPort			1
      }
      Branch {
	DstBlock		"Sum1"
	DstPort			2
      }
    }
    Line {
      Name		      "Squared\nerror"
      Labels		      [0, 0]
      SrcBlock		      "Math\nfunctions"
      SrcPort		      1
      Points		      [25, 0; 0, -25]
      DstBlock		      "Results"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Sign"
      SrcPort		      1
      Points		      [40, 0]
      Branch {
	Points			[0, -75]
	DstBlock		"Results"
	DstPort			4
      }
      Branch {
	Points			[0, 230]
	DstBlock		"Error Rate\nCalculation"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Flip"
      SrcPort		      1
      DstBlock		      "Filter \nTaps"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Error Rate\nCalculation"
      SrcPort		      1
      DstBlock		      "Display"
      DstPort		      1
    }
    Annotation {
      Name		      "LMS Adaptive Equalization "
      Position		      [332, 21]
      FontName		      "MS Sans Serif"
      FontSize		      14
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -