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

📄 nco_test_mdl.mdl

📁 这里的DDS(直接数字合成)是我在MATLAB中用Simulink基本模块搭建起来的模型,仿真DDS信号的产生,并有一个M文件实现与模型同等的功能,MATLAB爱好者一定不要错过
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	Line {
	  SrcBlock		  "Delay16"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "a(2)(6)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "b(2)(6)"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Delay26"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "b(2)(6)"
	  SrcPort		  1
	  Points		  [100, 0]
	  DstBlock		  "SumB26"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "a(3)(6)"
	  SrcPort		  1
	  Points		  [-70, 0]
	  DstBlock		  "SumA36"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Delay26"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "a(3)(6)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 10; 375, 0]
	    DstBlock		    "SumB36"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "SectIn7"
	  SrcPort		  1
	  DstBlock		  "s(7)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "s(7)"
	  SrcPort		  1
	  DstBlock		  "SumA27"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumA27"
	  SrcPort		  1
	  DstBlock		  "SumA37"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumA37"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "SumB27"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [205, 0]
	    DstBlock		    "Delay17"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "SumB27"
	  SrcPort		  1
	  DstBlock		  "SumB37"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumB37"
	  SrcPort		  1
	  DstBlock		  "SectOut7"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "a(2)(7)"
	  SrcPort		  1
	  Points		  [-250, 0]
	  DstBlock		  "SumA27"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Delay17"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "a(2)(7)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "b(2)(7)"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Delay27"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "b(2)(7)"
	  SrcPort		  1
	  Points		  [100, 0]
	  DstBlock		  "SumB27"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "a(3)(7)"
	  SrcPort		  1
	  Points		  [-70, 0]
	  DstBlock		  "SumA37"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Delay27"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "a(3)(7)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 10; 375, 0]
	    DstBlock		    "SumB37"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "SectIn8"
	  SrcPort		  1
	  DstBlock		  "s(8)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "s(8)"
	  SrcPort		  1
	  DstBlock		  "SumA28"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumA28"
	  SrcPort		  1
	  DstBlock		  "SumA38"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumA38"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "SumB28"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [205, 0]
	    DstBlock		    "Delay18"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "SumB28"
	  SrcPort		  1
	  DstBlock		  "SumB38"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumB38"
	  SrcPort		  1
	  DstBlock		  "SectOut8"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "a(2)(8)"
	  SrcPort		  1
	  Points		  [-250, 0]
	  DstBlock		  "SumA28"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Delay18"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "a(2)(8)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "b(2)(8)"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Delay28"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "b(2)(8)"
	  SrcPort		  1
	  Points		  [100, 0]
	  DstBlock		  "SumB28"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "a(3)(8)"
	  SrcPort		  1
	  Points		  [-70, 0]
	  DstBlock		  "SumA38"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Delay28"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "a(3)(8)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 10; 375, 0]
	    DstBlock		    "SumB38"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "SectIn9"
	  SrcPort		  1
	  DstBlock		  "s(9)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "s(9)"
	  SrcPort		  1
	  DstBlock		  "SumA29"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumA29"
	  SrcPort		  1
	  DstBlock		  "SumA39"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumA39"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "SumB29"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [205, 0]
	    DstBlock		    "Delay19"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "SumB29"
	  SrcPort		  1
	  DstBlock		  "SumB39"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumB39"
	  SrcPort		  1
	  DstBlock		  "SectOut9"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "a(2)(9)"
	  SrcPort		  1
	  Points		  [-250, 0]
	  DstBlock		  "SumA29"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Delay19"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "a(2)(9)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "b(2)(9)"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Delay29"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "b(2)(9)"
	  SrcPort		  1
	  Points		  [100, 0]
	  DstBlock		  "SumB29"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "a(3)(9)"
	  SrcPort		  1
	  Points		  [-70, 0]
	  DstBlock		  "SumA39"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Delay29"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "a(3)(9)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 10; 375, 0]
	    DstBlock		    "SumB39"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "SectIn10"
	  SrcPort		  1
	  DstBlock		  "s(10)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "s(10)"
	  SrcPort		  1
	  DstBlock		  "SumA210"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumA210"
	  SrcPort		  1
	  DstBlock		  "SumA310"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumA310"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "SumB210"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [205, 0]
	    DstBlock		    "Delay110"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "SumB210"
	  SrcPort		  1
	  DstBlock		  "SumB310"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SumB310"
	  SrcPort		  1
	  DstBlock		  "Output"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "a(2)(10)"
	  SrcPort		  1
	  Points		  [-250, 0]
	  DstBlock		  "SumA210"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Delay110"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "a(2)(10)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "b(2)(10)"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Delay210"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "b(2)(10)"
	  SrcPort		  1
	  Points		  [100, 0]
	  DstBlock		  "SumB210"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "a(3)(10)"
	  SrcPort		  1
	  Points		  [-70, 0]
	  DstBlock		  "SumA310"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Delay210"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    Points		    [0, 20]
	    DstBlock		    "a(3)(10)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 10; 375, 0]
	    DstBlock		    "SumB310"
	    DstPort		    2
	  }
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "NCO"
      Ports		      [1, 1]
      Position		      [495, 252, 565, 308]
      Orientation	      "left"
      DialogController	      "dspdialog.NCO"
      SourceBlock	      "dspsigops/NCO"
      SourceType	      "NCO"
      AccIncSrc		      "Input port"
      AccInc		      "100"
      PhaseOffsetSrc	      "Specify via dialog"
      PhaseOffset	      "0"
      AccumWL		      "16"
      HasDither		      on
      DitherWL		      "4"
      PNgeneratorLength	      "12"
      HasPhaseQuantizer	      on
      TableDepth	      "12"
      HasOutputPhaseError     off
      Formula		      "Sine"
      DataType		      "double"
      OutputWL		      "16"
      OutputFL		      "14"
      CompMethod	      "Table lookup (no interpolation)"
      SampleTime	      "1"
      SamplesPerFrame	      "1"
      Port {
	PortNumber		1
	Name			"NCO"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      DiscretePulseGenerator
      Name		      "Pulse\nGenerator"
      Ports		      [0, 1]
      Position		      [175, 78, 220, 112]
      Period		      "500"
      PulseWidth	      "250"
    }
    Block {
      BlockType		      Scope
      Name		      "Time\nScope"
      Ports		      [3]
      Position		      [280, 192, 335, 298]
      Orientation	      "left"
      Floating		      off
      Location		      [-3, 48, 1021, 733]
      Open		      off
      NumInputPorts	      "3"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      YMin		      "-5~-5~-1"
      YMax		      "5~5~1"
      DataFormat	      "Structure"
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "Pulse\nGenerator"
      SrcPort		      1
      Points		      [10, 0; 0, 30]
      DstBlock		      "Add"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      Points		      [10, 0; 0, -30]
      DstBlock		      "Add"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Add"
      SrcPort		      1
      Points		      [0, 0]
      DstBlock		      "Gain"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      Points		      [0, 0; 15, 0]
      Branch {
	DstBlock		"Data Type \nConversion"
	DstPort			1
      }
      Branch {
	Points			[0, 75]
	DstBlock		"Time\nScope"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Data Type \nConversion"
      SrcPort		      1
      Points		      [10, 0; 0, 145]
      DstBlock		      "NCO"
      DstPort		      1
    }
    Line {
      Name		      "NCO"
      SrcBlock		      "NCO"
      SrcPort		      1
      Points		      [0, 0; -15, 0]
      Branch {
	Labels			[2, 1]
	Points			[0, -35]
	DstBlock		"Time\nScope"
	DstPort			2
      }
      Branch {
	DstBlock		"Lowpass Filter"
	DstPort			1
      }
    }
    Line {
      Name		      "Filter"
      Labels		      [2, 0]
      SrcBlock		      "Lowpass Filter"
      SrcPort		      1
      Points		      [0, 0]
      DstBlock		      "Time\nScope"
      DstPort		      3
    }
  }
}

⌨️ 快捷键说明

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