📄 rayleighflatfading_psk.mdl
字号:
ConfigPrmDlgPosition " [ 520, 285, 1400, 915 ] "
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
BlockParameterDefaults {
Block {
BlockType DataTypeConversion
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Inherit via back propagation"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
OutDataTypeStr "Inherit: Inherit via back propagation"
LockScale off
ConvertRealWorld "Real World Value (RWV)"
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType From
IconDisplay "Tag"
TagVisibility "local"
}
Block {
BlockType Goto
IconDisplay "Tag"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
CollapseMode "All dimensions"
CollapseDim "1"
InputSameDT on
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as first input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
OutDataTypeStr "Inherit: Same as first input"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType SubSystem
ShowPortLabels "FromPortIcon"
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
CheckFcnCallInpInsideContextMsg off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
}
System {
Name RayleighFlatFading_PSK
Location [448, 247, 1535, 876]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [450, 185, 520, 245]
ShowName off
SourceBlock "commchan3/AWGN\nChannel"
SourceType "AWGN Channel"
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"
seed "67"
noiseMode "Signal to noise ratio (Eb/No)"
EbNodB "EbNo"
EsNodB "10"
SNRdB "10"
bitsPerSym "log2(M)"
Ps "1"
Tsym "log2(M)*Ts % Uncoded symbol period"
variance "1"
}
Block {
BlockType Reference
Name "Avg Power"
Ports [1, 1]
Position [400, 150, 430, 185]
Orientation "up"
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspstat3/Variance"
SourceType "Variance"
run on
reset_popup "None"
directionMode "Each column"
dimension "1"
treatSBRowAsCol on
roiEnable off
roiType "Rectangles"
roiPortion "Entire ROI"
roiOutput "Individual statistics for each ROI"
roiFlag off
additionalParams off
allowOverrides on
outputMode "Same as input-squared product"
outputWordLength "32"
outputFracLength "30"
accumMode "Same as input-squared product"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Same as input"
prodOutputWordLength "32"
prodOutputFracLength "30"
memoryMode "Same as input-squared product"
memoryWordLength "32"
memoryFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [25, 193, 105, 237]
NamePlacement "alternate"
DialogController "commDDGCreate"
DialogControllerArgs "DataTag1"
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary 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"
P "0.5"
seed "61"
Ts "Ts"
frameBased on
sampPerFrame "log2(M)*1e4"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "Bit to Integer\nConverter"
Ports [1, 1]
Position [210, 488, 290, 532]
ShowName off
SourceBlock "commutil2/Bit to Integer\nConverter"
SourceType "Bit to Integer Converter"
nbits "log2(M)"
bitOrder "MSB first"
signedOutputValues "Unsigned"
outDtype "Inherit via internal rule"
outDtypeSigned "Inherit via internal rule"
}
Block {
BlockType Reference
Name "Bit to Integer\nConverter1"
Ports [1, 1]
Position [210, 533, 290, 577]
ShowName off
SourceBlock "commutil2/Bit to Integer\nConverter"
SourceType "Bit to Integer Converter"
nbits "log2(M)"
bitOrder "MSB first"
signedOutputValues "Unsigned"
outDtype "Inherit via internal rule"
outDtypeSigned "Inherit via internal rule"
}
Block {
BlockType DataTypeConversion
Name "Data Type\nConversion3"
Position [850, 207, 880, 243]
ShowName off
OutDataTypeMode "double"
OutDataType "ufix(3)"
OutScaling "2^0"
OutDataTypeStr "double"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [495, 364, 585, 426]
ShowName off
Format "short_e"
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [495, 503, 585, 567]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [430, 64, 515, 96]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [640, 207, 670, 238]
ShowName off
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Double-click\nto Open1"
Tag "ScatterPlot"
Ports [1]
Position [770, 79, 815, 121]
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 "."
LineColors "b"
fading on
render on
AxisGrid on
xMin "-1.35450173260941"
xMax "1.4662470939055"
yMin "-1.39253383431223"
yMax "1.42821499220268"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart off
FrameNumber off
FigPos "get(0,'defaultfigureposition');"
figTitle "Received Signal Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [385, 367, 460, 418]
ShowName off
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop on
numErr "maxNumErrs"
maxBits "maxNumBits"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation1"
Ports [2, 1]
Position [385, 507, 460, 558]
ShowName off
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "maxNumErrs"
maxBits "maxNumBits"
}
Block {
BlockType From
Name "From"
Position [75, 372, 145, 388]
BackgroundColor "yellow"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "xmit_bits"
}
Block {
BlockType From
Name "From1"
Position [75, 397, 145, 413]
BackgroundColor "[1.000000, 0.501961, 0.250980]"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "rcv_bits"
}
Block {
BlockType From
Name "From2"
Position [75, 547, 145, 563]
BackgroundColor "[1.000000, 0.501961, 0.250980]"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "rcv_bits"
}
Block {
BlockType From
Name "From3"
Position [75, 502, 145, 518]
BackgroundColor "yellow"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "xmit_bits"
}
Block {
BlockType Goto
Name "Goto"
Position [175, 255, 240, 275]
BackgroundColor "yellow"
ShowName off
GotoTag "xmit_bits"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto1"
Position [965, 216, 1035, 234]
BackgroundColor "[1.000000, 0.501961, 0.250980]"
ShowName off
GotoTag "rcv_bits"
TagVisibility "local"
}
Block {
BlockType Reference
Name "M-PSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [735, 200, 810, 250]
DialogController "commDDGCreate"
DialogControllerArgs "DataTag2"
SourceBlock "commdigbbndpm3/M-PSK\nDemodulator\nBaseband"
SourceType "M-PSK Demodulator Baseband"
M "M"
Ph "0"
Dec "Gray"
Mapping "[0:7]"
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 "M-PSK\nModulator\nBaseband"
Ports [1, 1]
Position [170, 189, 245, 241]
NamePlacement "alternate"
DialogController "commDDGCreate"
DialogControllerArgs "DataTag3"
SourceBlock "commdigbbndpm3/M-PSK\nModulator\nBaseband"
SourceType "M-PSK Modulator Baseband"
M "M"
InType "Bit"
Enc "Gray"
Mapping "[0:7]"
Ph "0"
outDtype "double"
outWordLen "16"
outUDDataType "sfix(16)"
outFracLenMode "Best precision"
outFracLen "15"
}
Block {
BlockType Reference
Name "Mean"
Ports [1, 1]
Position [394, 105, 436, 130]
Orientation "up"
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag4"
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run off
reset_popup "None"
directionMode "Each column"
dimension "1"
treatSBRowAsCol on
roiEnable off
roiType "Rectangles"
roiPortion "Entire ROI"
roiOutput "Individual statistics for each ROI"
roiFlag off
additionalParams off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -