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

📄 sc.mdl

📁 用matlab的simulink做的对选择式分集进行的测试 及性能验证。
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      BlockType		      Scope
      Name		      "Scope3"
      Ports		      [1]
      Position		      [500, 24, 530, 56]
      Location		      [5, 414, 1023, 653]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Reference
      Name		      "Signal To\nWorkspace"
      Ports		      [1]
      Position		      [295, 402, 385, 438]
      FontName		      "Arial"
      SourceBlock	      "dspsnks4/Signal To\nWorkspace"
      SourceType	      "Signal To Workspace"
      VariableName	      "BER"
      MaxDataPoints	      "1"
      Decimation	      "1"
      FrameMode		      "Concatenate frames (2-D array)"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [920, 320, 940, 340]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Switch Case Action\nSubsystem1"
      Ports		      [1, 1, 0, 0, 0, 0, 0, 1]
      Position		      [735, 348, 805, 382]
      TreatAsAtomicUnit	      on
      System {
	Name			"Switch Case Action\nSubsystem1"
	Location		[319, 422, 817, 722]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [75, 78, 105, 92]
	}
	Block {
	  BlockType		  ActionPort
	  Name			  "Action Port"
	  Position		  [170, 15, 229, 43]
	  InitializeStates	  "reset"
	  ActionType		  "elseif"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [325, 78, 355, 92]
	  OutputWhenDisabled	  "reset"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Switch Case Action\nSubsystem3"
      Ports		      [1, 1, 0, 0, 0, 0, 0, 1]
      Position		      [800, 238, 870, 272]
      TreatAsAtomicUnit	      on
      System {
	Name			"Switch Case Action\nSubsystem3"
	Location		[319, 422, 817, 722]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [75, 78, 105, 92]
	}
	Block {
	  BlockType		  ActionPort
	  Name			  "Action Port"
	  Position		  [170, 15, 229, 43]
	  InitializeStates	  "reset"
	  ActionType		  "then"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [325, 78, 355, 92]
	  OutputWhenDisabled	  "reset"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Zero-Order\nHold1"
      Position		      [595, 86, 630, 124]
      SampleTime	      "1e-6/20"
    }
    Block {
      BlockType		      SubSystem
      Name		      "channel"
      Ports		      [1, 1]
      Position		      [305, 65, 405, 125]
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('channel')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"channel"
	Location		[131, 281, 521, 505]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In"
	  Position		  [25, 38, 55, 52]
	}
	Block {
	  BlockType		  Reference
	  Name			  "AWGN\nChannel1"
	  Ports			  [1, 1]
	  Position		  [205, 25, 270, 65]
	  ShowName		  off
	  SourceBlock		  "commchan2/AWGN\nChannel"
	  SourceType		  "AWGN Channel"
	  seed			  "61"
	  noiseMode		  "Signal to noise ratio  (SNR)"
	  EsNodB		  "40"
	  SNRdB			  "EbNodB"
	  Ps			  "1"
	  Tsym			  "4e-6/80"
	  variance		  "1"
	}
	Block {
	  BlockType		  MATLABFcn
	  Name			  "MATLAB Fcn"
	  Position		  [80, 30, 140, 60]
	  MATLABFcn		  "rice_fading"
	  Output1D		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [330, 38, 360, 52]
	}
	Line {
	  SrcBlock		  "MATLAB Fcn"
	  SrcPort		  1
	  DstBlock		  "AWGN\nChannel1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In"
	  SrcPort		  1
	  DstBlock		  "MATLAB Fcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "AWGN\nChannel1"
	  SrcPort		  1
	  DstBlock		  "Out"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "channel1"
      Ports		      [1, 1]
      Position		      [305, 255, 405, 315]
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('channel')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"channel1"
	Location		[131, 281, 521, 505]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In"
	  Position		  [25, 38, 55, 52]
	}
	Block {
	  BlockType		  Reference
	  Name			  "AWGN\nChannel1"
	  Ports			  [1, 1]
	  Position		  [205, 25, 270, 65]
	  ShowName		  off
	  SourceBlock		  "commchan2/AWGN\nChannel"
	  SourceType		  "AWGN Channel"
	  seed			  "74"
	  noiseMode		  "Signal to noise ratio  (SNR)"
	  EsNodB		  "40"
	  SNRdB			  "EbNodB"
	  Ps			  "1"
	  Tsym			  "4e-6/80"
	  variance		  "1"
	}
	Block {
	  BlockType		  MATLABFcn
	  Name			  "MATLAB Fcn"
	  Position		  [100, 30, 160, 60]
	  MATLABFcn		  "rice_fading"
	  Output1D		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [330, 38, 360, 52]
	}
	Line {
	  SrcBlock		  "MATLAB Fcn"
	  SrcPort		  1
	  DstBlock		  "AWGN\nChannel1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In"
	  SrcPort		  1
	  DstBlock		  "MATLAB Fcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "AWGN\nChannel1"
	  SrcPort		  1
	  DstBlock		  "Out"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Random Integer\nGenerator"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Error Rate\nCalculation1"
	DstPort			1
      }
      Branch {
	Points			[0, -75]
	DstBlock		"Scope"
	DstPort			1
      }
      Branch {
	DstBlock		"BPSK\nModulator\nBaseband"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "BPSK\nModulator\nBaseband"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"channel1"
	DstPort			1
      }
      Branch {
	DstBlock		"channel"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "MinMax"
      SrcPort		      1
      DstBlock		      "Zero-Order\nHold1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Abs1"
      SrcPort		      1
      Points		      [25, 0; 0, -55]
      Branch {
	Points			[0, -120]
	DstBlock		"MinMax"
	DstPort			2
      }
      Branch {
	DstBlock		"If"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Zero-Order\nHold1"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "If"
      DstPort		      1
    }
    Line {
      SrcBlock		      "If"
      SrcPort		      2
      Points		      [5, 0]
      DstBlock		      "Switch Case Action\nSubsystem1"
      DstPort		      ifaction
    }
    Line {
      SrcBlock		      "Switch Case Action\nSubsystem3"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"Display"
	DstPort			1
      }
      Branch {
	Points			[0, 75]
	DstBlock		"Sum"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Switch Case Action\nSubsystem1"
      SrcPort		      1
      Points		      [60, 0]
      Branch {
	DstBlock		"Display1"
	DstPort			1
      }
      Branch {
	Points			[60, 0]
	DstBlock		"Sum"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [0, 170]
      Branch {
	DstBlock		"Display2"
	DstPort			1
      }
      Branch {
	DstBlock		"BPSK\nDemodulator\nBaseband"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "channel1"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"Abs1"
	DstPort			1
      }
      Branch {
	Points			[0, 80]
	DstBlock		"Switch Case Action\nSubsystem1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "BPSK\nDemodulator\nBaseband"
      SrcPort		      1
      Points		      [-250, 0]
      Branch {
	DstBlock		"Error Rate\nCalculation1"
	DstPort			2
      }
      Branch {
	Points			[0, 35]
	DstBlock		"Scope1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "channel"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"Abs"
	DstPort			1
      }
      Branch {
	DstBlock		"Display3"
	DstPort			1
      }
      Branch {
	Points			[0, 160]
	DstBlock		"Switch Case Action\nSubsystem3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Error Rate\nCalculation1"
      SrcPort		      1
      Points		      [0, 0; 15, 0]
      Branch {
	Points			[0, -30]
	DstBlock		"Display4"
	DstPort			1
      }
      Branch {
	Points			[0, 25]
	DstBlock		"Signal To\nWorkspace"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Abs"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"MinMax"
	DstPort			1
      }
      Branch {
	Points			[0, 120]
	DstBlock		"If"
	DstPort			2
      }
      Branch {
	DstBlock		"Scope3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "If"
      SrcPort		      1
      Points		      [70, 0]
      DstBlock		      "Switch Case Action\nSubsystem3"
      DstPort		      ifaction
    }
  }
}

⌨️ 快捷键说明

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