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

📄 lc_filt_2.mdl

📁 PLLmatlab for simulink
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      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"
	      prodOutputFracLength    "30"
	      roundingMode	      "Floor"
	      overflowMode	      off
	      LockScale		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "FFT1"
	      Ports		      [1, 1]
	      Position		      [265, 118, 305, 152]
	      ShowName		      off
	      DialogController	      "dspDDGCreate"
	      DialogControllerArgs    "DataTag1"
	      SourceBlock	      "dspxfrm3/FFT"
	      SourceType	      "FFT"
	      CompMethod	      "Table lookup"
	      TableOpt		      "Speed"
	      BitRevOrder	      off
	      additionalParams	      off
	      SkipNorm		      off
	      allowOverrides	      on
	      firstCoeffMode	      "User-defined"
	      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"
	      prodOutputFracLength    "30"
	      roundingMode	      "Floor"
	      overflowMode	      off
	      LockScale		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Filter1"
	      Ports		      [1, 1]
	      Position		      [675, 43, 745, 87]
	      ShowName		      off
	      SourceBlock	      "dsparch3/Direct-Form II\nTranspose Filt"
"er"
	      SourceType	      "Direct-Form II Transpose Filter"
	      num		      "1"
	      den		      "[Navg -(Navg-1)]"
	      ic		      "eps"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Filter2"
	      Ports		      [1, 1]
	      Position		      [675, 118, 745, 162]
	      ShowName		      off
	      SourceBlock	      "dsparch3/Direct-Form II\nTranspose Filt"
"er"
	      SourceType	      "Direct-Form II Transpose Filter"
	      num		      "1"
	      den		      "[Navg -(Navg-1)]"
	      ic		      "eps"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [1105, 185, 1135, 215]
	      Gain		      "180/pi"
	      ParameterDataTypeMode   "Inherit via internal rule"
	      OutDataTypeMode	      "Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Magnitude\nSquared"
	      Ports		      [1, 1]
	      Position		      [610, 50, 640, 80]
	      ShowName		      off
	      Operator		      "magnitude^2"
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Math\nFunction"
	      Ports		      [1, 1]
	      Position		      [555, 95, 585, 125]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Operator		      "conj"
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Math\nFunction1"
	      Ports		      [1, 1]
	      Position		      [965, 60, 995, 90]
	      ShowName		      off
	      Operator		      "magnitude^2"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Phase Unwrap"
	      Ports		      [1, 1]
	      Position		      [960, 105, 1000, 165]
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Phase Unwrap"
		Location		[195, 140, 1245, 427]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "IN"
		  Position		  [40, 73, 70, 87]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [35, 200, 65, 230]
		  Value			  "fliplr([ceil(NFFT*pcnt/200)+1:floor"
"(NFFT*pcnt/100) 1:ceil(NFFT*pcnt/200)]); "
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "Embedded\nMATLAB Function1"
		  Ports			  [1, 1]
		  Position		  [610, 67, 680, 113]
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  MaskType		  "Stateflow"
		  MaskDescription	  "Embedded MATLAB block"
		  MaskDisplay		  "disp('center_sub');"
		  MaskSelfModifiable	  on
		  MaskIconFrame		  on
		  MaskIconOpaque	  off
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		  System {
		    Name		    "Embedded\nMATLAB Function1"
		    Location		    [257, 457, 812, 717]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "u"
		    Position		    [20, 101, 40, 119]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Demux
		    Name		    " Demux "
		    Ports		    [1, 1]
		    Position		    [270, 160, 320, 200]
		    Outputs		    "1"
		    }
		    Block {
		    BlockType		    "S-Function"
		    Name		    " SFunction "
		    Tag			    "Stateflow S-Function lc_filt_2 4"
		    Ports		    [1, 2]
		    Position		    [180, 100, 230, 160]
		    FunctionName	    "sf_sfun"
		    PortCounts		    "[1 2]"
		    Port {
		    PortNumber		    2
		    Name		    "y"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    Terminator
		    Name		    " Terminator "
		    Position		    [460, 171, 480, 189]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "y"
		    Position		    [460, 101, 480, 119]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    }
		    Line {
		    SrcBlock		    " SFunction "
		    SrcPort		    1
		    Points		    [0, 65]
		    DstBlock		    " Demux "
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    " Demux "
		    SrcPort		    1
		    DstBlock		    " Terminator "
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "u"
		    SrcPort		    1
		    DstBlock		    " SFunction "
		    DstPort		    1
		    }
		    Line {
		    Name		    "y"
		    Labels		    [0, 0]
		    SrcBlock		    " SFunction "
		    SrcPort		    2
		    DstBlock		    "y"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  FrameConversion
		  Name			  "Frame Conversion"
		  Position		  [300, 70, 355, 110]
		  OutFrame		  "Frame based"
		}
		Block {
		  BlockType		  FrameConversion
		  Name			  "Frame Conversion2"
		  Position		  [505, 70, 560, 110]
		  OutFrame		  "Sample based"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Unwrap"
		  Ports			  [1, 1]
		  Position		  [410, 72, 455, 108]
		  SourceBlock		  "dspsigops/Unwrap"
		  SourceType		  "Unwrap"
		  running		  on
		  tol			  "1.9*pi"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Variable\nSelector"
		  Ports			  [2, 1]
		  Position		  [150, 68, 245, 112]
		  SourceBlock		  "dspindex/Variable\nSelector"
		  SourceType		  "Variable Selector"
		  ShowPortLabels	  on
		  rowsOrCols		  "Rows"
		  IdxMode		  "Variable"
		  Elements		  "[1 3]"
		  ZerOneIdxMode		  "One-based"
		  errmode		  "Clip Index"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Variable\nSelector2"
		  Ports			  [2, 1]
		  Position		  [755, 78, 850, 122]
		  SourceBlock		  "dspindex/Variable\nSelector"
		  SourceType		  "Variable Selector"
		  ShowPortLabels	  on
		  rowsOrCols		  "Rows"
		  IdxMode		  "Variable"
		  Elements		  "[1 3]"
		  ZerOneIdxMode		  "One-based"
		  errmode		  "Clip Index"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out1"
		  Position		  [940, 93, 970, 107]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "Embedded\nMATLAB Function1"
		  SrcPort		  1
		  DstBlock		  "Variable\nSelector2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Variable\nSelector"
		  SrcPort		  1
		  DstBlock		  "Frame Conversion"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  Points		  [0, 0; 35, 0]
		  Branch {
		    Points		    [605, 0; 0, -105]
		    DstBlock		    "Variable\nSelector2"
		    DstPort		    2
		  }
		  Branch {
		    Points		    [0, -115]
		    DstBlock		    "Variable\nSelector"
		    DstPort		    2
		  }
		}
		Line {
		  SrcBlock		  "IN"
		  SrcPort		  1
		  DstBlock		  "Variable\nSelector"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Variable\nSelector2"
		  SrcPort		  1
		  DstBlock		  "Out1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Unwrap"
		  SrcPort		  1
		  DstBlock		  "Frame Conversion2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Frame Conversion"
		  SrcPort		  1
		  DstBlock		  "Unwrap"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Frame Conversion2"
		  SrcPort		  1
		  DstBlock		  "Embedded\nMATLAB Function1"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Note the fliplr"
		  Position		  [52, 253]
		}
		Annotation {
		  Name			  "Unwrap requires frame based data"
		  Position		  [451, 53]
		}
		Annotation {
		  Name			  "Re-swap the data for display"
		  Position		  [867, 53]
		}
		Annotation {
		  Name			  "Set the DC phase value to zero"
		  Position		  [678, 58]
		}
		Annotation {
		  Name			  "This swaps the two halves of the da"
"ta vector \nso that the unwrap works."
		  Position		  [190, 48]
		}
	      }
	    }
	    Block {
	      BlockType		      Probe
	      Name		      "Probe for a complex signal"
	      Ports		      [1, 1]
	      Position		      [105, 210, 150, 250]
	      ProbeWidth	      off
	      ProbeSampleTime	      off
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [600, 121, 645, 154]
	      ShowName		      off
	      RndMeth		      "Floor"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product2"
	      Ports		      [2, 1]
	      Position		      [805, 59, 830, 86]
	      ShowName		      off
	      Inputs		      "/*"
	      RndMeth		      "Floor"
	    }
	    Block {
	      BlockType		      RateTransition
	      Name		      "Rate Transition"
	      Position		      [185, 209, 225, 251]
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Real Range"
	      Position		      [270, 250, 300, 280]
	      Value		      "1:length([1:round(NFFT*pcnt/200),round("
"1+NFFT-NFFT*pcnt/200):NFFT]);"
	    }
	    Block {
	      BlockType		      Switch

⌨️ 快捷键说明

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