📄 myqam16.mdl
字号:
Ports [1, 1]
Position [165, 119, 240, 171]
SourceBlock "commdigbbndam2/Rectangular QAM\nModulator\nBase"
"band"
SourceType "Rectangular QAM Modulator Baseband"
M "16"
InType "Integer"
Enc "Binary"
PowType "Min. distance between symbols"
MinDist "2"
AvgPow "1"
PeakPow "1"
Ph "0"
numSamp "1"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [277, 295, 308, 325]
Orientation "down"
Operator "=="
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [120, 294, 150, 326]
Orientation "left"
NamePlacement "alternate"
Floating off
Location [5, 504, 1025, 762]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "Random integer signal"
}
TimeRange "5"
YMin "-3"
YMax "3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [125, 344, 155, 376]
Orientation "left"
NamePlacement "alternate"
Floating off
Location [5, 255, 1025, 513]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 " QAM16 demodulated Singnal"
}
TimeRange "150"
YMin "0"
YMax "15"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [555, 59, 585, 91]
Floating off
Location [5, 504, 1025, 762]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 " QAM16 demodulated Singnal"
}
TimeRange "5"
YMin "-3"
YMax "3"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [465, 44, 495, 76]
Floating off
Location [5, 504, 1025, 762]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 " QAM16 demodulated Singnal"
}
TimeRange "5"
YMin "-3"
YMax "3"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Reference
Name "Squaring\nTiming Recovery"
Ports [1, 2]
Position [715, 225, 835, 280]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commtimrec2/Squaring\nTiming Recovery"
SourceType "Squaring Timing Recovery"
ShowPortLabels on
numSymb "20"
sampPerSymb "10"
}
Block {
BlockType SubSystem
Name "carrier wave demodulate"
Ports [1, 2]
Position [565, 124, 665, 166]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "carrier wave demodulate"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [110, 98, 140, 112]
IconDisplay "Port number"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [350, 22, 380, 53]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [350, 162, 380, 193]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Block {
BlockType Reference
Name "Raised Cosine\nReceive Filter"
Ports [1, 1]
Position [420, 18, 500, 62]
LinkData {
BlockName "Check Signal\nAttributes"
DialogParameters {
Frame "Sample-based"
Dimensions "Scalar (1-D or 2-D)"
}
BlockName "Downsample"
DialogParameters {
smode "Allow multirate"
fmode "Maintain input frame size"
}
}
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "commfilt2/Raised Cosine\nReceive Filter"
SourceType "Raised Cosine Receive Filter"
ShowPortLabels on
filtType "Square root"
N "10"
D "3"
R "0.5"
sampMode "Sample-based"
rateMode "None"
downFactor "10"
downOffset "0"
checkGain "User-specified"
filterGain "1.5"
checkCoeff off
variableName "rcRxFilt1"
launchFVT off
}
Block {
BlockType Reference
Name "Raised Cosine\nReceive Filter1"
Ports [1, 1]
Position [420, 158, 500, 202]
LinkData {
BlockName "Check Signal\nAttributes"
DialogParameters {
Frame "Sample-based"
Dimensions "Scalar (1-D or 2-D)"
}
BlockName "Downsample"
DialogParameters {
smode "Allow multirate"
fmode "Maintain input frame size"
}
}
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "commfilt2/Raised Cosine\nReceive Filter"
SourceType "Raised Cosine Receive Filter"
ShowPortLabels on
filtType "Square root"
N "10"
D "3"
R "0.5"
sampMode "Sample-based"
rateMode "None"
downFactor "10"
downOffset "0"
checkGain "User-specified"
filterGain "1.5"
checkCoeff off
variableName "rcRxFilt1"
launchFVT off
}
Block {
BlockType Sin
Name "Sine Wave2"
Ports [0, 1]
Position [240, 15, 270, 45]
SineType "Time based"
Frequency "500000"
Phase "pi/2"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave3"
Ports [0, 1]
Position [235, 170, 265, 200]
SineType "Time based"
Frequency "500000"
SampleTime "0"
}
Block {
BlockType Outport
Name "Re"
Position [585, 33, 615, 47]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Im"
Position [585, 173, 615, 187]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [170, 0]
Branch {
Points [0, 65]
DstBlock "Product3"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Product2"
DstPort 2
}
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Raised Cosine\nReceive Filter"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Raised Cosine\nReceive Filter1"
DstPort 1
}
Line {
SrcBlock "Sine Wave3"
SrcPort 1
DstBlock "Product3"
DstPort 2
}
Line {
SrcBlock "Raised Cosine\nReceive Filter"
SrcPort 1
DstBlock "Re"
DstPort 1
}
Line {
SrcBlock "Raised Cosine\nReceive Filter1"
SrcPort 1
DstBlock "Im"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "carrier wave modulate"
Ports [1, 1]
Position [285, 124, 385, 166]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "carrier wave modulate"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [110, 103, 140, 117]
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [590, 92, 620, 123]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [165, 93, 195, 122]
Output "Real and imag"
SampleTime "0.1"
}
Block {
BlockType Reference
Name "I-Raised Cosine\nTransmit Filter"
Ports [1, 1]
Position [280, 38, 360, 82]
LinkData {
BlockName "Check Signal\nAttributes"
DialogParameters {
Frame "Sample-based"
Dimensions "Scalar (1-D or 2-D)"
}
BlockName "FIR\nInterpolation"
DialogParameters {
framing "Maintain input frame size"
}
}
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag2"
SourceBlock "commfilt2/Raised Cosine\nTransmit Filter"
SourceType "Raised Cosine Transmit Filter"
ShowPortLabels on
filtType "Square root"
D "3"
R "0.5"
sampMode "Sample-based"
N "10"
checkGain "User-specified"
filterGain "1"
checkCoeff off
variableName "rcTxFilt"
launchFVT off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [495, 52, 525, 83]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [495, 132, 525, 163]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Block {
BlockType Reference
Name "Q-Raised Cosine\nTransmit Filter1"
Ports [1, 1]
Position [280, 133, 360, 177]
LinkData {
BlockName "Check Signal\nAttributes"
DialogParameters {
Frame "Sample-based"
Dimensions "Scalar (1-D or 2-D)"
}
BlockName "FIR\nInterpolation"
DialogParameters {
framing "Maintain input frame size"
}
}
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag3"
SourceBlock "commfilt2/Raised Cosine\nTransmit Filter"
SourceType "Raised Cosine Transmit Filter"
ShowPortLabels on
filtType "Square root"
D "3"
R "0.5"
sampMode "Sample-based"
N "10"
checkGain "User-specified"
filterGain "1"
checkCoeff off
variableName "rcTxFilt1"
launchFVT off
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [395, 60, 425, 90]
SineType "Time based"
Frequency "500000"
Phase "pi/2"
SampleTime "0"
}
Block {
BlockType Sin
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -