📄 m_qam_psk_demo.mdl
字号:
MaskHideContents off
System {
Name "Up Convert1"
Location [471, 581, 1231, 877]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [215, 108, 245, 122]
IconDisplay "Port number"
}
Block {
BlockType ComplexToRealImag
Name " "
Ports [1, 2]
Position [290, 97, 340, 128]
Output "Real and imag"
}
Block {
BlockType Product
Name " "
Ports [2, 1]
Position [480, 41, 525, 74]
RndMeth "Floor"
}
Block {
BlockType Product
Name " "
Ports [2, 1]
Position [485, 166, 530, 199]
RndMeth "Floor"
}
Block {
BlockType Sin
Name "I "
Ports [0, 1]
Position [405, 90, 435, 120]
Orientation "up"
SineType "Time based"
Frequency "2*pi*Fc"
Phase "pi/2"
SampleTime "T/1000"
}
Block {
BlockType Sin
Name "Q"
Ports [0, 1]
Position [405, 120, 435, 150]
Orientation "down"
SineType "Time based"
Frequency "2*pi*Fc"
SampleTime "T/1000"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [580, 89, 615, 131]
ShowName off
Inputs "+-"
}
Block {
BlockType Outport
Name "Out"
Position [650, 103, 680, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock " "
SrcPort 2
Points [20, 0; 0, 70]
DstBlock " "
DstPort 2
}
Line {
SrcBlock "Q"
SrcPort 1
Points [0, 20]
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
Points [20, 0; 0, -55]
DstBlock " "
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock " "
SrcPort 1
Points [35, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "I "
SrcPort 1
Points [0, -20]
DstBlock " "
DstPort 2
}
Line {
SrcBlock "In"
SrcPort 1
Points [0, 0]
DstBlock " "
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Up Convert2"
Ports [1, 1]
Position [325, 191, 375, 249]
NamePlacement "alternate"
FontName "Arial"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Up Convert2"
Location [471, 581, 1231, 877]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [215, 108, 245, 122]
IconDisplay "Port number"
}
Block {
BlockType ComplexToRealImag
Name " "
Ports [1, 2]
Position [290, 97, 340, 128]
Output "Real and imag"
}
Block {
BlockType Product
Name " "
Ports [2, 1]
Position [480, 41, 525, 74]
RndMeth "Floor"
}
Block {
BlockType Product
Name " "
Ports [2, 1]
Position [485, 166, 530, 199]
RndMeth "Floor"
}
Block {
BlockType Sin
Name "I "
Ports [0, 1]
Position [405, 90, 435, 120]
Orientation "up"
SineType "Time based"
Frequency "2*pi*Fc"
Phase "pi/2"
SampleTime "T/1000"
}
Block {
BlockType Sin
Name "Q"
Ports [0, 1]
Position [405, 120, 435, 150]
Orientation "down"
SineType "Time based"
Frequency "2*pi*Fc"
SampleTime "T/1000"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [580, 89, 615, 131]
ShowName off
Inputs "+-"
}
Block {
BlockType Outport
Name "Out"
Position [650, 103, 680, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock " "
SrcPort 2
Points [20, 0; 0, 70]
DstBlock " "
DstPort 2
}
Line {
SrcBlock "Q"
SrcPort 1
Points [0, 20]
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
Points [20, 0; 0, -55]
DstBlock " "
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock " "
SrcPort 1
Points [35, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "I "
SrcPort 1
Points [0, -20]
DstBlock " "
DstPort 2
}
Line {
SrcBlock "In"
SrcPort 1
Points [0, 0]
DstBlock " "
DstPort 1
}
}
}
Line {
SrcBlock "M-PSK\nModulator\nBaseband"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Up Convert1"
DstPort 1
}
Branch {
Points [-10, 0]
DstBlock "Manual Switch"
DstPort 1
}
}
Line {
SrcBlock "Sampled read\nfrom wksp"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "M-PSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Rectangular QAM\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "Demux"
DstPort 1
}
}
Line {
SrcBlock "Up Convert1"
SrcPort 1
DstBlock "Time\nScope2"
DstPort 5
}
Line {
SrcBlock "Rectangular QAM\nModulator\nBaseband"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Up Convert2"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Manual Switch"
DstPort 2
}
}
Line {
SrcBlock "Up Convert2"
SrcPort 1
Points [15, 0; 0, -90]
DstBlock "Time\nScope2"
DstPort 6
}
Line {
SrcBlock " "
SrcPort 1
Points [0, 0]
DstBlock "Time\nScope1"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 2
Points [0, 0]
DstBlock "Time\nScope1"
DstPort 2
}
Line {
SrcBlock "Manual Switch"
SrcPort 1
Points [5, 0]
Branch {
DstBlock " "
DstPort 1
}
Branch {
Points [-5, 0]
DstBlock "T/1"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 4
DstBlock "Time\nScope2"
DstPort 4
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Time\nScope2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Time\nScope2"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Time\nScope2"
DstPort 3
}
Line {
SrcBlock "T/1"
SrcPort 1
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
Annotation {
Position [483, 344]
UseDisplayTextAsClickCallback off
}
Annotation {
Position [379, 336]
UseDisplayTextAsClickCallback off
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -