📄 simulink—qpsk.mdl
字号:
numSamp "1"
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [120, 98, 200, 142]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
mul "2"
seed "12654"
Ts "1"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Reference
Name "Random Integer\nGenerator1"
Ports [0, 1]
Position [120, 188, 200, 232]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
mul "2"
seed "12054"
Ts "1"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Scope
Name "Scope"
Ports [6]
Position [835, 12, 890, 88]
Location [1, 50, 1025, 737]
Open off
NumInputPorts "6"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
}
YMin "-1~-1~-2~-2~-1~-1"
YMax "2~2~2~2~2~4"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [4]
Position [230, 422, 280, 483]
Orientation "left"
NamePlacement "alternate"
Location [5, 54, 1029, 741]
Open off
NumInputPorts "4"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-1~-1~-2~-2"
YMax "2~2~2~2"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [255, 98, 335, 142]
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 [255, 188, 335, 232]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter2"
Ports [1, 1]
Position [260, 283, 340, 327]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter3"
Ports [1, 1]
Position [405, 558, 485, 602]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter4"
Ports [1, 1]
Position [540, 418, 620, 462]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter5"
Ports [1, 1]
Position [540, 498, 620, 542]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Positive"
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Branch {
Points [0, -60; 135, 0]
Branch {
Points [40, 0; 0, -25]
DstBlock "Scope"
DstPort 2
}
Branch {
Points [0, 370]
DstBlock "Scope1"
DstPort 1
}
}
}
Line {
SrcBlock "Random Integer\nGenerator1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Unipolar to\nBipolar\nConverter1"
DstPort 1
}
Branch {
Points [0, -180; 170, 0]
Branch {
Points [0, -5]
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 430]
DstBlock "Scope1"
DstPort 3
}
}
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter2"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
Points [0, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter2"
SrcPort 1
Points [45, 0; 0, -80]
Branch {
Points [0, -90]
DstBlock "Product"
DstPort 2
}
Branch {
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter1"
SrcPort 1
Points [0, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Bipolar to\nUnipolar\nConverter1"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "Scope"
DstPort 3
}
}
Line {
Labels [1, 0]
SrcBlock "Product1"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Bipolar to\nUnipolar\nConverter2"
DstPort 1
}
Branch {
Points [0, -165]
DstBlock "Scope"
DstPort 4
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Bit to Integer\nConverter1"
DstPort 1
}
Branch {
Points [0, -75]
DstBlock "Scope"
DstPort 5
}
}
Line {
SrcBlock "Bipolar to\nUnipolar\nConverter1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Bipolar to\nUnipolar\nConverter2"
SrcPort 1
Points [15, 0]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Bit to Integer\nConverter1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "QPSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "Scope"
DstPort 6
}
}
Line {
SrcBlock "QPSK\nModulator\nBaseband"
SrcPort 1
Points [15, 0]
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 45]
DstBlock "QPSK\nDemodulator\nBaseband1"
DstPort 1
}
Line {
SrcBlock "QPSK\nDemodulator\nBaseband1"
SrcPort 1
DstBlock "Integer to Bit\nConverter"
DstPort 1
}
Line {
SrcBlock "Integer to Bit\nConverter"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter4"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [-10, 0; 0, 60]
DstBlock "Unipolar to\nBipolar\nConverter5"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [0, -5]
DstBlock "Scope1"
DstPort 2
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [-30, 0; 0, -55]
DstBlock "Scope1"
DstPort 4
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter3"
SrcPort 1
Points [25, 0; 0, -45]
Branch {
DstBlock "Product3"
DstPort 2
}
Branch {
Points [0, -80]
DstBlock "Product2"
DstPort 2
}
}
Line {
SrcBlock "PN Sequence\nGenerator1"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter3"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter4"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter5"
SrcPort 1
DstBlock "Product3"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -