📄 singleuserpnconv.mdl
字号:
Name "Complex to\nReal-Imag4"
Ports [1, 1]
Position [1136, 790, 1184, 820]
Orientation "down"
NamePlacement "alternate"
ShowName off
Output "Real"
}
Block {
BlockType Reference
Name "Convolutional\nEncoder"
Ports [1, 1]
Position [625, 392, 715, 448]
SourceBlock "commcnvcod2/Convolutional\nEncoder"
SourceType "Convolutional Encoder"
trellis "poly2trellis(7, [171 133])"
opMode "Continuous"
usePuncVector off
punctureVector "[1; 1; 0; 1; 0; 1]"
reset "Unused parameter value"
}
Block {
BlockType Reference
Name "Data Source"
Ports [0, 1]
Position [380, 398, 460, 442]
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
mul "2"
seed "37"
Ts "1"
frameBased off
sampPerFrame "1"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [1040, 304, 1115, 356]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sampPerSymb "1"
offsetEye "0"
numTraces "40"
numNewFrames "10"
LineMarkers "x"
LineColors "[1 0 0]"
fading on
render on
AxisGrid on
xMin "-1.1"
xMax "1.105"
yMin "-1.1"
yMax "1.105"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[360 362 560 560]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope1"
Tag "ScatterPlot"
Ports [1]
Position [1190, 849, 1265, 901]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sampPerSymb "1"
offsetEye "0"
numTraces "40"
numNewFrames "10"
LineMarkers "x"
LineColors "[1 0 0]"
fading on
render on
AxisGrid on
xMin "-1.11692307692307"
xMax "1.122"
yMin "-1.11692307692307"
yMax "1.122"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[360 362 560 560]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType From
Name "From"
Position [505, 761, 605, 779]
CloseFcn "tagdialog Close"
GotoTag "Apres_modulation"
}
Block {
BlockType From
Name "From1"
Position [505, 797, 600, 813]
CloseFcn "tagdialog Close"
GotoTag "Apres_etalement"
}
Block {
BlockType From
Name "From2"
Position [505, 832, 600, 848]
CloseFcn "tagdialog Close"
GotoTag "Apres_canal"
}
Block {
BlockType From
Name "From3"
Position [495, 866, 600, 884]
CloseFcn "tagdialog Close"
GotoTag "Apres_despreading"
}
Block {
BlockType Gain
Name "Gain"
Position [1105, 724, 1145, 756]
Orientation "left"
NamePlacement "alternate"
Gain "1/65"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Goto
Name "Goto"
Position [750, 584, 850, 606]
Orientation "left"
NamePlacement "alternate"
GotoTag "Apres_modulation"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto1"
Position [1245, 599, 1345, 621]
Orientation "left"
NamePlacement "alternate"
GotoTag "Apres_etalement"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto2"
Position [1515, 819, 1615, 841]
NamePlacement "alternate"
GotoTag "Apres_canal"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto3"
Position [830, 854, 930, 876]
Orientation "left"
NamePlacement "alternate"
GotoTag "Apres_despreading"
TagVisibility "local"
}
Block {
BlockType Reference
Name "Hadamard\nCode Generator"
Ports [0, 1]
Position [1030, 468, 1115, 512]
SourceBlock "commseqgen2/Hadamard\nCode Generator"
SourceType "Hadamard Code Generator"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
length "8"
index "4"
ts "1/128"
frameBased off
sampPerFrame "1"
outDataType "double"
}
Block {
BlockType Reference
Name "Integer to Bit\nConverter"
Ports [1, 1]
Position [500, 398, 580, 442]
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "1"
outDtype "Same as input"
}
Block {
BlockType Reference
Name "Integrate\nand Dump"
Ports [1, 1]
Position [995, 718, 1075, 762]
Orientation "left"
NamePlacement "alternate"
SourceBlock "commfilt2/Integrate\nand Dump"
SourceType "Integrate and dump"
obssamples "128"
offsetsamples "0"
nodump off
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [1180, 468, 1260, 512]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 0 0 0 0 1 1]"
ini_sta "[0 0 0 0 0 1]"
outBitMaskSource "Dialog parameter"
shift "0"
Ts "1/128"
frameBased off
sampPerFrame "1"
reset off
bitPackedOutputs off
outDataType "double"
numPackedBits "8"
bitPackDataSigned off
bitPackedOutDType "double"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [1315, 422, 1345, 453]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [1230, 722, 1260, 753]
Orientation "left"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [1190, 412, 1220, 443]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [1345, 727, 1375, 758]
Orientation "left"
NamePlacement "alternate"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "QPSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [865, 715, 940, 765]
Orientation "left"
NamePlacement "alternate"
DialogController "commDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "commdigbbndpm3/QPSK\nDemodulator\nBaseband"
SourceType "QPSK Demodulator Baseband"
Ph "0"
Dec "Binary"
OutType "Bit"
DecType "Hard decision"
VarSource "Dialog"
Variance "1"
outDtype1 "Inherit via internal rule"
outDtype2 "Inherit via internal rule"
derotateFactorDTMode "Same word length as input"
derotateFactorWordLen "16"
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband"
Ports [1, 1]
Position [880, 396, 955, 444]
SourceBlock "commdigbbndpm3/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
InType "Bit"
Enc "Binary"
Ph "0"
outDtype "double"
outWordLen "16"
outUDDataType "sfix(16)"
outFracLenMode "Best precision"
outFracLen "15"
}
Block {
BlockType Scope
Name "Scope"
Ports [4]
Position [645, 794, 675, 826]
Floating off
Location [6, 46, 1270, 769]
Open off
NumInputPorts "4"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-1~-1~-6~-0.1"
YMax "1~1~7~0.1"
DataFormat "StructureWithTime"
MaxDataPoints "8000"
SampleTime "0"
}
Block {
BlockType Reference
Name "Viterbi Decoder"
Ports [1, 1]
Position [625, 712, 715, 768]
Orientation "left"
NamePlacement "alternate"
DialogController "commDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "commcnvcod2/Viterbi Decoder"
SourceType "Viterbi Decoder"
trellis "poly2trellis(7, [171 133])"
isPunctured off
punctureVector "[1; 1; 0; 1; 0; 1]"
erasures off
dectype "Soft decision"
runSigValErrCheck off
nsdecb "4"
smWordLength "16"
tbdepth "34"
opmode "Continuous"
reset off
outDataType "Inherit via internal rule"
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -