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

📄 ch7example4.mdl

📁 通信程序源代码和模型通信程序源代码和模型通信程序源代码和模型
💻 MDL
📖 第 1 页 / 共 2 页
字号:
    Block {
      BlockType		      Reference
      Name		      "Counter1"
      Ports		      [1, 1]
      Position		      [270, 206, 325, 254]
      FontSize		      10
      SourceBlock	      "dspswit3/Counter"
      SourceType	      "Counter"
      Direction		      "Up"
      CountEvent	      "Rising edge"
      CounterSize	      "User defined"
      MaxCount		      "1"
      InitialCount	      "0"
      Output		      "Count"
      HitValue		      "32"
      ResetInput	      off
      SamplesPerFrame	      "1"
      Ts		      "1"
      CntDtype		      "Double"
      HitDtype		      "Logical"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [210, 270, 240, 300]
      Expr		      "u-1"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [290, 66, 335, 99]
      InputSameDT	      off
    }
    Block {
      BlockType		      Product
      Name		      "Product1"
      Ports		      [2, 1]
      Position		      [205, 211, 250, 244]
      InputSameDT	      off
    }
    Block {
      BlockType		      Product
      Name		      "Product2"
      Ports		      [2, 1]
      Position		      [290, 276, 335, 309]
      InputSameDT	      off
    }
    Block {
      BlockType		      Product
      Name		      "Product4"
      Ports		      [2, 1]
      Position		      [385, 213, 415, 242]
      InputSameDT	      off
    }
    Block {
      BlockType		      DiscretePulseGenerator
      Name		      "Pulse\nGenerator"
      Position		      [35, 138, 80, 172]
      Period		      "10"
      PulseWidth	      "5"
      SampleTime	      "1/10"
    }
    Block {
      BlockType		      Reference
      Name		      "Rate Transition"
      Ports		      [1, 1]
      Position		      [115, 54, 170, 96]
      FontSize		      10
      SourceBlock	      "simulink/Signal\nAttributes/Rate Transition"
      SourceType	      "Rate_Transition"
      DataIntegrity	      on
      DeterministicTransfer   on
      TransitionType	      "Slow to fast"
      InitCond		      "0"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay"
      Position		      [205, 60, 235, 90]
      OnSwitchValue	      "0.5"
      OffSwitchValue	      "0.5"
      OffOutputValue	      "-1"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay1"
      Position		      [220, 140, 250, 170]
      OnSwitchValue	      "0.5"
      OffSwitchValue	      "0.5"
      OffOutputValue	      "-1"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay2"
      Position		      [470, 125, 500, 155]
      OnSwitchValue	      "0.5"
      OffSwitchValue	      "0.5"
      OffOutputValue	      "-1"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay3"
      Position		      [170, 305, 200, 335]
      OnSwitchValue	      "0.5"
      OffSwitchValue	      "0.5"
      OffOutputValue	      "-1"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay4"
      Position		      [520, 215, 550, 245]
      OnSwitchValue	      "0.5"
      OffSwitchValue	      "0.5"
      OffOutputValue	      "-1"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay5"
      Position		      [360, 280, 390, 310]
      OnSwitchValue	      "0.5"
      OffSwitchValue	      "0.5"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [4]
      Position		      [590, 23, 640, 257]
      Location		      [149, 222, 914, 610]
      Open		      on
      NumInputPorts	      "4"
      TickLabels	      "off"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
	axes4			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
	axes3			""
	axes4			""
      }
      YMin		      "-2~-2~-2~-2"
      YMax		      "2~2~2~2"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [480, 220, 500, 240]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Line {
      SrcBlock		      "Bernoulli Binary\nGenerator"
      SrcPort		      1
      DstBlock		      "Rate Transition"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Rate Transition"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"Relay"
	DstPort			1
      }
      Branch {
	Points			[0, 120]
	Branch {
	  Points		  [0, 25]
	  Branch {
	    DstBlock		    "Product1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 65]
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	}
	Branch {
	  Points		  [190, 0]
	  DstBlock		  "Product4"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Pulse\nGenerator"
      SrcPort		      1
      Points		      [40, 0]
      Branch {
	DstBlock		"Relay1"
	DstPort			1
      }
      Branch {
	Points			[0, 80]
	Branch {
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Branch {
	  Points		  [0, 85]
	  DstBlock		  "Relay3"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	Points			[210, 0]
	DstBlock		"Scope"
	DstPort			2
      }
      Branch {
	Points			[0, 55]
	DstBlock		"Counter"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Relay"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"Product"
	DstPort			1
      }
      Branch {
	Points			[0, -25]
	DstBlock		"Scope"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Relay1"
      SrcPort		      1
      Points		      [10, 0; 0, -65]
      DstBlock		      "Product"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Counter"
      SrcPort		      1
      DstBlock		      "Relay2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Relay2"
      SrcPort		      1
      Points		      [70, 0]
      DstBlock		      "Scope"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Product1"
      SrcPort		      1
      DstBlock		      "Counter1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Product4"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn"
      SrcPort		      1
      DstBlock		      "Product2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Product2"
      SrcPort		      1
      DstBlock		      "Relay5"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Relay4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Relay3"
      SrcPort		      1
      Points		      [45, 0; 0, -20]
      DstBlock		      "Product2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Relay5"
      SrcPort		      1
      Points		      [95, 0]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Counter1"
      SrcPort		      1
      Points		      [40, 0]
      DstBlock		      "Product4"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Relay4"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      4
    }
    Annotation {
      Name		      "数字双相码,密勒码和CMI码模型\n文件名:ch7examp"
"le4.mdl"
      Position		      [307, 23]
      DropShadow	      on
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "双极性"
      Position		      [222, 333]
    }
    Annotation {
      Name		      "双极性"
      Position		      [257, 88]
    }
    Annotation {
      Name		      "双极性"
      Position		      [277, 168]
    }
    Annotation {
      Name		      "双极性"
      Position		      [572, 243]
    }
    Annotation {
      Name		      "双极性"
      Position		      [542, 153]
    }
    Annotation {
      Name		      "双极性"
      Position		      [542, 98]
    }
    Annotation {
      Name		      "单极性"
      Position		      [412, 308]
    }
  }
}

⌨️ 快捷键说明

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