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

📄 mqueue1.mdl

📁 使用simulink实现m序列的同步
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      Amplitude		      "1"
      Period		      "2"
      PulseWidth	      "1"
      PhaseDelay	      "0"
      SampleTime	      "1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Inport
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Logic
      Operator		      "AND"
      Inputs		      "2"
      AllPortsSameDT	      on
      OutDataTypeMode	      "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Scope
      Floating		      off
      ModelBased	      off
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      Step
      Time		      "1"
      Before		      "0"
      After		      "1"
      SampleTime	      "-1"
      VectorParams1D	      on
      ZeroCross		      on
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      TriggerPort
      TriggerType	      "rising"
      StatesWhenEnabling      "inherit"
      ShowOutputPort	      off
      OutputDataType	      "auto"
      SampleTimeType	      "triggered"
      SampleTime	      "1"
      ZeroCross		      on
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "mqueue1"
    Location		    [-4, 82, 1144, 875]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type \nConversion"
      Position		      [275, 211, 330, 239]
      NamePlacement	      "alternate"
      OutDataTypeMode	      "double"
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type \nConversion2"
      Position		      [340, 416, 395, 444]
      NamePlacement	      "alternate"
      OutDataTypeMode	      "double"
    }
    Block {
      BlockType		      Logic
      Name		      "Logical\nOperator1"
      Ports		      [1, 1]
      Position		      [840, 219, 870, 251]
      Operator		      "NOT"
      AllPortsSameDT	      off
      OutDataTypeMode	      "Boolean"
    }
    Block {
      BlockType		      Logic
      Name		      "Logical\nOperator2"
      Ports		      [2, 1]
      Position		      [740, 291, 770, 324]
      AllPortsSameDT	      off
      OutDataTypeMode	      "Boolean"
    }
    Block {
      BlockType		      Logic
      Name		      "Logical\nOperator3"
      Ports		      [2, 1]
      Position		      [915, 226, 945, 259]
      AllPortsSameDT	      off
      OutDataTypeMode	      "Boolean"
    }
    Block {
      BlockType		      Logic
      Name		      "Logical\nOperator4"
      Ports		      [1, 1]
      Position		      [953, 325, 987, 355]
      Orientation	      "down"
      NamePlacement	      "alternate"
      Operator		      "NOT"
      AllPortsSameDT	      off
      OutDataTypeMode	      "Boolean"
    }
    Block {
      BlockType		      Reference
      Name		      "PN Sequence\nGenerator"
      Ports		      [0, 1]
      Position		      [140, 203, 220, 247]
      SourceBlock	      "commseqgen2/PN Sequence\nGenerator"
      SourceType	      "PN Sequence Generator"
      poly		      "[1 0 0 1 1]"
      ini_sta		      "[1 1 1 0]"
      shift		      "0"
      Ts		      "0.001"
      frameBased	      off
      sampPerFrame	      "1"
      reset		      off
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [565, 217, 595, 248]
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
      SampleTime	      "0.001"
    }
    Block {
      BlockType		      DiscretePulseGenerator
      Name		      "Pulse\nGenerator"
      Ports		      [0, 1]
      Position		      [655, 283, 700, 317]
      PulseType		      "Time based"
      Period		      "0.015"
      PulseWidth	      "100/15"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [3]
      Position		      [370, 284, 400, 316]
      Location		      [253, 208, 1020, 719]
      Open		      off
      NumInputPorts	      "3"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      TimeRange		      "0.2"
      YMin		      "-5~-5~-5"
      YMax		      "5~5~5"
      SaveName		      "ScopeData9"
      DataFormat	      "StructureWithTime"
      SampleInput	      on
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [1]
      Position		      [860, 334, 890, 366]
      Location		      [5, 54, 1029, 741]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData11"
      DataFormat	      "StructureWithTime"
      SampleInput	      on
    }
    Block {
      BlockType		      Scope
      Name		      "Scope3"
      Ports		      [1]
      Position		      [435, 79, 465, 111]
      Location		      [6, 148, 1034, 499]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData10"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope5"
      Ports		      [1]
      Position		      [340, 473, 370, 507]
      Location		      [5, 238, 1033, 590]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData5"
      DataFormat	      "StructureWithTime"
      SampleInput	      on
    }
    Block {
      BlockType		      Scope
      Name		      "Scope6"
      Ports		      [3]
      Position		      [1020, 159, 1050, 191]
      Location		      [6, 54, 1030, 741]
      Open		      off
      NumInputPorts	      "3"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      YMin		      "-5~-5~-5"
      YMax		      "5~5~5"
      SaveName		      "ScopeData6"
      DataFormat	      "StructureWithTime"
      SampleInput	      on
    }
    Block {
      BlockType		      Scope
      Name		      "Scope8"
      Ports		      [4]
      Position		      [775, 134, 805, 166]
      Location		      [6, 56, 1030, 743]
      Open		      off
      NumInputPorts	      "4"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%receive m queue"
	axes2			"%local m queue"
	axes3			"% mulplitude"
	axes4			"%intergral & judge"
      }
      YMin		      "-5~-5~-5~-5"
      YMax		      "5~5~5~5"
      SaveName		      "ScopeData8"
      DataFormat	      "StructureWithTime"
      SampleInput	      on
      SampleTime	      "0.001"
    }
    Block {
      BlockType		      Step
      Name		      "Step"
      Position		      [665, 345, 695, 375]
      Time		      "0.001"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Unipolar to\nBipolar\nConverter"
      Ports		      [1, 1]
      Position		      [375, 203, 455, 247]
      SourceBlock	      "commutil2/Unipolar to\nBipolar\nConverter"
      SourceType	      "Unipolar to Bipolar Converter"
      ShowPortLabels	      on
      M			      "2"
      polarity		      "Positive"
    }
    Block {
      BlockType		      Reference
      Name		      "Unipolar to\nBipolar\nConverter1"
      Ports		      [1, 1]
      Position		      [425, 403, 505, 447]
      SourceBlock	      "commutil2/Unipolar to\nBipolar\nConverter"
      SourceType	      "Unipolar to Bipolar Converter"
      ShowPortLabels	      on
      M			      "2"
      polarity		      "Positive"
    }
    Block {
      BlockType		      SubSystem
      Name		      "intergrate&judge"
      Ports		      [1, 1]
      Position		      [670, 205, 710, 265]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"intergrate&judge"
	Location		[0, 82, 1144, 875]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "input1"
	  Position		  [105, 74, 140, 106]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Compare\nTo Constant"
	  Ports			  [1, 1]
	  Position		  [430, 100, 480, 140]
	  LinkData {
	    BlockName		    "Compare"
	    DialogParameters {
	      Operator		      ">="
	      LogicOutDataTypeMode    "Boolean"
	    }
	  }
	  SourceBlock		  "simulink/Logic and Bit\nOperations/Compare"
"\nTo Constant"
	  SourceType		  "Compare To Constant"
	  ShowPortLabels	  on
	  relop			  ">="
	  const			  "0.15"
	  LogicOutDataTypeMode	  "uint8"
	  ZeroCross		  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [105, 143, 140, 197]
	  Value			  "10"
	}
	Block {
	  BlockType		  DiscreteIntegrator
	  Name			  "Discrete-Time\nIntegrator"
	  Ports			  [2, 1]
	  Position		  [320, 94, 360, 141]
	  IntegratorMethod	  "Integration: Forward Euler"
	  gainval		  "3.0"
	  ExternalReset		  "either"
	  InitialConditionSource  "internal"
	  SampleTime		  "0.001"
	  IgnoreLimit		  off
	  ICPrevOutput		  "DiscIntNeverNeededParam"
	  ICPrevScaledInput	  "DiscIntNeverNeededParam"
	}

⌨️ 快捷键说明

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