📄 wireless_ofdm.mdl
字号:
Block { BlockType Reference Name "Matrix\nConcatenation" Ports [11, 1] Position [345, 126, 405, 334] SourceBlock "simulink/Math\nOperations/Matrix\nConcatena""tion" SourceType "Matrix Concatenation" numInports "11" catMethod "Vertical" } Block { BlockType Reference Name "Multiport\nSelector" Ports [1, 6] Position [150, 109, 215, 351] SourceBlock "dspindex/Multiport\nSelector" SourceType "Multiport Selector" rowsOrCols "Rows" idxCellArray "{1:2,3:9,10:12,13:15,16:21,22:24}" idxErrMode "Clip Index" } Block { BlockType Reference Name "PN Sequence\nGenerator" Ports [0, 1] Position [50, 38, 130, 82] SourceBlock "commseqgen2/PN Sequence\nGenerator" SourceType "PN Sequence Generator" poly "[1 0 0 1 0 0 0 1]" ini_sta "[1 1 1 1 1 1 1]" shift "0" Ts "9.6e-6" frameBased off sampPerFrame "1" reset off } Block { BlockType Reference Name "Unipolar to\nBipolar\nConverter" Ports [1, 1] Position [160, 40, 225, 80] ShowName off SourceBlock "commutil2/Unipolar to\nBipolar\nConverter" SourceType "Unipolar to Bipolar Converter" ShowPortLabels on M "2" polarity "Negative" } Block { BlockType SubSystem Name "Zero pad for OFDM" Ports [1, 1] Position [460, 205, 515, 255] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskDisplay "disp('Zero pad\\nfor OFDM');" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Zero pad for OFDM" Location [191, 421, 703, 556] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [30, 53, 60, 67] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Selector Name "Selector" Ports [1, 1] Position [230, 38, 280, 82] Elements "[27:64 1:26]" InputPortWidth "64" } Block { BlockType Reference Name "Zero Pad" Ports [1, 1] Position [120, 42, 165, 78] SourceBlock "dspsigops/Zero Pad" SourceType "Zero Pad" padSigAt "End" zpadAlong "Columns" padNumOutRowsSpecMethod "User-specified" numOutRows "64" padNumOutColsSpecMethod "User-specified" numOutCols "1" trunc_flag "None" } Block { BlockType Outport Name "Out1" Position [360, 53, 390, 67] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Selector" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Zero Pad" SrcPort 1 DstBlock "Selector" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 DstBlock "Zero Pad" DstPort 1 } } } Block { BlockType Outport Name "Out" Position [765, 223, 795, 237] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Zero pad for OFDM" SrcPort 1 DstBlock "IFFT" DstPort 1 } Line { SrcBlock "IFFT" SrcPort 1 DstBlock "Add Cyclic\nPrefix" DstPort 1 } Line { SrcBlock "Add Cyclic\nPrefix" SrcPort 1 DstBlock "Out" DstPort 1 } Line { SrcBlock "PN Sequence\nGenerator" SrcPort 1 DstBlock "Unipolar to\nBipolar\nConverter" DstPort 1 } Line { SrcBlock "Unipolar to\nBipolar\nConverter" SrcPort 1 Points [25, 0; 0, 90] Branch { DstBlock "Matrix\nConcatenation" DstPort 2 } Branch { Points [0, 40] Branch { DstBlock "Matrix\nConcatenation" DstPort 4 } Branch { Points [0, 80] Branch { DstBlock "Matrix\nConcatenation" DstPort 8 } Branch { Points [0, 40] DstBlock "Gain" DstPort 1 } } } } Line { SrcBlock "Matrix\nConcatenation" SrcPort 1 DstBlock "Zero pad for OFDM" DstPort 1 } Line { SrcBlock "DSP\nConstant" SrcPort 1 DstBlock "Matrix\nConcatenation" DstPort 6 } Line { SrcBlock "Multiport\nSelector" SrcPort 1 DstBlock "Matrix\nConcatenation" DstPort 1 } Line { SrcBlock "Multiport\nSelector" SrcPort 2 DstBlock "Matrix\nConcatenation" DstPort 3 } Line { SrcBlock "Multiport\nSelector" SrcPort 3 DstBlock "Matrix\nConcatenation" DstPort 5 } Line { SrcBlock "Multiport\nSelector" SrcPort 4 DstBlock "Matrix\nConcatenation" DstPort 7 } Line { SrcBlock "Multiport\nSelector" SrcPort 5 DstBlock "Matrix\nConcatenation" DstPort 9 } Line { SrcBlock "Multiport\nSelector" SrcPort 6 DstBlock "Matrix\nConcatenation" DstPort 11 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Matrix\nConcatenation" DstPort 10 } Line { SrcBlock "In" SrcPort 1 DstBlock "Multiport\nSelector" DstPort 1 } } } Block { BlockType Reference Name "Received Signal" Tag "ScatterPlot" Ports [1] Position [440, 420, 490, 470] Orientation "left" NamePlacement "alternate" Diagnostics "AllowInheritedTsInSrc" SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope" SourceType "Discrete-Time Scatter Plot Scope" ShowPortLabels on sampPerSymb "1" offsetEye "0" numTraces "160" numNewFrames "80" LineMarkers "." LineColors "b" fading on render off AxisGrid on xMin "-1.5" xMax "1.5" yMin "-1.5" yMax "1.5" inphaseLabel "In-phase Amplitude" quadratureLabel "Quadrature Amplitude" openScopeAtSimStart on FrameNumber off FigPos "[553 313 358 358]" figTitle "Scatter Plot" numLinesMax "8" block_type_ "scatter" } Block { BlockType Reference Name "Rectangular QAM\nDemodulator\nBaseband" Ports [1, 1] Position [370, 314, 445, 366] Orientation "left" SourceBlock "commdigbbndam2/Rectangular QAM\nDemodulator\nBa""seband" SourceType "Rectangular QAM Demodulator Baseband" M "16" OutType "Bit" Dec "Gray" PowType "Average Power" MinDist "2" AvgPow "1" PeakPow "1" Ph "0" numSamp "1" } Block { BlockType Reference Name "Rectangular QAM\nModulator\nBaseband" Ports [1, 1] Position [375, 59, 450, 111] SourceBlock "commdigbbndam2/Rectangular QAM\nModulator\nBase""band" SourceType "Rectangular QAM Modulator Baseband" M "16" InType "Bit" Enc "Gray" PowType "Average Power" MinDist "2" AvgPow "1" PeakPow "1" Ph "0" numSamp "1" } Block { BlockType Reference Name "Spectrum\nScope" Ports [1] Position [670, 260, 705, 310] Orientation "left" NamePlacement "alternate" SourceBlock "dspsnks4/Spectrum\nScope" SourceType "Spectrum Scope" ShowPortLabels off ScopeProperties off Domain "Frequency" HorizSpan "1" UseBuffer on BufferSize "80" Overlap "0" inpFftLenInherit on FFTlength "1024" numAvg "10" DisplayProperties off AxisGrid on Memory off FrameNumber on AxisLegend off AxisZoom off OpenScopeAtSimStart on OpenScopeImmediately off FigPos "figposition([25 15 42 27])" AxisProperties off XUnits "Hertz" XRange "[-Fs/2...Fs/2]" InheritXIncr off XIncr "1.0" XLabel "Samples" YUnits "dB" YMin "-60" YMax "0" YLabel "Magnitude, dB" LineProperties off wintypeSpecScope "Hann" RsSpecScope "50" betaSpecScope "5" winsampSpecScope "Periodic" } Block { BlockType Terminator Name "Terminator" Position [515, 365, 535, 385] Orientation "left" ShowName off } Block { BlockType Reference Name "Transmitted Signal" Tag "ScatterPlot" Ports [1] Position [565, 150, 610, 200] Diagnostics "AllowInheritedTsInSrc" SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope" SourceType "Discrete-Time Scatter Plot Scope" ShowPortLabels on sampPerSymb "1" offsetEye "0" numTraces "60" numNewFrames "60" LineMarkers "." LineColors "r" fading off render on AxisGrid on xMin "-1.5" xMax "1.5" yMin "-1.5" yMax "1.5" inphaseLabel "In-phase Amplitude" quadratureLabel "Quadrature Amplitude" openScopeAtSimStart on FrameNumber off FigPos "[72 313 358 358]" figTitle "Scatter Plot" numLinesMax "8" block_type_ "scatter" } Line { SrcBlock "Rectangular QAM\nModulator\nBaseband" SrcPort 1 Points [55, 0] Branch { DstBlock "OFDM Transmitter" DstPort 1 } Branch { Points [0, 90] DstBlock "Transmitted Signal" DstPort 1 } } Line { SrcBlock "Bernoulli Random\nBinary Generator" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [0, 115] DstBlock "Error Rate Calculation" DstPort 1 } Branch { DstBlock "Rectangular QAM\nModulator\nBaseband" DstPort 1 } } Line { SrcBlock "OFDM Receiver" SrcPort 1 Points [-75, 0] Branch { DstBlock "Rectangular QAM\nDemodulator\nBaseband" DstPort 1 } Branch { Points [10, 0] DstBlock "Received Signal" DstPort 1 } } Line { SrcBlock "Error Rate Calculation" SrcPort 1 DstBlock "Display" DstPort 1 } Line { SrcBlock "OFDM Receiver" SrcPort 2 DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Rectangular QAM\nDemodulator\nBaseband" SrcPort 1 Points [-230, 0; 0, -115] DstBlock "Error Rate Calculation" DstPort 2 } Line { SrcBlock "OFDM Transmitter" SrcPort 1 Points [85, 0] DstBlock "Channel" DstPort 1 } Line { SrcBlock "Channel" SrcPort 1 Points [0, 45] Branch { Points [0, 75] DstBlock "OFDM Receiver" DstPort 1 } Branch { DstBlock "Spectrum\nScope" DstPort 1 } } Annotation { Name "\n " Position [105, 478] HorizontalAlignment "left" FontName "Arial" FontSize 11 FontWeight "bold" } Annotation { Name "Error rate " Position [393, 192] FontName "Arial" } Annotation { Name "Num Errors" Position [397, 213] FontName "Arial" } Annotation { Name "Num Bits " Position [396, 235] FontName "Arial" } }}MatData { NumRecords 2 DataRecord { Tag DataTag1 Data " 0!-20 . 8 8 ( 0 % "" \" $ ! 0 . , 8 ( ! % \" $ "" $ 0 ! 0249&5 " } DataRecord { Tag DataTag0 Data " 0!-20 . 8 8 ( 0 % "" \" $ ! 0 . , 8 ( ! % \" $ "" # 0 P 01D94 " }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -