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

📄 gardner_intdelay.mdl

📁 定时仿真的matlab代码,适合常规信号
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Subsystem"
	  Ports			  [1, 1]
	  Position		  [160, 169, 250, 211]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "Voltage Controlled Clock"
	  MaskDescription	  "A voltage controlled oscillator (VCO) follo"
"wed by a square wave converter."
	  MaskPromptString	  "Uncontrolled frequency (Hz):|Input sensitiv"
"ity:|Sample time:"
	  MaskStyleString	  "edit,edit,edit"
	  MaskTunableValueString  "on,on,on"
	  MaskCallbackString	  "||"
	  MaskEnableString	  "on,on,on"
	  MaskVisibilityString	  "on,on,on"
	  MaskToolTipString	  "on,on,on"
	  MaskVarAliasString	  ",,"
	  MaskVariables		  "uncFreq=@1;inpSens=@2;ts=@3;"
	  MaskDisplay		  "disp('Voltage\\nControlled\\nClock');"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "rxSymbFreq|inpSens|ts"
	  MaskTabNameString	  ",,"
	  System {
	    Name		    "Subsystem"
	    Location		    [17, 564, 476, 697]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 43, 55, 57]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Discrete-Time\nVCO"
	      Ports		      [1, 1]
	      Position		      [90, 28, 170, 72]
	      FontName		      "Arial"
	      SourceBlock	      "commsynccomp2/Discrete-Time\nVCO"
	      SourceType	      "Discrete-Time VCO"
	      ShowPortLabels	      "on"
	      Ac		      "1"
	      Fc		      "uncFreq"
	      Kc		      "inpSens"
	      Ph		      "-pi/2"
	      ts		      "ts"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [200, 60, 230, 90]
	      Gain		      "0"
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator"
	      Position		      [245, 37, 265, 88]
	      ShowName		      off
	      Operator		      ">"
	      InputSameDT	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [290, 58, 320, 72]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Discrete-Time\nVCO"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      DstBlock		      "Relational\nOperator"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Discrete-Time\nVCO"
	      SrcPort		      1
	      Points		      [5, 0]
	      Branch {
		DstBlock		"Relational\nOperator"
		DstPort			1
	      }
	      Branch {
		Points			[0, 25]
		DstBlock		"Gain"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Timing Detector"
	  Ports			  [1, 1, 0, 1]
	  Position		  [255, 219, 335, 261]
	  Orientation		  "left"
	  TreatAsAtomicUnit	  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Timing Detector"
	    Location		    [460, 411, 964, 633]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In"
	      Position		      [50, 128, 80, 142]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      TriggerPort
	      Name		      "Trigger"
	      Ports		      []
	      Position		      [50, 35, 70, 55]
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Gardner TED"
	      Ports		      [1, 1]
	      Position		      [135, 114, 235, 156]
	      TreatAsAtomicUnit	      on
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Gardner TED"
		Location		[241, 453, 778, 666]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In"
		  Position		  [25, 108, 55, 122]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  ComplexToRealImag
		  Name			  "Complex to\nReal-Imag"
		  Ports			  [1, 2]
		  Position		  [85, 98, 115, 127]
		  ShowName		  off
		  Output		  "Real and imag"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Integer Delay1"
		  Ports			  [1, 1]
		  Position		  [155, 31, 185, 59]
		  ShowName		  off
		  SourceBlock		  "dspobslib/Integer Delay"
		  SourceType		  "Integer Delay"
		  delay			  "1"
		  ic			  "0"
		  reset_popup		  "None"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Integer Delay2"
		  Ports			  [1, 1]
		  Position		  [230, 31, 260, 59]
		  ShowName		  off
		  SourceBlock		  "dspobslib/Integer Delay"
		  SourceType		  "Integer Delay"
		  delay			  "1"
		  ic			  "0"
		  reset_popup		  "None"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Integer Delay3"
		  Ports			  [1, 1]
		  Position		  [160, 131, 190, 159]
		  ShowName		  off
		  SourceBlock		  "dspobslib/Integer Delay"
		  SourceType		  "Integer Delay"
		  delay			  "1"
		  ic			  "0"
		  reset_popup		  "None"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Integer Delay4"
		  Ports			  [1, 1]
		  Position		  [235, 131, 265, 159]
		  ShowName		  off
		  SourceBlock		  "dspobslib/Integer Delay"
		  SourceType		  "Integer Delay"
		  delay			  "1"
		  ic			  "0"
		  reset_popup		  "None"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [340, 44, 360, 91]
		  ShowName		  off
		  RndMeth		  "Floor"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product1"
		  Ports			  [2, 1]
		  Position		  [345, 144, 365, 191]
		  ShowName		  off
		  RndMeth		  "Floor"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [305, 37, 315, 73]
		  NamePlacement		  "alternate"
		  ShowName		  off
		  Inputs		  "-+"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum2"
		  Ports			  [2, 1]
		  Position		  [310, 137, 320, 173]
		  NamePlacement		  "alternate"
		  ShowName		  off
		  Inputs		  "-+"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum3"
		  Ports			  [2, 1]
		  Position		  [410, 102, 420, 138]
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Outport
		  Name			  "Error"
		  Position		  [465, 113, 495, 127]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		}
		Line {
		  SrcBlock		  "Sum3"
		  SrcPort		  1
		  DstBlock		  "Error"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Product1"
		  SrcPort		  1
		  Points		  [20, 0; 0, -40]
		  DstBlock		  "Sum3"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  Points		  [25, 0; 0, 40]
		  DstBlock		  "Sum3"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Complex to\nReal-Imag"
		  SrcPort		  1
		  Points		  [20, 0; 0, -40]
		  Branch {
		    DstBlock		    "Sum1"
		    DstPort		    2
		  }
		  Branch {
		    DstBlock		    "Integer Delay1"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "In"
		  SrcPort		  1
		  DstBlock		  "Complex to\nReal-Imag"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Sum2"
		  SrcPort		  1
		  DstBlock		  "Product1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integer Delay4"
		  SrcPort		  1
		  DstBlock		  "Sum2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integer Delay3"
		  SrcPort		  1
		  Points		  [0, 0; 15, 0]
		  Branch {
		    DstBlock		    "Integer Delay4"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 35]
		    DstBlock		    "Product1"
		    DstPort		    2
		  }
		}
		Line {
		  SrcBlock		  "Complex to\nReal-Imag"
		  SrcPort		  2
		  Points		  [20, 0; 0, 25]
		  Branch {
		    DstBlock		    "Integer Delay3"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 20]
		    DstBlock		    "Sum2"
		    DstPort		    2
		  }
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integer Delay1"
		  SrcPort		  1
		  Points		  [0, 0; 10, 0]
		  Branch {
		    DstBlock		    "Integer Delay2"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 35]
		    DstBlock		    "Product"
		    DstPort		    2
		  }
		}
		Line {
		  SrcBlock		  "Integer Delay2"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Loop Filter"
	      Ports		      [1, 1, 0, 1]
	      Position		      [310, 116, 395, 154]
	      TreatAsAtomicUnit	      on
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Loop Filter"
		Location		[286, 284, 819, 417]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In"
		  Position		  [140, 58, 170, 72]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  TriggerPort
		  Name			  "Trigger"
		  Ports			  []
		  Position		  [65, 30, 85, 50]
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "Subsystem"
		  Ports			  [1, 1]
		  Position		  [225, 44, 295, 86]
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  MaskType		  "Loop Filter"
		  MaskDescription	  "Second order loop filter with a pro"
"portional and integral branch."
		  MaskPromptString	  "Proportional gain (Kp):|Integral ga"
"in (Ki):"
		  MaskStyleString	  "edit,edit"
		  MaskTunableValueString  "on,on"
		  MaskCallbackString	  "|"
		  MaskEnableString	  "on,on"
		  MaskVisibilityString	  "on,on"
		  MaskToolTipString	  "on,on"
		  MaskVarAliasString	  ","
		  MaskVariables		  "kp=@1;ki=@2;"
		  MaskDisplay		  "disp('Loop Filter');"
		  MaskIconFrame		  on
		  MaskIconOpaque	  on
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		  MaskValueString	  "propFiltGain|intFiltGain"
		  MaskTabNameString	  ","
		  System {
		    Name		    "Subsystem"
		    Location		    [99, 607, 674, 807]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "In1"
		    Position		    [25, 33, 55, 47]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Reference
		    Name		    "Delay"
		    Ports		    [1, 1]
		    Position		    [245, 130, 300, 170]
		    Orientation		    "left"
		    SourceBlock		    "dspsigops/Delay"
		    SourceType		    "Delay"
		    dly_unit		    "Samples"
		    delay		    "1"
		    ic_detail		    "off"
		    dif_ic_for_ch	    "off"
		    dif_ic_for_dly	    "off"
		    ic			    "0"
		    reset_popup		    "None"

⌨️ 快捷键说明

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