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

📄 ch2example27.mdl

📁 清华大学出版社 邵玉斌编写的《通信系统建模与仿真实例分析》一书的所有MATLAB和SIMULINK代码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	  Port			  "2"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Counter\n3分频"
	  Ports			  [1, 1]
	  Position		  [120, 28, 190, 62]
	  SourceBlock		  "dspswit3/Counter"
	  SourceType		  "Counter"
	  Direction		  "Up"
	  CountEvent		  "Rising edge"
	  CounterSize		  "User defined"
	  MaxCount		  "2"
	  InitialCount		  "1"
	  Output		  "Hit"
	  HitValue		  "0"
	  ResetInput		  off
	  SamplesPerFrame	  "1"
	  Ts			  "1"
	  CntDtype		  "Double"
	  HitDtype		  "Logical"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Counter1"
	  Ports			  [1, 1]
	  Position		  [120, 128, 190, 162]
	  SourceBlock		  "dspswit3/Counter"
	  SourceType		  "Counter"
	  Direction		  "Up"
	  CountEvent		  "Rising edge"
	  CounterSize		  "User defined"
	  MaxCount		  "2"
	  InitialCount		  "1"
	  Output		  "Hit"
	  HitValue		  "1"
	  ResetInput		  off
	  SamplesPerFrame	  "1"
	  Ts			  "1"
	  CntDtype		  "Double"
	  HitDtype		  "Logical"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Counter2"
	  Ports			  [1, 1]
	  Position		  [120, 243, 190, 277]
	  SourceBlock		  "dspswit3/Counter"
	  SourceType		  "Counter"
	  Direction		  "Up"
	  CountEvent		  "Rising edge"
	  CounterSize		  "User defined"
	  MaxCount		  "2"
	  InitialCount		  "1"
	  Output		  "Hit"
	  HitValue		  "2"
	  ResetInput		  off
	  SamplesPerFrame	  "1"
	  Ts			  "1"
	  CntDtype		  "Double"
	  HitDtype		  "Logical"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Triggered\nSubsystem"
	  Ports			  [1, 1, 0, 1]
	  Position		  [200, 74, 300, 116]
	  TreatAsAtomicUnit	  on
	  System {
	    Name		    "Triggered\nSubsystem"
	    Location		    [412, 402, 910, 702]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [110, 103, 140, 117]
	    }
	    Block {
	      BlockType		      TriggerPort
	      Name		      "Trigger"
	      Ports		      []
	      Position		      [220, 40, 240, 60]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [360, 103, 390, 117]
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Triggered\nSubsystem1"
	  Ports			  [1, 1, 0, 1]
	  Position		  [200, 179, 300, 221]
	  TreatAsAtomicUnit	  on
	  System {
	    Name		    "Triggered\nSubsystem1"
	    Location		    [412, 402, 910, 702]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [110, 103, 140, 117]
	    }
	    Block {
	      BlockType		      TriggerPort
	      Name		      "Trigger"
	      Ports		      []
	      Position		      [220, 40, 240, 60]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [360, 103, 390, 117]
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Triggered\nSubsystem2"
	  Ports			  [1, 1, 0, 1]
	  Position		  [200, 289, 300, 331]
	  TreatAsAtomicUnit	  on
	  System {
	    Name		    "Triggered\nSubsystem2"
	    Location		    [412, 402, 910, 702]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [110, 103, 140, 117]
	    }
	    Block {
	      BlockType		      TriggerPort
	      Name		      "Trigger"
	      Ports		      []
	      Position		      [220, 40, 240, 60]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [360, 103, 390, 117]
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [340, 88, 370, 102]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [335, 193, 365, 207]
	  Port			  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out3"
	  Position		  [335, 303, 365, 317]
	  Port			  "3"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [0, 0; 25, 0]
	  Branch {
	    DstBlock		    "Triggered\nSubsystem"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 105]
	    Branch {
	      Points		      [0, 110]
	      DstBlock		      "Triggered\nSubsystem2"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "Triggered\nSubsystem1"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Triggered\nSubsystem"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Triggered\nSubsystem1"
	  SrcPort		  1
	  DstBlock		  "Out2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Triggered\nSubsystem2"
	  SrcPort		  1
	  DstBlock		  "Out3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Clk"
	  SrcPort		  1
	  Points		  [40, 0]
	  Branch {
	    DstBlock		    "Counter\n3分频"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 100]
	    Branch {
	      Points		      [0, 115]
	      DstBlock		      "Counter2"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "Counter1"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Counter\n3分频"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Triggered\nSubsystem"
	  DstPort		  trigger
	}
	Line {
	  SrcBlock		  "Counter1"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Triggered\nSubsystem1"
	  DstPort		  trigger
	}
	Line {
	  SrcBlock		  "Counter2"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Triggered\nSubsystem2"
	  DstPort		  trigger
	}
	Annotation {
	  Name			  "时钟输入"
	  Position		  [32, 21]
	}
	Annotation {
	  Name			  "信号输入"
	  Position		  [35, 126]
	}
      }
    }
    Line {
      SrcBlock		      "Counter"
      SrcPort		      1
      Points		      [0, 0; 85, 0]
      Branch {
	DstBlock		"Multiport\nSwitch1"
	DstPort			1
      }
      Branch {
	Points			[0, -25]
	DstBlock		"Scope1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Pulse\nGenerator1"
      SrcPort		      1
      Points		      [0, 0; 20, 0]
      Branch {
	DstBlock		"Counter"
	DstPort			1
      }
      Branch {
	Points			[0, -40]
	DstBlock		"Scope1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      2
      DstBlock		      "Scope"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      3
      DstBlock		      "Scope"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Signal\nGenerator"
      SrcPort		      1
      Points		      [0, 0; 20, 0]
      Branch {
	DstBlock		"Multiport\nSwitch1"
	DstPort			2
      }
      Branch {
	Points			[0, 100]
	DstBlock		"Scope2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Signal\nGenerator1"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	Points			[0, -45]
	DstBlock		"Multiport\nSwitch1"
	DstPort			3
      }
      Branch {
	Points			[0, 50]
	DstBlock		"Scope2"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Signal\nGenerator2"
      SrcPort		      1
      Points		      [0, 0; 30, 0]
      Branch {
	DstBlock		"Multiport\nSwitch1"
	DstPort			4
      }
      Branch {
	DstBlock		"Scope2"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Pulse\nGenerator2"
      SrcPort		      1
      Points		      [0, -30]
      DstBlock		      "Subsystem"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Multiport\nSwitch1"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	DstBlock		"Subsystem"
	DstPort			1
      }
      Branch {
	Points			[0, -40]
	DstBlock		"Scope1"
	DstPort			3
      }
    }
    Annotation {
      Name		      "3路信号采样、串并、并串转换过程\n的电路级仿真模"
"型\n文件名:ch2example27.mdl"
      Position		      [103, 235]
      DropShadow	      on
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "计数器:\n循环输出0,1,2"
      Position		      [152, 144]
    }
    Annotation {
      Name		      "系统时钟:60Hz"
      Position		      [43, 46]
    }
    Annotation {
      Name		      "收端同步时钟"
      Position		      [406, 219]
    }
    Annotation {
      Name		      "显示三路发\n送信号波形"
      Position		      [334, 264]
    }
    Annotation {
      Name		      "时分复用开关"
      Position		      [324, 181]
    }
    Annotation {
      Name		      "传输信道"
      Position		      [407, 101]
    }
    Annotation {
      Name		      "显示时钟,\n计数器输出脉冲\n以及时分复用传输信"
"号"
      Position		      [464, 54]
    }
    Annotation {
      Name		      "解复用子系统"
      Position		      [487, 172]
    }
    Annotation {
      Name		      "显示接收解复用\n输出波形"
      Position		      [564, 174]
    }
  }
}

⌨️ 快捷键说明

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