📄 qpsk_mod_const_freq.mdl
字号:
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant"
Position [25, 55, 55, 85]
Value "2"
}
Block {
BlockType Constant
Name "Constant1"
Position [25, 105, 55, 135]
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [120, 10, 150, 90]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "bipolar out"
Position [270, 78, 300, 92]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "unipolar_ip"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "bipolar out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "unipol_to_bipol1"
Ports [1, 1]
Position [140, 387, 280, 453]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "unipol_to_bipol1"
Location [565, 239, 890, 429]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "unipolar_ip"
Position [65, 23, 95, 37]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [210, 16, 245, 154]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant"
Position [25, 55, 55, 85]
Value "2"
}
Block {
BlockType Constant
Name "Constant1"
Position [25, 105, 55, 135]
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [120, 10, 150, 90]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "bipolar out"
Position [270, 78, 300, 92]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "bipolar out"
DstPort 1
}
Line {
SrcBlock "unipolar_ip"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Product"
DstPort 2
}
}
}
Block {
BlockType Outport
Name "data_in"
Position [925, 548, 955, 562]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "data_even_reg"
Position [925, 588, 955, 602]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "data_odd_reg"
Position [925, 623, 955, 637]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "mod_out"
Position [920, 268, 950, 282]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Add"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Mod_op"
DstPort 3
}
Branch {
Points [0, 30]
Branch {
Points [0, 100]
DstBlock "Mod_op1"
DstPort 3
}
Branch {
DstBlock "mod_out"
DstPort 1
}
}
}
Line {
SrcBlock "even odd data source"
SrcPort 2
Points [15, 0]
Branch {
Points [15, 0; 0, 145]
Branch {
DstBlock "unipol_to_bipol1"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "unipol odd"
DstPort 1
}
}
Branch {
Points [0, 355]
DstBlock "data_odd_reg"
DstPort 1
}
}
Line {
SrcBlock "even odd data source"
SrcPort 1
Points [5, 0]
Branch {
Points [25, 0; 0, -25]
Branch {
DstBlock "unipol_to_bipol"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "unipol even"
DstPort 1
}
}
Branch {
Points [40, 0; 0, 440]
DstBlock "data_even_reg"
DstPort 1
}
}
Line {
SrcBlock "Product 2"
SrcPort 1
Points [0, 0; 95, 0]
Branch {
DstBlock "prod_odd"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "odd"
DstPort 3
}
Branch {
Points [0, -165; 10, 0]
Branch {
DstBlock "Add"
DstPort 2
}
Branch {
Points [0, -35]
DstBlock "Mod_op"
DstPort 2
}
}
}
Line {
SrcBlock "Product 1"
SrcPort 1
Points [0, 0; 95, 0]
Branch {
DstBlock "prod_even"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "even"
DstPort 3
}
Branch {
Points [0, 45]
Branch {
Points [0, 50]
DstBlock "Add"
DstPort 1
}
Branch {
DstBlock "Mod_op"
DstPort 1
}
}
}
Line {
SrcBlock "unipol_to_bipol1"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
DstBlock "Product 2"
DstPort 2
}
Branch {
Points [0, 35]
Branch {
Points [0, 45]
DstBlock "odd"
DstPort 1
}
Branch {
DstBlock "Bipol odd"
DstPort 1
}
}
Branch {
Points [0, -75]
DstBlock "Mod_op1"
DstPort 2
}
}
Line {
SrcBlock "unipol_to_bipol"
SrcPort 1
Points [0, 0; 50, 0]
Branch {
DstBlock "Product 1"
DstPort 1
}
Branch {
Points [0, -70]
Branch {
Points [0, -25]
DstBlock "even"
DstPort 1
}
Branch {
DstBlock "Bipol even"
DstPort 1
}
}
Branch {
Points [0, 185]
DstBlock "Mod_op1"
DstPort 1
}
}
Line {
SrcBlock "qudrature Sine"
SrcPort 1
Points [45, 0]
Branch {
Points [0, 120]
Branch {
DstBlock "Product 2"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "odd"
DstPort 2
}
}
Branch {
Points [0, -10]
DstBlock "Sine_odd"
DstPort 1
}
}
Line {
SrcBlock "even odd data source"
SrcPort 3
Points [5, 0; 0, 160]
DstBlock "data_in"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "I-phase Cosine "
SrcPort 1
Points [40, 0]
Branch {
Points [0, -15]
Branch {
DstBlock "Product 1"
DstPort 2
}
Branch {
Points [0, -100]
DstBlock "even"
DstPort 2
}
}
Branch {
Points [0, 45]
DstBlock "Cosine_even"
DstPort 1
}
}
}
}
Block {
BlockType Scope
Name "Scope format"
Ports [4]
Position [765, 128, 905, 397]
Location [5, 54, 1029, 741]
Open off
NumInputPorts "4"
List {
ListType AxesTitles
axes1 "SERIAL DATA STREAM"
axes2 "data_even_reg"
axes3 "data_odd_reg"
axes4 "QPSK MODULATED WAVEFORM ( ONE SYMBOL PER TWO "
"BITS) - actual symbols start from time offset:1"
}
TimeRange "10"
YMin "-5~-5~-5~-5"
YMax "5~5~5~5"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope format1"
Ports [4]
Position [420, 83, 560, 352]
Location [5, 54, 1029, 741]
Open off
NumInputPorts "4"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "SERIAL DATA STREAM"
axes2 "data_even_reg"
axes3 "data_odd_reg"
axes4 "QPSK MODULATED WAVEFORM ( ONE SYMBOL PER TWO "
"BITS) - actual symbols start from time offset:1"
}
TimeRange "10"
YMin "-5~-5~-5~-5"
YMax "5~5~5~5"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Outport
Name "data_in"
Position [305, 93, 335, 107]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "mod_out"
Position [305, 333, 335, 347]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "QPSK modulator"
SrcPort 1
Points [40, 0]
Branch {
Points [10, 0]
DstBlock "data_in"
DstPort 1
}
Branch {
Points [125, 0]
DstBlock "Scope format1"
DstPort 1
}
}
Line {
SrcBlock "QPSK modulator"
SrcPort 4
Points [50, 0]
Branch {
DstBlock "mod_out"
DstPort 1
}
Branch {
Points [115, 0]
DstBlock "Scope format1"
DstPort 4
}
}
Line {
SrcBlock "QPSK modulator"
SrcPort 2
Points [165, 0]
DstBlock "Scope format1"
DstPort 2
}
Line {
SrcBlock "QPSK modulator"
SrcPort 3
Points [165, 0]
DstBlock "Scope format1"
DstPort 3
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -