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

📄 rf_bp_1.mdl

📁 PLLmatlab for simulink
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Math
      Operator		      "exp"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      "M-S-Function"
      MFile		      "mlfile"
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Probe
      ProbeWidth	      on
      ProbeSampleTime	      on
      ProbeComplexSignal      on
      ProbeSignalDimensions   off
      ProbeFramedSignal	      off
      ProbeWidthDataType      "double"
      ProbeSampleTimeDataType "double"
      ProbeComplexityDataType "double"
      ProbeDimensionsDataType "double"
      ProbeFrameDataType      "double"
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      RateTransition
      Integrity		      on
      Deterministic	      on
      X0		      "0"
      OutPortSampleTime	      "-1"
    }
    Block {
      BlockType		      RealImagToComplex
      Input		      "Real and imag"
      ConstantPart	      "0"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      Sin
      SineType		      "Time based"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Bias		      "0"
      Frequency		      "1"
      Phase		      "0"
      Samples		      "10"
      Offset		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      StateSpace
      A			      "1"
      B			      "1"
      C			      "1"
      D			      "1"
      X0		      "0"
      AbsoluteTolerance	      "auto"
      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		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Terminator
    }
    Block {
      BlockType		      UniformRandomNumber
      Minimum		      "-1"
      Maximum		      "1"
      Seed		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
    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		    "rf_bp_1"
    Location		    [33, 87, 608, 376]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "106"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "BPF Magnitude dB"
      Ports		      [1]
      Position		      [460, 105, 495, 155]
      SourceBlock	      "dspsnks4/Vector\nScope"
      SourceType	      "Vector Scope"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[33 343 372 236]"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[-Fs/2...Fs/2]"
      InheritXIncr	      on
      XIncr		      "2*Fs"
      XLabel		      "Time"
      YUnits		      "dB"
      YMin		      "-100"
      YMax		      "10"
      YLabel		      "dB"
      LineProperties	      off
      LineColors	      "[0 0 1]|[1 0 0]"
      ShowPortLabels	      off
    }
    Block {
      BlockType		      Reference
      Name		      "BPF Phase in Degrees"
      Ports		      [1]
      Position		      [395, 135, 430, 185]
      SourceBlock	      "dspsnks4/Vector\nScope"
      SourceType	      "Vector Scope"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[33 57 372 236]"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[-Fs/2...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1"
      XLabel		      "Frequency"
      YUnits		      "Magnitude"
      YMin		      "-965.062641972521"
      YMax		      "994.444698412878"
      YLabel		      "Phase in Degrees"
      LineProperties	      off
      LineColors	      "[0 0 1]"
      ShowPortLabels	      off
    }
    Block {
      BlockType		      Reference
      Name		      "Band Pass\nFilter Design"
      Ports		      [1, 1]
      Position		      [40, 122, 105, 178]
      SourceBlock	      "dsparch4/Analog\nFilter Design"
      SourceType	      "Analog Filter Design"
      method		      "Elliptic"
      filttype		      "Bandpass"
      N			      "6"
      Wlo		      "18e6*2*pi"
      Whi		      "22e6*2*pi"
      Rp		      "2"
      Rs		      "80"
    }
    Block {
      BlockType		      SubSystem
      Name		      "BandPass Transfer Function"
      Description	      "Spectrum Analyzer"
      Ports		      [2, 3]
      Position		      [150, 88, 315, 172]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskPromptString	      "Bandwidth|Center Freq|FFT Length (power of 2)|A"
"veraging Factor (>=1)"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString	      "on,on,on,on"
      MaskVarAliasString      ",,,"
      MaskVariables	      "BW=@1;Fc=@2;NFFT=@3;Avg_fac=@4;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "14e6|20e6|1024|100"
      MaskTabNameString	      ",,,"
      System {
	Name			"BandPass Transfer Function"
	Location		[22, 78, 801, 633]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Reference"
	  Position		  [20, 102, 60, 118]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Response"
	  Position		  [20, 307, 60, 323]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  RealImagToComplex
	  Name			  "Real-Imag to\nComplex1"
	  Ports			  [2, 1]
	  Position		  [370, 298, 400, 327]
	  Input			  "Real and imag"
	}
	Block {
	  BlockType		  RealImagToComplex
	  Name			  "Real-Imag to\nComplex2"
	  Ports			  [2, 1]
	  Position		  [365, 103, 395, 132]
	  Input			  "Real and imag"
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave1"
	  Ports			  [0, 1]
	  Position		  [25, 35, 55, 65]
	  ShowName		  off
	  SineType		  "Time based"
	  Frequency		  "2*pi*(Fc)"
	  Phase			  "-pi/2"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave2"
	  Ports			  [0, 1]
	  Position		  [25, 160, 55, 190]
	  ShowName		  off
	  SineType		  "Time based"
	  Frequency		  "2*pi*(Fc)"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Transfer Function"
	  Ports			  [2, 2]
	  Position		  [560, 154, 655, 276]
	  BackgroundColor	  "gray"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskPromptString	  "FFT length (power of 2):|Spectral Averaging"
" Factor (>=1):|Percentage of  Alias Free Data  (<=100)|Unwrap Phase"
	  MaskStyleString	  "edit,edit,edit,checkbox"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskVariables		  "NFFT=@1;Navg=@2;pcnt=@3;unwrap_flag=@4;"
	  MaskDisplay		  "disp('Transfer Function \\n Estimation')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "NFFT|Avg_fac|100/1.28|on"
	  MaskTabNameString	  ",,,"
	  System {
	    Name		    "Transfer Function"
	    Location		    [8, 82, 1249, 438]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "IN"
	      Position		      [15, 48, 45, 62]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "OUT"
	      Position		      [15, 128, 45, 142]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Buffer"
	      Ports		      [1, 1]
	      Position		      [70, 30, 120, 80]
	      ShowName		      off
	      SourceBlock	      "dspbuff3/Buffer"
	      SourceType	      "Buffer"
	      N			      "NFFT"
	      V			      "NFFT/2"
	      ic		      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Buffer1"
	      Ports		      [1, 1]
	      Position		      [75, 110, 125, 160]
	      ShowName		      off
	      SourceBlock	      "dspbuff3/Buffer"
	      SourceType	      "Buffer"
	      N			      "NFFT"
	      V			      "NFFT/2"
	      ic		      "0"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Complex Range"
	      Position		      [270, 175, 300, 205]
	      Value		      "[1:round(NFFT*pcnt/200),round(1+NFFT-NF"
"FT*pcnt/200):NFFT];"
	    }
	    Block {
	      BlockType		      ComplexToMagnitudeAngle
	      Name		      "Complex to\nMagnitude-Angle"
	      Ports		      [1, 1]
	      Position		      [870, 120, 900, 150]
	      Output		      "Angle"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Downsample1"
	      Ports		      [1, 1]
	      Position		      [325, 38, 360, 72]
	      ShowName		      off
	      SourceBlock	      "dspsigops/Downsample"
	      SourceType	      "Downsample"
	      N			      "2"
	      phase		      "0"
	      ic		      "0"
	      smode		      "Allow multirate"
	      fmode		      "Maintain input frame rate"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Downsample2"
	      Ports		      [1, 1]
	      Position		      [325, 118, 360, 152]
	      ShowName		      off
	      SourceBlock	      "dspsigops/Downsample"
	      SourceType	      "Downsample"
	      N			      "2"
	      phase		      "0"
	      ic		      "0"
	      smode		      "Allow multirate"
	      fmode		      "Maintain input frame rate"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "FFT"
	      Ports		      [1, 1]
	      Position		      [265, 38, 305, 72]
	      ShowName		      off
	      DialogController	      "dspDDGCreate"
	      DialogControllerArgs    "DataTag0"
	      SourceBlock	      "dspxfrm3/FFT"
	      SourceType	      "FFT"
	      CompMethod	      "Table lookup"
	      TableOpt		      "Speed"
	      BitRevOrder	      off
	      additionalParams	      off
	      SkipNorm		      off
	      allowOverrides	      on
	      firstCoeffMode	      "Specify word length"
	      firstCoeffWordLength    "16"
	      firstCoeffFracLength    "15"
	      outputMode	      "Same as input"
	      outputWordLength	      "16"
	      outputFracLength	      "15"
	      accumMode		      "Inherit via internal rule"
	      accumWordLength	      "32"
	      accumFracLength	      "30"
	      prodOutputMode	      "Inherit via internal rule"
	      prodOutputWordLength    "32"

⌨️ 快捷键说明

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