📄 sc8.mdl
字号:
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 "channel2"
Ports [1, 1]
Position [90, 170, 190, 230]
TreatAsAtomicUnit off
MaskDisplay "disp('channel')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "channel2"
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 [215, 25, 295, 65]
ShowName off
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "123"
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 [105, 30, 165, 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 "channel3"
Ports [1, 1]
Position [95, 90, 195, 150]
TreatAsAtomicUnit off
MaskDisplay "disp('channel')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "channel3"
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 [215, 25, 295, 65]
ShowName off
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "107"
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 [105, 30, 165, 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 Outport
Name "Out1"
Position [915, 193, 945, 207]
}
Block {
BlockType Outport
Name "Out2"
Position [425, 78, 455, 92]
Port "2"
}
Line {
SrcBlock "Abs"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "If"
DstPort 2
}
Branch {
Points [0, -60]
Branch {
Points [0, -35]
DstBlock "Scope2"
DstPort 1
}
Branch {
DstBlock "MinMax"
DstPort 1
}
}
}
Line {
SrcBlock "Abs1"
SrcPort 1
Points [25, 0; 0, -50]
Branch {
DstBlock "If"
DstPort 3
}
Branch {
Points [0, -70]
DstBlock "MinMax"
DstPort 2
}
}
Line {
SrcBlock "channel2"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Abs1"
DstPort 1
}
Branch {
Points [0, 30; 125, 0]
Branch {
DstBlock "Switch Case Action\nSubsystem2"
DstPort 1
}
Branch {
Points [0, 20]
DstBlock "Display4"
DstPort 1
}
}
}
Line {
SrcBlock "channel3"
SrcPort 1
Points [25, 0; 0, 15]
Branch {
DstBlock "Abs"
DstPort 1
}
Branch {
Points [0, 40; 130, 0]
Branch {
DstBlock "Switch Case Action\nSubsystem1"
DstPort 1
}
Branch {
DstBlock "Display"
DstPort 1
}
}
}
Line {
SrcBlock "MinMax"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "channel1"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Abs2"
DstPort 1
}
Branch {
Points [0, 35; 130, 0]
Branch {
DstBlock "Switch Case Action\nSubsystem3"
DstPort 1
}
Branch {
DstBlock "Display2"
DstPort 1
}
}
}
Line {
SrcBlock "channel"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Abs3"
DstPort 1
}
Branch {
Points [0, 40; 130, 0]
Branch {
DstBlock "Switch Case Action\nSubsystem4"
DstPort 1
}
Branch {
DstBlock "Display1"
DstPort 1
}
}
}
Line {
SrcBlock "Abs2"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
DstBlock "If1"
DstPort 2
}
Branch {
Points [0, -195]
DstBlock "MinMax"
DstPort 3
}
}
Line {
SrcBlock "Abs3"
SrcPort 1
Points [45, 0; 0, -65]
Branch {
DstBlock "If1"
DstPort 3
}
Branch {
Points [0, -205]
DstBlock "MinMax"
DstPort 4
}
}
Line {
SrcBlock "If"
SrcPort 1
Points [160, 0]
DstBlock "Switch Case Action\nSubsystem1"
DstPort ifaction
}
Line {
SrcBlock "If"
SrcPort 2
Points [85, 0]
DstBlock "Switch Case Action\nSubsystem2"
DstPort ifaction
}
Line {
SrcBlock "If1"
SrcPort 1
Points [90, 0]
DstBlock "Switch Case Action\nSubsystem3"
DstPort ifaction
}
Line {
SrcBlock "If1"
SrcPort 2
Points [25, 0]
DstBlock "Switch Case Action\nSubsystem4"
DstPort ifaction
}
Line {
SrcBlock "Switch Case Action\nSubsystem1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Switch Case Action\nSubsystem2"
SrcPort 1
Points [105, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Switch Case Action\nSubsystem3"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Switch Case Action\nSubsystem4"
SrcPort 1
Points [165, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [30, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [5, 0; 0, 85]
Branch {
Points [0, 145]
DstBlock "If1"
DstPort 1
}
Branch {
DstBlock "If"
DstPort 1
}
}
Line {
SrcBlock "In2"
SrcPort 1
Points [10, 0; 0, 30]
Branch {
Points [0, 80]
Branch {
Points [0, 80]
Branch {
Points [0, 80]
DstBlock "channel"
DstPort 1
}
Branch {
DstBlock "channel1"
DstPort 1
}
}
Branch {
Points [0, 0]
DstBlock "channel2"
DstPort 1
}
}
Branch {
DstBlock "channel3"
DstPort 1
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [10, 0]
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [735, 155, 755, 175]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [780, 101, 815, 139]
SampleTime "1e-6/20"
}
Line {
SrcBlock "BPSK\nDemodulator\nBaseband"
SrcPort 1
Points [-25, 0; 0, -75]
DstBlock "Error Rate\nCalculation1"
DstPort 2
}
Line {
SrcBlock "Error Rate\nCalculation1"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Signal To\nWorkspace"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "Display5"
DstPort 1
}
}
Line {
SrcBlock "Subsystem"
SrcPort 2
DstBlock "MinMax"
DstPort 1
}
Line {
SrcBlock "Subsystem1"
SrcPort 2
Points [30, 0; 0, -95]
DstBlock "MinMax"
DstPort 2
}
Line {
SrcBlock "BPSK\nModulator\nBaseband"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Subsystem"
DstPort 2
}
Branch {
Points [0, 110]
DstBlock "Subsystem1"
DstPort 2
}
}
Line {
SrcBlock "MinMax"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
Points [10, 0; 0, -60; -215, 0]
Branch {
DstBlock "Subsystem"
DstPort 1
}
Branch {
Points [-10, 0; 0, 130]
DstBlock "Subsystem1"
DstPort 1
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [15, 0; 0, 85]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Subsystem1"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [15, 0; 0, 240]
Branch {
DstBlock "BPSK\nDemodulator\nBaseband"
DstPort 1
}
Branch {
DstBlock "Display3"
DstPort 1
}
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "BPSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 90]
Branch {
Points [0, 105]
DstBlock "Error Rate\nCalculation1"
DstPort 1
}
Branch {
DstBlock "Scope"
DstPort 1
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -