📄 bpsk.mdl
字号:
}
Block {
BlockType Reference
Name "Differential Encoder1"
Ports [1, 1]
Position [280, 268, 360, 312]
SourceBlock "commsrccod2/Differential Encoder"
SourceType "Differential Encoder"
td "1"
}
Block {
BlockType Reference
Name "Gold Sequence\nGenerator1"
Ports [0, 1]
Position [145, 188, 225, 232]
SourceBlock "commseqgen2/Gold Sequence\nGenerator"
SourceType "Gold Sequence Generator"
genPoly1 "[1 0 0 0 0 1 1]"
iniState1 "[0 0 0 0 0 1]"
genPoly2 "[1 1 0 0 1 1 1]"
iniState2 "[0 0 0 0 0 1]"
index "0"
shift "0"
ts "1/2200"
frameBased off
sampPerFrame "1"
reset off
}
Block {
BlockType Reference
Name "Gold Sequence\nGenerator2"
Ports [0, 1]
Position [140, 268, 220, 312]
SourceBlock "commseqgen2/Gold Sequence\nGenerator"
SourceType "Gold Sequence Generator"
genPoly1 "[1 0 0 1 0 1 1]"
iniState1 "[0 0 0 0 0 1]"
genPoly2 "[1 1 0 0 1 1 1]"
iniState2 "[0 0 0 0 0 1]"
index "0"
shift "0"
ts "1/2200"
frameBased off
sampPerFrame "1"
reset off
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [530, 171, 575, 204]
InputSameDT off
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [525, 281, 570, 314]
InputSameDT off
}
Block {
BlockType Sin
Name "Sine Wave"
Position [465, 340, 495, 370]
SineType "Time based"
Frequency "7000"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave1"
Position [465, 125, 495, 155]
SineType "Time based"
Frequency "7000"
Phase "pi/2"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [595, 210, 615, 230]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "qpsk"
Position [810, 213, 840, 227]
}
Block {
BlockType Outport
Name "i_data"
Position [250, 78, 280, 92]
Port "2"
}
Block {
BlockType Outport
Name "q_data"
Position [255, 408, 285, 422]
Port "3"
}
Line {
SrcBlock "Gold Sequence\nGenerator1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "i_data"
DstPort 1
}
Branch {
DstBlock "Differential Encoder"
DstPort 1
}
}
Line {
SrcBlock "Gold Sequence\nGenerator2"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 125]
DstBlock "q_data"
DstPort 1
}
Branch {
DstBlock "Differential Encoder1"
DstPort 1
}
}
Line {
SrcBlock "Data Mapper1"
SrcPort 1
DstBlock "Product5"
DstPort 1
}
Line {
SrcBlock "Data Mapper"
SrcPort 1
Points [0, -15]
DstBlock "Product4"
DstPort 2
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [5, 0; 0, 40]
DstBlock "Product4"
DstPort 1
}
Line {
SrcBlock "Product4"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [0, -50]
DstBlock "Product5"
DstPort 2
}
Line {
SrcBlock "Product5"
SrcPort 1
Points [30, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Analog\nFilter Design"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design"
SrcPort 1
DstBlock "qpsk"
DstPort 1
}
Line {
SrcBlock "Differential Encoder"
SrcPort 1
DstBlock "Data Mapper"
DstPort 1
}
Line {
SrcBlock "Differential Encoder1"
SrcPort 1
DstBlock "Data Mapper1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Differential Decoder"
Ports [1, 1]
Position [1285, 97, 1365, 143]
SourceBlock "commsrccod2/Differential Decoder"
SourceType "Differential Decoder"
td "1"
}
Block {
BlockType Reference
Name "Differential Decoder1"
Ports [1, 1]
Position [1285, 167, 1365, 213]
SourceBlock "commsrccod2/Differential Decoder"
SourceType "Differential Decoder"
td "1"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [1005, 580, 1095, 610]
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [1005, 535, 1095, 565]
Decimation "1"
}
Block {
BlockType Gain
Name "Gain"
Position [795, 490, 825, 520]
}
Block {
BlockType Reference
Name "Modulo\nIntegrator1"
Ports [1, 1]
Position [800, 370, 880, 410]
Orientation "left"
NamePlacement "alternate"
SourceBlock "comminteg2/Modulo\nIntegrator"
SourceType "Modulo Integrator"
modu "2*pi"
init "0"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [670, 76, 715, 109]
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [670, 126, 715, 159]
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [670, 176, 715, 209]
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [670, 226, 715, 259]
}
Block {
BlockType Quantizer
Name "Quantizer1"
Position [505, 120, 535, 150]
QuantizationInterval "0.1"
LinearizeAsGain off
}
Block {
BlockType Quantizer
Name "Quantizer2"
Position [500, 220, 530, 250]
QuantizationInterval "0.1"
LinearizeAsGain off
}
Block {
BlockType Reference
Name "Sample\nand Hold"
Ports [1, 1, 0, 1]
Position [395, 114, 445, 156]
SourceBlock "dspsigops/Sample\nand Hold"
SourceType "Sample and Hold"
trig "Rising edge"
initCond "0"
}
Block {
BlockType Reference
Name "Sample\nand Hold1"
Ports [1, 1, 0, 1]
Position [395, 214, 445, 256]
SourceBlock "dspsigops/Sample\nand Hold"
SourceType "Sample and Hold"
trig "Rising edge"
initCond "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [1110, 488, 1140, 522]
Location [18, 75, 1042, 751]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
TimeRange "2"
YMin "-0.3~-7~-2"
YMax "0.25~7~1.75"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [3]
Position [1285, 298, 1315, 332]
Location [-57, 187, 967, 863]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
TimeRange "0.2"
YMin "-1.5~-1.5~-2"
YMax "1.5~1.5~1.75"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [3]
Position [880, 223, 910, 257]
Location [-39, 210, 985, 886]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
TimeRange "0.02"
YMin "-1.5~-1.5~-2"
YMax "1.5~1.5~1.75"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope3"
Ports [2]
Position [1420, 181, 1450, 214]
Location [20, 66, 1044, 743]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.02"
YMin "-5~-5"
YMax "5~5"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope4"
Ports [2]
Position [1425, 76, 1455, 109]
Location [7, 133, 1031, 774]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.02"
YMin "-5~-5"
YMax "5~5"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [930, 365, 1030, 415]
Orientation "left"
NamePlacement "alternate"
TreatAsAtomicUnit off
System {
Name "Subsystem"
Location [107, 229, 724, 588]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [55, 98, 85, 112]
}
Block {
BlockType Gain
Name "Gain1"
Position [175, 45, 205, 75]
Gain "0.14"
}
Block {
BlockType Gain
Name "Gain2"
Position [360, 160, 390, 190]
Gain "0.01"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [250, 50, 270, 70]
ShowName off
IconShape "round"
Inputs "|++"
ShowAdditionalParam on
InputSameDT off
RndMeth "Nearest"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [210, 165, 230, 185]
ShowName off
IconShape "round"
Inputs "|++"
ShowAdditionalParam on
InputSameDT off
RndMeth "Nearest"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [320, 50, 340, 70]
ShowName off
IconShape "round"
Inputs "|++"
ShowAdditionalParam on
InputSameDT off
RndMeth "Nearest"
SaturateOnIntegerOverflow off
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [375, 85, 410, 125]
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [295, 190, 330, 230]
SampleTime "-1"
}
Block {
BlockType Outport
Name "Out1"
Position [480, 53, 510, 67]
}
Line {
SrcBlock "In1"
SrcPort 1
Points [70, 0; 0, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -