📄 untitled1.mdl
字号:
BlockType Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType FromWorkspace
VariableName "simulink_input"
SampleTime "-1"
Interpolate on
ZeroCross off
OutputAfterFinalValue "Extrapolation"
}
Block {
BlockType Ground
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType "M-S-Function"
FunctionName "mlfile"
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Rounding
Operator "floor"
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "untitled1"
Location [4, 86, 807, 666]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [400, 286, 495, 344]
SourceBlock "commchan3/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "18233"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "10"
EsNodB "10"
SNRdB "10"
bitsPerSym "1"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "Discrete-Time\nEye Diagram\nScope"
Tag "EyeDiagram"
Ports [1]
Position [415, 189, 490, 241]
Diagnostics "AllowInheritedTsInSrc"
SourceBlock "commsink2/Discrete-Time\nEye Diagram\nScope"
SourceType "Discrete-Time Eye Diagram Scope"
ShowPortLabels on
sampPerSymb "8"
offsetEye "0"
symbPerTrace "1"
numTraces "40"
numNewFrames "10"
LineStyles "-"
LineColors "b"
dupPoints on
fading on
render on
AxisGrid on
yMin "-3.15"
yMax "3.15"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
dispDiagram "In-phase and Quadrature"
FrameNumber off
FigPos "[360 278 560 644]"
figTitle "Eye Diagram"
block_type_ "eye"
numLinesMax "8"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [725, 289, 800, 341]
Diagnostics "AllowInheritedTsInSrc"
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "1000"
numNewFrames "100"
LineMarkers "."
LineColors "b"
fading on
render on
AxisGrid on
xMin "-3.3"
xMax "3.315"
yMin "-3.3"
yMax "3.315"
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 Display
Name "Display1"
Ports [1]
Position [230, 500, 325, 570]
Orientation "left"
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [405, 507, 480, 558]
Orientation "left"
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 "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "OVSF Code\nGenerator"
Ports [0, 1]
Position [220, 382, 305, 428]
SourceBlock "commseqgen2/OVSF Code\nGenerator"
SourceType "OVSF Code Generator"
ShowPortLabels on
spreadFact "16"
index "8"
ts "0.008"
frameBased off
sampPerFrame "1"
outDataType "double"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [340, 297, 370, 328]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [665, 382, 695, 413]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "QPSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [615, 520, 690, 570]
Orientation "left"
SourceBlock "commdigbbndpm3/QPSK\nDemodulator\nBaseband"
SourceType "QPSK Demodulator Baseband"
ShowPortLabels on
OutType "Integer"
Dec "Binary"
Ph "pi/4"
outDtype1 "double"
outDtype2 "double"
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband"
Ports [1, 1]
Position [225, 291, 300, 339]
SourceBlock "commdigbbndpm3/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
ShowPortLabels on
InType "Integer"
Enc "Binary"
Ph "pi/4"
outDtype "double"
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [100, 293, 180, 337]
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
mul "4"
seed "12345"
Ts "0.001"
frameBased off
sampPerFrame "1"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [445, 105, 480, 155]
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag0"
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "512"
inpFftLenInherit on
FFTlength "1024"
numAvg "64"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "0.001"
XLabel "Samples"
YUnits "dB"
YMin "-9.43094127430854"
YMax "-2.32962542072013"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "QPSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 170; 295, 0]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
}
Line {
SrcBlock "QPSK\nModulator\nBaseband"
SrcPort 1
Points [20, 0; 0, -10]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -90]
Branch {
DstBlock "Discrete-Time\nEye Diagram\nScope"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "Spectrum\nScope"
DstPort 1
}
}
}
Line {
SrcBlock "OVSF Code\nGenerator"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -85]
DstBlock "Product"
DstPort 2
}
Branch {
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [15, 0; 0, 145]
DstBlock "QPSK\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "QPSK\nDemodulator\nBaseband"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [95, 0]
Branch {
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Product1"
DstPort 1
}
}
}
}
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . , 8 ( ! % "
"\" 0 0 "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -