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

📄 dspsdadc2.mdl

📁 ADC 模数转换matlab建模程序~~
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      Realization	      "auto"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      ToWorkspace
      VariableName	      "simulink_output"
      MaxDataPoints	      "1000"
      Decimation	      "1"
      SampleTime	      "0"
      FixptAsFi		      off
    }
    Block {
      BlockType		      ZeroOrderHold
      SampleTime	      "1"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "dspsdadc2"
    Location		    [7, 110, 1016, 415]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "135"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Signum
      Name		      "1-bit\nquantizer"
      Position		      [325, 89, 360, 121]
    }
    Block {
      BlockType		      Reference
      Name		      "Analog\nFilter Design"
      Ports		      [1, 1]
      Position		      [90, 78, 130, 132]
      SourceBlock	      "dsparch4/Analog\nFilter Design"
      SourceType	      "Analog Filter Design"
      method		      "Butterworth"
      filttype		      "Lowpass"
      N			      "5"
      Wlo		      "2*pi*400"
      Whi		      "80"
      Rp		      "2"
      Rs		      "40"
      Port {
	PortNumber		1
	Name			"Analog\nInput"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      BusCreator
      Name		      "Bus\nCreator"
      Ports		      [2, 1]
      Position		      [660, 26, 665, 64]
      ShowName		      off
      DialogController	      "Simulink.DDGSource_Bus"
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Reference
      Name		      "FIR\nDecimation\nto 32 khz"
      Ports		      [1, 1]
      Position		      [520, 86, 565, 124]
      DialogController	      "dspDDGCreate"
      DialogControllerArgs    "DataTag0"
      SourceBlock	      "dspmlti4/FIR\nDecimation"
      SourceType	      "FIR Decimation"
      h			      "fir1(31, 0.15)"
      D			      "4"
      framing		      "Maintain input frame size"
      outputBufInitCond	      "0"
      additionalParams	      off
      allowOverrides	      on
      firstCoeffMode	      "Same word length as input"
      firstCoeffWordLength    "16"
      firstCoeffFracLength    "15"
      outputMode	      "Same as accumulator"
      outputWordLength	      "16"
      outputFracLength	      "15"
      accumMode		      "Inherit via internal rule"
      accumWordLength	      "32"
      accumFracLength	      "30"
      prodOutputMode	      "Inherit via internal rule"
      prodOutputWordLength    "32"
      prodOutputFracLength    "30"
      roundingMode	      "Floor"
      overflowMode	      off
      LockScale		      off
    }
    Block {
      BlockType		      Reference
      Name		      "FIR\nDecimation\nto 8kHz"
      Ports		      [1, 1]
      Position		      [590, 86, 635, 124]
      DialogController	      "dspDDGCreate"
      DialogControllerArgs    "DataTag1"
      SourceBlock	      "dspmlti4/FIR\nDecimation"
      SourceType	      "FIR Decimation"
      h			      "fir1(31, 0.15)"
      D			      "4"
      framing		      "Maintain input frame size"
      outputBufInitCond	      "0"
      additionalParams	      off
      allowOverrides	      on
      firstCoeffMode	      "Same word length as input"
      firstCoeffWordLength    "16"
      firstCoeffFracLength    "15"
      outputMode	      "Same as accumulator"
      outputWordLength	      "16"
      outputFracLength	      "15"
      accumMode		      "Inherit via internal rule"
      accumWordLength	      "32"
      accumFracLength	      "30"
      prodOutputMode	      "Inherit via internal rule"
      prodOutputWordLength    "32"
      prodOutputFracLength    "30"
      roundingMode	      "Floor"
      overflowMode	      off
      LockScale		      off
      Port {
	PortNumber		1
	Name			"magenta=adc_output"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      Reference
      Name		      "FIR\nDecimation\nto128kHz"
      Ports		      [1, 1]
      Position		      [450, 86, 495, 124]
      DialogController	      "dspDDGCreate"
      DialogControllerArgs    "DataTag2"
      SourceBlock	      "dspmlti4/FIR\nDecimation"
      SourceType	      "FIR Decimation"
      h			      "fir1(31, 0.15)"
      D			      "4"
      framing		      "Maintain input frame size"
      outputBufInitCond	      "0"
      additionalParams	      off
      allowOverrides	      on
      firstCoeffMode	      "Same word length as input"
      firstCoeffWordLength    "16"
      firstCoeffFracLength    "15"
      outputMode	      "Same as accumulator"
      outputWordLength	      "16"
      outputFracLength	      "15"
      accumMode		      "Inherit via internal rule"
      accumWordLength	      "32"
      accumFracLength	      "30"
      prodOutputMode	      "Inherit via internal rule"
      prodOutputWordLength    "32"
      prodOutputFracLength    "30"
      roundingMode	      "Floor"
      overflowMode	      off
      LockScale		      off
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator"
      Ports		      [1, 1]
      Position		      [270, 89, 300, 121]
      IgnoreLimit	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Results"
      Ports		      [1]
      Position		      [690, 23, 720, 67]
      ShowName		      off
      Location		      [78, 506, 928, 704]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.015"
      YMin		      "-1"
      YMax		      "1"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Sample\nat 512kHz"
      Position		      [390, 89, 425, 121]
      SampleTime	      "1/512000"
      Port {
	PortNumber		1
	Name			"1-bit Error Signal"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Sample\nat 8KHz"
      Position		      [225, 19, 260, 51]
      SampleTime	      "1/8000"
    }
    Block {
      BlockType		      SignalGenerator
      Name		      "Signal\nGenerator"
      Ports		      [0, 1]
      Position		      [15, 78, 65, 132]
      WaveForm		      "square"
      Amplitude		      "0.75"
      Frequency		      "80"
    }
    Block {
      BlockType		      SubSystem
      Name		      "SubSystem"
      Ports		      []
      Position		      [26, 177, 185, 218]
      ShowName		      off
      OpenFcn		      "plot_signal"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskDisplay	      "disp('Plot signals using MATLAB.\\n Note the mi"
"nimum time step size.')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"SubSystem"
	Location		[148, 182, 646, 482]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [220, 90, 250, 120]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [245, 175, 305, 205]
      VariableName	      "analog"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Structure With Time"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace1"
      Position		      [450, 175, 490, 205]
      VariableName	      "digital1"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Structure With Time"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace2"
      Position		      [535, 176, 570, 204]
      VariableName	      "digital2"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Structure With Time"
    }
    Block {
      BlockType		      Reference
      Name		      "delay 5 samples"
      Ports		      [1, 1]
      Position		      [290, 17, 335, 53]
      SourceBlock	      "dspobslib/Integer Delay"
      SourceType	      "Integer Delay"
      delay		      "5"
      ic		      "0"
      reset_popup	      "None"
      Port {
	PortNumber		1
	Name			"yellow=adc input"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Line {
      SrcBlock		      "FIR\nDecimation\nto 32 khz"
      SrcPort		      1
      Points		      [0, 0]
      DstBlock		      "FIR\nDecimation\nto 8kHz"
      DstPort		      1
    }
    Line {
      Name		      "magenta=adc_output"
      Labels		      [-1, 0]
      SrcBlock		      "FIR\nDecimation\nto 8kHz"
      SrcPort		      1
      Points		      [5, 0]
      DstBlock		      "Bus\nCreator"
      DstPort		      2
    }
    Line {
      Name		      "Analog\nInput"
      Labels		      [0, 0]
      SrcBlock		      "Analog\nFilter Design"
      SrcPort		      1
      Points		      [55, 0]
      Branch {
	Points			[0, 0]
	Branch {
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 85]
	  DstBlock		  "To Workspace"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, -70]
	DstBlock		"Sample\nat 8KHz"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Signal\nGenerator"
      SrcPort		      1
      DstBlock		      "Analog\nFilter Design"
      DstPort		      1
    }
    Line {
      SrcBlock		      "1-bit\nquantizer"
      SrcPort		      1
      Points		      [0, 0]
      DstBlock		      "Sample\nat 512kHz"
      DstPort		      1
    }
    Line {
      Name		      "1-bit Error Signal"
      SrcBlock		      "Sample\nat 512kHz"
      SrcPort		      1
      Points		      [0, 0; 15, 0]
      Branch {
	DstBlock		"FIR\nDecimation\nto128kHz"
	DstPort			1
      }
      Branch {
	Points			[-10, 0; 0, 55]
	Branch {
	  Points		  [-200, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Branch {
	  DstBlock		  "To Workspace1"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Integrator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "FIR\nDecimation\nto128kHz"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"FIR\nDecimation\nto 32 khz"
	DstPort			1
      }
      Branch {
	Points			[0, 85]
	DstBlock		"To Workspace2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Integrator"
      SrcPort		      1
      DstBlock		      "1-bit\nquantizer"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Bus\nCreator"
      SrcPort		      1
      Points		      [0, 0]
      DstBlock		      "Results"
      DstPort		      1
    }
    Line {
      Labels		      [0, 0]
      SrcBlock		      "Sample\nat 8KHz"
      SrcPort		      1
      Points		      [0, 0]
      DstBlock		      "delay 5 samples"
      DstPort		      1
    }
    Line {
      Name		      "yellow=adc input"
      Labels		      [0, 0]
      SrcBlock		      "delay 5 samples"
      SrcPort		      1
      DstBlock		      "Bus\nCreator"
      DstPort		      1
    }
  }
}
MatData {
  NumRecords		  3
  DataRecord {
    Tag			    DataTag2
    Data		    "  %)30     .    <     8    (     0         %    "
"\"     $    !     0         .    0     8    (    !          %    \"     $    "
",     0         0    #    $9)4D1E8TEN=&5R<      "
  }
  DataRecord {
    Tag			    DataTag1
    Data		    "  %)30     .    <     8    (     0         %    "
"\"     $    !     0         .    0     8    (    !          %    \"     $    "
",     0         0    #    $9)4D1E8TEN=&5R<      "
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    <     8    (     0         %    "
"\"     $    !     0         .    0     8    (    !          %    \"     $    "
",     0         0    #    $9)4D1E8TEN=&5R<      "
  }
}

⌨️ 快捷键说明

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