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

📄 homework_3.mdl

📁 设计一M阶自适应回波抵消器
💻 MDL
📖 第 1 页 / 共 3 页
字号:
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      "FromPortIcon"
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit	      off
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      CollapseMode	      "All dimensions"
      CollapseDim	      "1"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Terminator
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    UseDisplayTextAsClickCallback off
  }
  LineDefaults {
    FontName		    "Arial"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "homework_3"
    Location		    [2, 74, 1278, 753]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
    TiledPageScale	    1
    ShowPageBoundaries	    off
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Sum
      Name		      "Add"
      Ports		      [3, 1]
      Position		      [540, 94, 570, 126]
      Inputs		      "+++"
      CollapseMode	      "All dimensions"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutScaling	      "2^-10"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      BusCreator
      Name		      "Bus\nCreator"
      Ports		      [10, 1]
      Position		      [328, 550, 1197, 570]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ShowName		      off
      Inputs		      "10"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 2]
      Position		      [195, 91, 200, 129]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Embedded\nMATLAB Function"
      Ports		      [3, 1]
      Position		      [855, 306, 925, 354]
      Orientation	      "left"
      NamePlacement	      "alternate"
      PermitHierarchicalResolution "ExplicitOnly"
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Array {
	Type			"Handle"
	Dimension		0
	PropName		"AvailSigsLoadSave"
      }
      MaskHideContents	      off
      MaskType		      "Stateflow"
      MaskDescription	      "Embedded MATLAB block"
      MaskDisplay	      "disp('fcn');"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Embedded\nMATLAB Function"
	Location		[257, 457, 812, 717]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "error"
	  Position		  [20, 101, 40, 119]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "weight"
	  Position		  [20, 136, 40, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "input"
	  Position		  [20, 171, 40, 189]
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 180, 320, 220]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function homework_3 2"
	  Ports			  [3, 2]
	  Position		  [180, 100, 230, 180]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[3 2]"
	  Port {
	    PortNumber		    2
	    Name		    "step"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 191, 480, 209]
	}
	Block {
	  BlockType		  Outport
	  Name			  "step"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 80]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "error"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  Name			  "step"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "step"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "weight"
	  SrcPort		  1
	  Points		  [120, 0]
	  DstBlock		  " SFunction "
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "input"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  3
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "From Wave File"
      Ports		      [0, 1]
      Position		      [35, 79, 165, 141]
      SourceBlock	      "dspwin32/From Wave\nFile"
      SourceType	      "From Wave File"
      FileName		      "source.wav"
      SamplesPerFrame	      "1"
      MinBufSize	      "1"
      dType		      "double"
      bLoop		      on
      timesToPlay	      "30000"
      restartMode	      "immediately after last sample"
      firstSampleOutput	      off
      lastSampleOutput	      off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [425, 93, 475, 127]
      Gain		      "-0.7"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      Position		      [445, 158, 495, 192]
      Gain		      "0.1"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay"
      Ports		      [1, 1]
      Position		      [370, 93, 405, 127]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay1"
      Ports		      [1, 1]
      Position		      [380, 158, 415, 192]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "8"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay10"
      Ports		      [1, 1]
      Position		      [670, 418, 705, 452]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay11"
      Ports		      [1, 1]
      Position		      [600, 33, 635, 67]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay12"
      Ports		      [1, 1]
      Position		      [770, 313, 805, 347]
      Orientation	      "left"
      NamePlacement	      "alternate"
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "0.0001"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay2"
      Ports		      [1, 1]
      Position		      [405, 418, 440, 452]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay3"
      Ports		      [1, 1]
      Position		      [1085, 418, 1120, 452]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay4"
      Ports		      [1, 1]
      Position		      [500, 418, 535, 452]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay5"
      Ports		      [1, 1]
      Position		      [1005, 418, 1040, 452]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay6"
      Ports		      [1, 1]
      Position		      [920, 418, 955, 452]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay7"
      Ports		      [1, 1]
      Position		      [835, 418, 870, 452]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay8"
      Ports		      [1, 1]
      Position		      [750, 418, 785, 452]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay9"
      Ports		      [1, 1]
      Position		      [580, 418, 615, 452]
      SourceBlock	      "simulink/Discrete/Integer Delay"
      SourceType	      "Integer Delay"
      vinit		      "0.0"
      samptime		      "-1"
      NumDelays		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "LMS Filter"
      Ports		      [3, 3]
      Position		      [835, 97, 940, 183]
      DialogController	      "dspDDGCreate"
      DialogControllerArgs    "DataTag0"
      SourceBlock	      "dspadpt3/LMS Filter"
      SourceType	      "LMS Filter"
      ShowPortLabels	      off
      Algo		      "Normalized LMS"
      L			      "10"
      stepflag		      "Input port"
      mu		      "0.1"
      leakage		      "1.0"
      ic		      "0"
      Adapt		      off
      resetflag		      "None"
      weights		      on
      firstCoeffMode	      "Same word length as first input"
      firstCoeffWordLength    "16"
      firstCoeffFracLength    "15"
      secondCoeffMode	      "User-defined"
      secondCoeffWordLength   "2"
      secondCoeffFracLength   "15"
      accumMode		      "Same as first input"
      accumWordLength	      "32"
      accumFracLength	      "20"
      accum2Mode	      "User-defined"
      accum2FracLength	      "20"
      prodOutputMode	      "Same as first input"
      prodOutputWordLength    "32"
      prodOutputFracLength    "20"
      prodOutput2Mode	      "User-defined"
      prodOutput2FracLength   "20"
      prodOutput3Mode	      "User-defined"
      prodOutput3FracLength   "20"
      prodOutput4Mode	      "User-defined"
      prodOutput4FracLength   "20"
      quotientMode	      "User-defined"
      quotientFracLength      "20"
      memoryMode	      "Same as first input"
      memoryWordLength	      "16"
      memoryFracLength	      "15"
      roundingMode	      "Floor"
      overflowMode	      off
      addnparflag	      off
      LockScale		      off
      Port {
	PortNumber		2
	Name			"error"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Scope0"
      Ports		      [1]
      Position		      [1060, 34, 1090, 66]
      Floating		      off
      Location		      [755, 136, 1079, 375]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-1"
      YMax		      "1"
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "5000000"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [1]
      Position		      [385, 239, 415, 271]
      Orientation	      "left"
      NamePlacement	      "alternate"
      Floating		      off
      Location		      [410, 78, 734, 317]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-1"
      YMax		      "1"
      SaveName		      "inputdata"
      DataFormat	      "Array"
      MaxDataPoints	      "50000000"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [1]
      Position		      [1065, 94, 1095, 126]
      Floating		      off
      Location		      [681, 391, 1005, 630]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-1.25"
      YMax		      "1.25"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "5000000"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope

⌨️ 快捷键说明

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