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

📄 mqueue1.mdl

📁 使用simulink实现m序列的同步
💻 MDL
📖 第 1 页 / 共 4 页
字号:
	Block {
	  BlockType		  Product
	  Name			  "Product3"
	  Ports			  [2, 1]
	  Position		  [235, 75, 270, 130]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  SampleTime		  "0.001"
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "Pulse\nGenerator1"
	  Ports			  [0, 1]
	  Position		  [180, 132, 230, 188]
	  PulseType		  "Time based"
	  Period		  "0.015"
	  PulseWidth		  "50"
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "Pulse\nGenerator2"
	  Ports			  [0, 1]
	  Position		  [435, 163, 480, 197]
	  PulseType		  "Time based"
	  Amplitude		  "0.2"
	  Period		  "0.001"
	  PulseWidth		  "50"
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "Pulse\nGenerator3"
	  Ports			  [0, 1]
	  Position		  [505, 358, 550, 392]
	  PulseType		  "Time based"
	  Amplitude		  "0.8"
	  Period		  "0.02"
	  PulseWidth		  "50"
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "Pulse\nGenerator4"
	  Ports			  [0, 1]
	  Position		  [415, 413, 460, 447]
	  PulseType		  "Time based"
	  Period		  "0.01"
	  PulseWidth		  "50"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Sample\nand Hold2"
	  Ports			  [1, 1, 0, 1]
	  Position		  [615, 414, 665, 456]
	  SourceBlock		  "dspsigops/Sample\nand Hold"
	  SourceType		  "Sample and Hold"
	  ShowPortLabels	  on
	  trig			  "Rising edge"
	  initCond		  "0"
	  latchinput		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Sample\nand Hold3"
	  Ports			  [1, 1, 0, 1]
	  Position		  [569, 95, 611, 145]
	  Orientation		  "up"
	  SourceBlock		  "dspsigops/Sample\nand Hold"
	  SourceType		  "Sample and Hold"
	  ShowPortLabels	  on
	  trig			  "Rising edge"
	  initCond		  "0"
	  latchinput		  off
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope1"
	  Ports			  [3]
	  Position		  [695, 227, 750, 293]
	  Location		  [1, 50, 1441, 865]
	  Open			  off
	  NumInputPorts		  "3"
	  ZoomMode		  "xonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%intergration"
	    axes2		    "%<SignalLabel>"
	    axes3		    "%<SignalLabel>"
	  }
	  YMin			  "-5~-5~-5"
	  YMax			  "5~5~5"
	  SaveName		  "ScopeData1"
	  DataFormat		  "StructureWithTime"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope2"
	  Ports			  [3]
	  Position		  [760, 387, 815, 453]
	  Location		  [5, 54, 1445, 869]
	  Open			  off
	  NumInputPorts		  "3"
	  ZoomMode		  "xonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%intergration"
	    axes2		    "%<SignalLabel>"
	    axes3		    "%<SignalLabel>"
	  }
	  YMin			  "-5~-5~-5"
	  YMax			  "5~5~5"
	  SaveName		  "ScopeData7"
	  DataFormat		  "StructureWithTime"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [715, 104, 750, 136]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Pulse\nGenerator1"
	  SrcPort		  1
	  Points		  [45, 0; 0, -30]
	  DstBlock		  "Discrete-Time\nIntegrator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [20, 0; 0, -55]
	  DstBlock		  "Product3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "input1"
	  SrcPort		  1
	  DstBlock		  "Product3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product3"
	  SrcPort		  1
	  DstBlock		  "Discrete-Time\nIntegrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Compare\nTo Constant"
	  SrcPort		  1
	  Points		  [30, 0]
	  Branch {
	    Points		    [0, 140]
	    DstBlock		    "Scope1"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Sample\nand Hold3"
	    DstPort		    trigger
	  }
	}
	Line {
	  SrcBlock		  "Pulse\nGenerator2"
	  SrcPort		  1
	  Points		  [105, 0]
	  DstBlock		  "Sample\nand Hold3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Discrete-Time\nIntegrator"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    DstBlock		    "Compare\nTo Constant"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 120]
	    DstBlock		    "Scope1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Pulse\nGenerator4"
	  SrcPort		  1
	  Points		  [80, 0]
	  Branch {
	    Points		    [0, 125; 290, 0; 0, -205; -90, 0]
	    DstBlock		    "Scope2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 5]
	    DstBlock		    "Sample\nand Hold2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Pulse\nGenerator3"
	  SrcPort		  1
	  Points		  [85, 0; 0, 10]
	  Branch {
	    DstBlock		    "Sample\nand Hold2"
	    DstPort		    trigger
	  }
	  Branch {
	    Points		    [0, -5; 55, 0; 0, 40]
	    DstBlock		    "Scope2"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Sample\nand Hold2"
	  SrcPort		  1
	  Points		  [35, 0; 0, 5]
	  DstBlock		  "Scope2"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Sample\nand Hold3"
	  SrcPort		  1
	  Points		  [65, 0; 0, 30]
	  Branch {
	    DstBlock		    "Out1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 160]
	    DstBlock		    "Scope1"
	    DstPort		    3
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "pntongbu"
      Ports		      [1, 1]
      Position		      [230, 400, 270, 460]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"pntongbu"
	Location		[2, 82, 1150, 817]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "input"
	  Position		  [45, 458, 75, 472]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type \nConversion"
	  Position		  [265, 346, 320, 374]
	  OutDataTypeMode	  "double"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type \nConversion1"
	  Position		  [125, 271, 180, 299]
	  NamePlacement		  "alternate"
	  OutDataTypeMode	  "double"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type \nConversion2"
	  Position		  [91, 95, 119, 150]
	  Orientation		  "down"
	  OutDataTypeMode	  "double"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion"
	  Position		  [315, 83, 390, 117]
	  OutDataTypeMode	  "boolean"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator"
	  Ports			  [2, 1]
	  Position		  [500, 92, 530, 123]
	  Operator		  "OR"
	  AllPortsSameDT	  off
	  OutDataTypeMode	  "Boolean"
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator1"
	  Ports			  [1, 1]
	  Position		  [420, 84, 450, 116]
	  Operator		  "NOT"
	  AllPortsSameDT	  off
	  OutDataTypeMode	  "Boolean"
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator2"
	  Ports			  [2, 1]
	  Position		  [600, 281, 630, 314]
	  Operator		  "XOR"
	  AllPortsSameDT	  off
	  OutDataTypeMode	  "Boolean"
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator3"
	  Ports			  [2, 1]
	  Position		  [210, 396, 240, 429]
	  AllPortsSameDT	  off
	  OutDataTypeMode	  "Boolean"
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator4"
	  Ports			  [1, 1]
	  Position		  [80, 269, 110, 301]
	  Operator		  "NOT"
	  AllPortsSameDT	  off
	  OutDataTypeMode	  "Boolean"
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "Pulse\nGenerator1"
	  Ports			  [0, 1]
	  Position		  [65, 388, 110, 422]
	  PulseType		  "Time based"
	  Period		  "0.001"
	  PulseWidth		  "50"
	  PhaseDelay		  "0.0005"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Queue"
	  Ports			  [3, 1]
	  Position		  [260, 157, 355, 223]
	  SourceBlock		  "dspbuff3/Queue"
	  SourceType		  "Queue"
	  depth			  "8"
	  trigger		  "Rising edge"
	  overflow		  "Dynamic reallocation"
	  pes			  "Warning"
	  eso			  off
	  fso			  off
	  nso			  off
	  clr			  off
	  clrOutport		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Queue1"
	  Ports			  [3, 1]
	  Position		  [400, 157, 495, 223]
	  SourceBlock		  "dspbuff3/Queue"
	  SourceType		  "Queue"
	  depth			  "8"
	  trigger		  "Rising edge"
	  overflow		  "Dynamic reallocation"
	  pes			  "Warning"
	  eso			  off
	  fso			  off
	  nso			  off
	  clr			  off
	  clrOutport		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Queue2"
	  Ports			  [3, 1]
	  Position		  [535, 157, 630, 223]
	  SourceBlock		  "dspbuff3/Queue"
	  SourceType		  "Queue"
	  depth			  "8"
	  trigger		  "Rising edge"
	  overflow		  "Dynamic reallocation"
	  pes			  "Warning"
	  eso			  off
	  fso			  off
	  nso			  off
	  clr			  off
	  clrOutport		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Queue3"
	  Ports			  [3, 1]
	  Position		  [135, 152, 230, 218]
	  SourceBlock		  "dspbuff3/Queue"
	  SourceType		  "Queue"
	  depth			  "8"
	  trigger		  "Rising edge"
	  overflow		  "Dynamic reallocation"
	  pes			  "Warning"
	  eso			  off
	  fso			  off
	  nso			  off
	  clr			  off
	  clrOutport		  off
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope"
	  Ports			  [1]
	  Position		  [175, 344, 205, 376]
	  Location		  [1, 50, 1025, 737]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  SaveName		  "ScopeData1"
	  DataFormat		  "StructureWithTime"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope1"
	  Ports			  [1]
	  Position		  [710, 324, 740, 356]
	  Location		  [-1, 70, 1023, 390]
	  Open			  off
	  NumInputPorts		  "1"
	  ZoomMode		  "xonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  DataFormat		  "StructureWithTime"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope2"
	  Ports			  [1]
	  Position		  [490, 34, 520, 66]
	  Location		  [226, 422, 733, 661]
	  Open			  off
	  NumInputPorts		  "1"
	  ZoomMode		  "xonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  SaveName		  "ScopeData3"
	  DataFormat		  "StructureWithTime"
	  SampleInput		  on
	  SampleTime		  "0.001"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope3"
	  Ports			  [1]
	  Position		  [310, 29, 340, 61]
	  Location		  [294, 481, 618, 720]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  SaveName		  "ScopeData2"
	  DataFormat		  "StructureWithTime"
	  SampleInput		  on
	  SampleTime		  "0.001"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope4"
	  Ports			  [2]
	  Position		  [350, 421, 380, 454]

⌨️ 快捷键说明

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