ofdm_4qam.mdl

来自「使用QPSK调制的正交频分复用(OFDM)系统的Simulink仿真OFDM I」· MDL 代码 · 共 2,248 行 · 第 1/4 页

MDL
2,248
字号
      FontName		      "Arial"
      FontSize		      8
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      MaskDisplay	      "disp('System\\nPerformance\\nTests');"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Subsystem"
	Location		[7, 92, 1002, 447]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"206"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [15, 38, 45, 52]
	  FontSize		  8
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2"
	  Position		  [15, 68, 45, 82]
	  FontSize		  8
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In3"
	  Position		  [15, 98, 45, 112]
	  FontSize		  8
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In4"
	  Position		  [15, 148, 45, 162]
	  FontSize		  8
	  Port			  "4"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In5"
	  Position		  [15, 198, 45, 212]
	  FontSize		  8
	  Port			  "5"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In6"
	  Position		  [15, 248, 45, 262]
	  FontSize		  8
	  Port			  "6"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Buffer"
	  Ports			  [1, 1]
	  Position		  [70, 192, 90, 218]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  8
	  SourceBlock		  "dspbuff3/Buffer"
	  SourceType		  "Buffer"
	  N			  "256"
	  V			  "0"
	  ic			  "0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Buffer1"
	  Ports			  [1, 1]
	  Position		  [70, 242, 90, 268]
	  ShowName		  off
	  FontName		  "Arial"
	  FontSize		  8
	  SourceBlock		  "dspbuff3/Buffer"
	  SourceType		  "Buffer"
	  N			  "256"
	  V			  "0"
	  ic			  "0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Discrete-Time\nScatter Plot\nScope"
	  Tag			  "ScatterPlot"
	  Ports			  [1]
	  Position		  [90, 83, 145, 127]
	  ShowName		  off
	  FontSize		  8
	  SourceBlock		  "commsink2/Discrete-Time\nScatter Plot\nScop"
"e"
	  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		  "64"
	  numNewFrames		  "64"
	  LineMarkers		  "."
	  LineColors		  "b"
	  fading		  "on"
	  render		  "on"
	  AxisGrid		  "on"
	  xMin			  "-0.77781"
	  xMax			  "0.7813455"
	  yMin			  "-0.77781"
	  yMax			  "0.7813455"
	  inphaseLabel		  "In-phase Amplitude"
	  quadratureLabel	  "Quadrature Amplitude"
	  openScopeAtSimStart	  "on"
	  FrameNumber		  "off"
	  FigPos		  "get(0,'defaultfigureposition');"
	  figTitle		  "Scatter Plot"
	  numLinesMax		  "8"
	  block_type_		  "scatter"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Discrete-Time\nScatter Plot\nScope1"
	  Tag			  "ScatterPlot"
	  Ports			  [1]
	  Position		  [90, 133, 145, 177]
	  ShowName		  off
	  FontSize		  8
	  SourceBlock		  "commsink2/Discrete-Time\nScatter Plot\nScop"
"e"
	  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		  "64"
	  numNewFrames		  "64"
	  LineMarkers		  "."
	  LineColors		  "b"
	  fading		  "on"
	  render		  "on"
	  AxisGrid		  "on"
	  xMin			  "-0.781892356604364"
	  xMax			  "0.78533646557312"
	  yMin			  "-0.782594723387547"
	  yMax			  "0.784634098789938"
	  inphaseLabel		  "In-phase Amplitude"
	  quadratureLabel	  "Quadrature Amplitude"
	  openScopeAtSimStart	  "on"
	  FrameNumber		  "off"
	  FigPos		  "get(0,'defaultfigureposition');"
	  figTitle		  "Scatter Plot"
	  numLinesMax		  "8"
	  block_type_		  "scatter"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Error Rate\nCalculation"
	  Ports			  [2, 1]
	  Position		  [90, 33, 145, 77]
	  ShowName		  off
	  FontSize		  8
	  SourceBlock		  "commsink2/Error Rate\nCalculation"
	  SourceType		  "Error Rate Calculation"
	  N			  "0"
	  st_delay		  "0"
	  cp_mode		  "Entire frame"
	  subframe		  "[]"
	  PMode			  "Port"
	  WsName		  "grayBER"
	  RsMode2		  "off"
	  stop			  "on"
	  numErr		  "1000000000"
	  maxBits		  "10000000"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Spectrum\nScope"
	  Ports			  [1]
	  Position		  [115, 182, 145, 228]
	  ShowName		  off
	  DialogController	  "dspdialog.SpectrumScope"
	  DialogControllerArgs	  "DataTag2"
	  FontName		  "Arial"
	  FontSize		  8
	  SourceBlock		  "dspsnks4/Spectrum\nScope"
	  SourceType		  "Spectrum Scope"
	  ShowPortLabels	  "none"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData "off"
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  ScopeProperties	  "on"
	  Domain		  "Frequency"
	  HorizSpan		  "1"
	  UseBuffer		  "on"
	  BufferSize		  "1024"
	  Overlap		  "0"
	  inpFftLenInherit	  "on"
	  FFTlength		  "1024"
	  numAvg		  "5"
	  DisplayProperties	  "off"
	  AxisGrid		  "off"
	  Memory		  "off"
	  FrameNumber		  "off"
	  AxisLegend		  "off"
	  AxisZoom		  "off"
	  OpenScopeAtSimStart	  "on"
	  OpenScopeImmediately	  "off"
	  FigPos		  "get(0,'defaultfigureposition')"
	  AxisProperties	  "off"
	  XUnits		  "Hertz"
	  XRange		  "[0...Fs/2]"
	  InheritXIncr		  "on"
	  XIncr			  "1.0"
	  XLabel		  "Samples"
	  XLimit		  "Auto"
	  YUnits		  "dB"
	  XMax			  "1"
	  XMin			  "0"
	  YMin			  "-49.5851620683178"
	  YMax			  "-17.4535357375183"
	  YLabel		  "Magnitude-squared, dB"
	  LineProperties	  "off"
	  wintypeSpecScope	  "Hann"
	  RsSpecScope		  "50"
	  betaSpecScope		  "5"
	  winsampSpecScope	  "Periodic"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Spectrum\nScope1"
	  Ports			  [1]
	  Position		  [115, 231, 145, 279]
	  ShowName		  off
	  DialogController	  "dspdialog.SpectrumScope"
	  DialogControllerArgs	  "DataTag3"
	  FontName		  "Arial"
	  FontSize		  8
	  SourceBlock		  "dspsnks4/Spectrum\nScope"
	  SourceType		  "Spectrum Scope"
	  ShowPortLabels	  "none"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData "off"
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  ScopeProperties	  "on"
	  Domain		  "Frequency"
	  HorizSpan		  "1"
	  UseBuffer		  "on"
	  BufferSize		  "1024"
	  Overlap		  "0"
	  inpFftLenInherit	  "on"
	  FFTlength		  "1024"
	  numAvg		  "5"
	  DisplayProperties	  "off"
	  AxisGrid		  "off"
	  Memory		  "off"
	  FrameNumber		  "off"
	  AxisLegend		  "off"
	  AxisZoom		  "off"
	  OpenScopeAtSimStart	  "on"
	  OpenScopeImmediately	  "off"
	  FigPos		  "get(0,'defaultfigureposition')"
	  AxisProperties	  "off"
	  XUnits		  "Hertz"
	  XRange		  "[0...Fs/2]"
	  InheritXIncr		  "on"
	  XIncr			  "1.0"
	  XLabel		  "Samples"
	  XLimit		  "Auto"
	  YUnits		  "dB"
	  XMax			  "1"
	  XMin			  "0"
	  YMin			  "-51.7490793915629"
	  YMax			  "-17.1080597361603"
	  YLabel		  "Magnitude-squared, dB"
	  LineProperties	  "off"
	  wintypeSpecScope	  "Hann"
	  RsSpecScope		  "50"
	  betaSpecScope		  "5"
	  winsampSpecScope	  "Periodic"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [175, 48, 205, 62]
	  FontName		  "Arial"
	  FontSize		  8
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Buffer1"
	  SrcPort		  1
	  DstBlock		  "Spectrum\nScope1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Error Rate\nCalculation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  Points		  [25, 0]
	  DstBlock		  "Error Rate\nCalculation"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "In5"
	  SrcPort		  1
	  DstBlock		  "Buffer"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Buffer"
	  SrcPort		  1
	  DstBlock		  "Spectrum\nScope"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In6"
	  SrcPort		  1
	  DstBlock		  "Buffer1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In3"
	  SrcPort		  1
	  DstBlock		  "Discrete-Time\nScatter Plot\nScope"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In4"
	  SrcPort		  1
	  DstBlock		  "Discrete-Time\nScatter Plot\nScope1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Error Rate\nCalculation"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "IQ Demapper"
      SrcPort		      1
      Points		      [-15, 0]
      Branch {
	DstBlock		"Data to MAC"
	DstPort			1
      }
      Branch {
	DstBlock		"Goto2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "AWGN\nChannel"
      SrcPort		      1
      Points		      [0, 5]
      Branch {
	DstBlock		"OFDM\nData"
	DstPort			1
      }
      Branch {
	DstBlock		"Goto6"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "OFDM\nData"
      SrcPort		      1
      Points		      [-5, 0]
      Branch {
	DstBlock		"IQ Demapper"
	DstPort			1
      }
      Branch {
	DstBlock		"Goto4"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "OFDM\nSymbols"
      SrcPort		      1
      Points		      [10, 0; 0, 30]
      Branch {
	DstBlock		"AWGN\nChannel"
	DstPort			1
      }
      Branch {
	DstBlock		"Goto5"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "IQ Mapper"
      SrcPort		      1
      Points		      [55, 0]
      Branch {
	DstBlock		"OFDM\nSymbols"
	DstPort			1
      }
      Branch {
	Points			[0, -30]
	DstBlock		"Goto1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "From2"
      SrcPort		      1
      DstBlock		      "Subsystem"
      DstPort		      1
    }
    Line {
      SrcBlock		      "From3"
      SrcPort		      1
      DstBlock		      "Subsystem"
      DstPort		      2
    }
    Line {
      SrcBlock		      "From4"
      SrcPort		      1
      DstBlock		      "Subsystem"
      DstPort		      3
    }
    Line {
      SrcBlock		      "From1"
      SrcPort		      1
      DstBlock		      "Subsystem"
      DstPort		      4
    }
    Line {
      SrcBlock		      "From6"
      SrcPort		      1
      DstBlock		      "Subsystem"
      DstPort		      5
    }
    Line {
      SrcBlock		      "From5"
      SrcPort		      1
      DstBlock		      "Subsystem"
      DstPort		      6
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      1
      DstBlock		      "Display"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Data From MAC"
      SrcPort		      1
      Points		      [60, 0]
      Branch {
	DstBlock		"IQ Mapper"
	DstPort			1
      }
      Branch {
	DstBlock		"Goto3"
	DstPort			1
      }
    }
    Annotation {
      Name		      "OFDM with QPSK"
      Position		      [105, 30]
      HorizontalAlignment     "left"
      DropShadow	      on
      FontName		      "Times New Roman"
      FontSize		      16
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Total Bits"
      Position		      [301, 307]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      8
    }
    Annotation {
      Name		      "Bit Loss"
      Position		      [300, 290]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      8
    }
    Annotation {
      Name		      "Packet Loss"
      Position		      [299, 274]
      HorizontalAlignment     "left"
      FontName		      "Arial"
      FontSize		      8
    }
  }
}
MatData {
  NumRecords		  4
  DataRecord {
    Tag			    DataTag3
    Data		    "  %)30     .    ,     8    (    !          %    "
"\"                0         0          "
  }
  DataRecord {
    Tag			    DataTag2
    Data		    "  %)30     .    ,     8    (    !          %    "
"\"                0         0          "
  }
  DataRecord {
    Tag			    DataTag1
    Data		    "  %)30     .    8     8    (     0         %    "
"\"     $    !     0         .    ,     8    (    !          %    \"     $    "
"$     0         0  0 249&5 "
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    8     8    (     0         %    "
"\"     $    !     0         .    ,     8    (    !          %    \"     $    "
"#     0         0  , 1D94  "
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?