📄 psk.mdl
字号:
SourceBlock "cbobsv2p5/Sampled\nQuantizer Encode"
SourceType "Sampled Quantizer Encode"
ShowPortLabels on
partition "[0]"
codebook "[0 1]"
n "1"
sample_time "0.5"
}
Block {
BlockType Scope
Name "Scope"
Ports [8]
Position [935, 103, 1020, 302]
Location [5, 54, 1021, 740]
Open off
NumInputPorts "8"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
axes7 "%<SignalLabel>"
axes8 "%<SignalLabel>"
}
TimeRange "10"
YMin "-5~-5~-5~-5~-5~-5~-5~-5"
YMax "5~5~5~5~5~5~5~5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [4]
Position [940, 380, 1025, 550]
Location [5, 54, 1029, 741]
Open off
NumInputPorts "4"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-5~-5~-5~-5"
YMax "5~5~5~5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [2]
Position [650, 1050, 705, 1170]
Location [5, 54, 1029, 741]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [110, 185, 140, 215]
SineType "Time based"
Frequency "8*pi"
SampleTime "0.01"
}
Block {
BlockType Sin
Name "Sine Wave1"
Ports [0, 1]
Position [215, 240, 245, 270]
SineType "Time based"
Frequency "8*pi"
Phase "2*pi"
SampleTime "0.01"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [445, 280, 465, 300]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [445, 385, 465, 405]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [440, 510, 460, 530]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [220, 113, 300, 157]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [5, 0]
Branch {
Points [10, 0]
Branch {
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Branch {
Points [0, -40; 415, 0; 0, 20]
DstBlock "Scope"
DstPort 1
}
}
Branch {
Points [0, 510]
Branch {
Points [0, 5]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Branch {
Points [0, 120]
Branch {
Points [0, 5]
DstBlock "Error Rate\nCalculation1"
DstPort 1
}
Branch {
Points [0, 100]
Branch {
Points [0, 5]
DstBlock "Error Rate\nCalculation2"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Error Rate\nCalculation3"
DstPort 1
}
}
}
}
Branch {
Points [0, -85]
DstBlock "Power Spectral\nDensity1"
DstPort 1
}
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -100; 470, 0; 0, 105]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, -35]
DstBlock "Scope"
DstPort 3
}
}
Line {
SrcBlock "Analog\nFilter Design"
SrcPort 1
DstBlock "Sampled\nQuantizer Encode"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design1"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 15]
Branch {
Points [0, 80]
Branch {
Points [0, 25]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 50]
Branch {
Points [0, 55]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, 125]
DstBlock "Sum2"
DstPort 1
}
}
Branch {
Points [510, 0]
DstBlock "Scope1"
DstPort 1
}
}
}
Branch {
Points [-15, 0; 0, 815]
DstBlock "Scope2"
DstPort 1
}
}
Branch {
DstBlock "Analog\nFilter Design7"
DstPort 1
}
}
Branch {
Points [505, 0]
DstBlock "Scope"
DstPort 4
}
Branch {
Points [0, -115]
DstBlock "Power Spectral\nDensity"
DstPort 1
}
}
Line {
SrcBlock "Gaussian Noise\nGenerator"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Analog\nFilter Design1"
DstPort 1
}
Branch {
Points [0, 65; 425, 0; 0, 90]
DstBlock "Scope1"
DstPort 2
}
}
Line {
SrcBlock "Rayleigh Noise\nGenerator"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Rician Noise\nGenerator"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Analog\nFilter Design"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Analog\nFilter Design2"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Scope1"
DstPort 3
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Analog\nFilter Design4"
DstPort 1
}
Branch {
Points [0, 100; 445, 0; 0, -95]
DstBlock "Scope1"
DstPort 4
}
}
Line {
SrcBlock "Analog\nFilter Design4"
SrcPort 1
DstBlock "Product3"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design7"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Product4"
DstPort 1
}
Branch {
Points [0, 955]
DstBlock "Scope2"
DstPort 2
}
}
Line {
SrcBlock "Product4"
SrcPort 1
DstBlock "Analog\nFilter Design6"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design6"
SrcPort 1
DstBlock "Sampled\nQuantizer Encode3"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design2"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Analog\nFilter Design5"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Analog\nFilter Design3"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design3"
SrcPort 1
DstBlock "Sampled\nQuantizer Encode1"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design5"
SrcPort 1
DstBlock "Sampled\nQuantizer Encode2"
DstPort 1
}
Line {
SrcBlock "Sampled\nQuantizer Encode3"
SrcPort 2
Points [10, 0]
Branch {
Points [15, 0; 0, 5]
DstBlock "Scope"
DstPort 5
}
Branch {
Points [0, 45; -20, 0]
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Branch {
Points [0, -155]
DstBlock "Power Spectral\nDensity2"
DstPort 1
}
}
Line {
SrcBlock "Sampled\nQuantizer Encode"
SrcPort 2
Points [35, 0; 0, -10]
Branch {
Points [0, -65]
DstBlock "Scope"
DstPort 6
}
Branch {
Points [-75, 0; 0, 490]
DstBlock "Error Rate\nCalculation1"
DstPort 2
}
}
Line {
SrcBlock "Sampled\nQuantizer Encode1"
SrcPort 2
Points [35, 0; 0, -40]
Branch {
Points [0, -115]
DstBlock "Scope"
DstPort 7
}
Branch {
Points [-60, 0; 0, 515]
DstBlock "Error Rate\nCalculation2"
DstPort 2
}
}
Line {
SrcBlock "Sampled\nQuantizer Encode2"
SrcPort 2
Points [10, 0]
Branch {
Points [70, 0; 0, -255]
DstBlock "Scope"
DstPort 8
}
Branch {
DstBlock "Error Rate\nCalculation3"
DstPort 2
}
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [25, 0]
Branch {
Points [300, 0]
DstBlock "Product4"
DstPort 2
}
Branch {
Points [0, 80]
Branch {
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 105]
Branch {
DstBlock "Product2"
DstPort 2
}
Branch {
Points [0, 125]
DstBlock "Product3"
DstPort 2
}
}
}
}
Line {
SrcBlock "Error Rate\nCalculation1"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation2"
SrcPort 1
DstBlock "Display2"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation3"
SrcPort 1
DstBlock "Display3"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -