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

📄 disturb_code.mdl

📁 Matlab加扰解扰仿真系统
💻 MDL
📖 第 1 页 / 共 2 页
字号:
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "sfix(16)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "2^0"
      SampleTime	      "inf"
    }
    Block {
      BlockType		      Display
      Format		      "short"
      Decimation	      "10"
      Floating		      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      FrameConversion
      OutFrame		      "Frame based"
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      LatchByDelayingOutsideSignal off
      LatchByCopyingInsideSignal off
      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"
      UseBusObject	      off
      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		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Scope
      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	      "-1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
  }
  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		    "DiSturb_Code"
    Location		    [110, 126, 791, 720]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "Bernoulli Binary\nGenerator"
      Ports		      [0, 1]
      Position		      [90, 103, 170, 147]
      FontName		      "Arial"
      SourceBlock	      "commrandsrc2/Bernoulli Binary\nGenerator"
      SourceType	      "Bernoulli Binary Generator"
      ShowPortLabels	      on
      P			      "0.5"
      seed		      "34576"
      Ts		      "0.1"
      frameBased	      off
      sampPerFrame	      "1"
      orient		      off
      outDataType	      "double"
    }
    Block {
      BlockType		      Display
      Name		      "Display"
      Ports		      [1]
      Position		      [590, 96, 680, 174]
      Decimation	      "1"
      Lockdown		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation"
      Ports		      [2, 1]
      Position		      [475, 107, 550, 158]
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "0"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      Logic
      Name		      "Logical\nOperator"
      Ports		      [2, 1]
      Position		      [250, 117, 280, 148]
      Operator		      "XOR"
      AllPortsSameDT	      off
      LogicDataType	      "double"
    }
    Block {
      BlockType		      Logic
      Name		      "Logical\nOperator1"
      Ports		      [2, 1]
      Position		      [390, 127, 420, 158]
      Operator		      "XOR"
      AllPortsSameDT	      off
      LogicDataType	      "double"
    }
    Block {
      BlockType		      Reference
      Name		      "PN Sequence\nGenerator"
      Ports		      [0, 1]
      Position		      [230, 203, 310, 247]
      Orientation	      "left"
      SourceBlock	      "commseqgen2/PN Sequence\nGenerator"
      SourceType	      "PN Sequence Generator"
      poly		      "[1 0 0 0 0 1 1]"
      ini_sta		      "[0 0 0 0 0 1]"
      shift		      "0"
      Ts		      "1"
      frameBased	      off
      sampPerFrame	      "1"
      reset		      off
      outDataType	      "double"
    }
    Block {
      BlockType		      Reference
      Name		      "PN Sequence\nGenerator1"
      Ports		      [0, 1]
      Position		      [370, 208, 450, 252]
      Orientation	      "left"
      SourceBlock	      "commseqgen2/PN Sequence\nGenerator"
      SourceType	      "PN Sequence Generator"
      poly		      "[1 0 0 0 0 1 1]"
      ini_sta		      "[0 0 0 0 0 1]"
      shift		      "0"
      Ts		      "1"
      frameBased	      off
      sampPerFrame	      "1"
      reset		      off
      outDataType	      "double"
    }
    Block {
      BlockType		      Reference
      Name		      "Power Spectral\nDensity1"
      Ports		      [1]
      Position		      [215, 310, 245, 340]
      SourceBlock	      "simulink_extras/Additional\nSinks/Power Spectra"
"l\nDensity"
      SourceType	      "Power Spectral Density"
      ShowPortLabels	      on
      npts		      "128"
      fftpts		      "512"
      HowOften		      "64"
      sampleT		      "0.1"
    }
    Block {
      BlockType		      Reference
      Name		      "Power Spectral\nDensity2"
      Ports		      [1]
      Position		      [350, 315, 380, 345]
      SourceBlock	      "simulink_extras/Additional\nSinks/Power Spectra"
"l\nDensity"
      SourceType	      "Power Spectral Density"
      ShowPortLabels	      on
      npts		      "128"
      fftpts		      "512"
      HowOften		      "64"
      sampleT		      "0.1"
    }
    Block {
      BlockType		      Reference
      Name		      "Power Spectral\nDensity3"
      Ports		      [1]
      Position		      [490, 315, 520, 345]
      SourceBlock	      "simulink_extras/Additional\nSinks/Power Spectra"
"l\nDensity"
      SourceType	      "Power Spectral Density"
      ShowPortLabels	      on
      npts		      "128"
      fftpts		      "512"
      HowOften		      "64"
      sampleT		      "0.1"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [1]
      Position		      [250, 39, 280, 71]
      Floating		      off
      Location		      [116, 64, 912, 303]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [1]
      Position		      [335, 39, 365, 71]
      Floating		      off
      Location		      [101, 317, 878, 556]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope3"
      Ports		      [1]
      Position		      [470, 39, 500, 71]
      Floating		      off
      Location		      [116, 354, 889, 593]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "Bernoulli Binary\nGenerator"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Points			[0, -5]
	DstBlock		"Error Rate\nCalculation"
	DstPort			1
      }
      Branch {
	Points			[30, 0]
	Branch {
	  DstBlock		  "Logical\nOperator"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -70]
	  DstBlock		  "Scope1"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, 200]
	DstBlock		"Power Spectral\nDensity1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "PN Sequence\nGenerator"
      SrcPort		      1
      Points		      [-10, 0; 0, -85]
      DstBlock		      "Logical\nOperator"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Logical\nOperator"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Logical\nOperator1"
	DstPort			1
      }
      Branch {
	Points			[0, 0]
	Branch {
	  Points		  [0, -80]
	  DstBlock		  "Scope2"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 195]
	  DstBlock		  "Power Spectral\nDensity2"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "PN Sequence\nGenerator1"
      SrcPort		      1
      Points		      [-15, 0; 0, -80]
      DstBlock		      "Logical\nOperator1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Error Rate\nCalculation"
      SrcPort		      1
      DstBlock		      "Display"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Logical\nOperator1"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	Points			[0, 0]
	Branch {
	  DstBlock		  "Error Rate\nCalculation"
	  DstPort		  2
	}
	Branch {
	  Points		  [0, 0; 0, 185]
	  DstBlock		  "Power Spectral\nDensity3"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, -90]
	DstBlock		"Scope3"
	DstPort			1
      }
    }
  }
}

⌨️ 快捷键说明

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