⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ofdm_with_mic.mdl

📁 model OF the OFDM communication in simulink. And I was successful in completing it using a Bernoulli
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      System {
	Name			"QPSK mapping"
	Location		[2, 80, 1014, 744]
	Open			off
	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"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [180, 93, 210, 107]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [385, 85, 410, 115]
	  Gain			  "1/0.75"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "QPSK\nModulator\nBaseband"
	  Ports			  [1, 1]
	  Position		  [260, 76, 335, 124]
	  SourceBlock		  "commdigbbndpm2/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			  "Gray"
	  Ph			  "pi/4"
	  numSamp		  "1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [460, 93, 490, 107]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "QPSK\nModulator\nBaseband"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "QPSK\nModulator\nBaseband"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Quantizing\nDecoder"
      Ports		      [1, 1]
      Position		      [655, 477, 745, 523]
      SourceBlock	      "commsrccod2/Quantizing\nDecoder"
      SourceType	      "Quantizing Decoder"
      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"
      codebook		      "[-.825 -.5 0, .5 .825]"
      QuDType		      "double"
    }
    Block {
      BlockType		      Reference
      Name		      "Quantizing\nEncoder"
      Ports		      [1, 2]
      Position		      [110, 299, 200, 341]
      SourceBlock	      "commsrccod2/Quantizing\nEncoder"
      SourceType	      "Quantizing Encoder"
      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"
      partition		      "[-.75 -.25 .25 .75]"
      codebook		      "[-.825 -.5 0 .5 .825]"
      idxDType		      "double"
    }
    Block {
      BlockType		      SubSystem
      Name		      "S/P"
      Ports		      [1, 1]
      Position		      [795, 358, 840, 422]
      Orientation	      "left"
      NamePlacement	      "alternate"
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      System {
	Name			"S/P"
	Location		[2, 82, 1014, 746]
	Open			off
	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"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [110, 103, 140, 117]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Buffer"
	  Ports			  [1, 1]
	  Position		  [205, 85, 255, 135]
	  SourceBlock		  "dspbuff3/Buffer"
	  SourceType		  "Buffer"
	  N			  "16"
	  V			  "0"
	  ic			  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [360, 103, 390, 117]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Buffer"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Buffer"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nbefore"
      Ports		      [1]
      Position		      [740, 180, 775, 230]
      Orientation	      "left"
      NamePlacement	      "alternate"
      DialogController	      "dspdialog.SpectrumScope"
      DialogControllerArgs    "DataTag3"
      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	      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		      "[0...Fs/2]"
      InheritXIncr	      off
      XIncr		      "1.0"
      XLabel		      "Samples"
      XLimit		      "Auto"
      YUnits		      "dB"
      XMax		      "1"
      XMin		      "0"
      YMin		      "-34.4731775270948"
      YMax		      "-5.3259181648247"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
      wintypeSpecScope	      "Hann"
      RsSpecScope	      "50"
      betaSpecScope	      "5"
      winsampSpecScope	      "Periodic"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nbefore1"
      Ports		      [1]
      Position		      [765, 280, 800, 330]
      Orientation	      "left"
      NamePlacement	      "alternate"
      DialogController	      "dspdialog.SpectrumScope"
      DialogControllerArgs    "DataTag4"
      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	      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		      "[0...Fs/2]"
      InheritXIncr	      off
      XIncr		      "1.0"
      XLabel		      "Samples"
      XLimit		      "Auto"
      YUnits		      "dB"
      XMax		      "1"
      XMin		      "0"
      YMin		      "-34.4731775270948"
      YMax		      "-5.3259181648247"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
      wintypeSpecScope	      "Hann"
      RsSpecScope	      "50"
      betaSpecScope	      "5"
      winsampSpecScope	      "Periodic"
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator"
      Position		      [190, 230, 210, 250]
    }
    Block {
      BlockType		      Reference
      Name		      "To Audio\nDevice"
      Ports		      [1]
      Position		      [860, 474, 915, 526]
      DialogController	      "dspDDGCreate"
      DialogControllerArgs    "DataTag5"
      SourceBlock	      "dspsnks4/To Audio\nDevice"
      SourceType	      "To Audio Device"
      deviceName	      "Default"
      inheritSampleRate	      off
      sampleRate	      "20000"
      deviceDatatype	      "Determine from input data type"
      autoBufferSize	      on
      bufferSize	      "4096"
      queueDuration	      "1.0"
    }
    Line {
      SrcBlock		      "QPSK mapping"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"OFDM modulator"
	DstPort			1
      }
      Branch {
	Points			[0, 75]
	DstBlock		"Discrete-Time\nScatter Plot\nScope"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "OFDM demodulator"
      SrcPort		      1
      Points		      [-145, 0]
      Branch {
	DstBlock		"QPSK Demapping"
	DstPort			1
      }
      Branch {
	Points			[0, -115]
	DstBlock		"Discrete-Time\nScatter Plot\nScope1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Bit to Integer\nConverter"
      SrcPort		      1
      DstBlock		      "Quantizing\nDecoder"
      DstPort		      1
    }
    Line {
      SrcBlock		      "From Audio\nDevice"
      SrcPort		      1
      Points		      [10, 0; 0, 280]
      DstBlock		      "Quantizing\nEncoder"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Integer to Bit\nConverter"
      SrcPort		      1
      DstBlock		      "QPSK mapping"
      DstPort		      1
    }
    Line {
      SrcBlock		      "S/P"
      SrcPort		      1
      DstBlock		      "OFDM demodulator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "OFDM modulator"
      SrcPort		      1
      DstBlock		      "P/S"
      DstPort		      1
    }
    Line {
      SrcBlock		      "AWGN\nChannel"
      SrcPort		      1
      DstBlock		      "Mixer"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mixer"
      SrcPort		      1
      Points		      [0, 10]
      Branch {
	Points			[0, 70]
	DstBlock		"S/P"
	DstPort			1
      }
      Branch {
	Points			[-90, 0]
	DstBlock		"Spectrum\nbefore1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "P/S"
      SrcPort		      1
      Points		      [50, 0]
      Branch {
	Points			[105, 0]
	DstBlock		"AWGN\nChannel"
	DstPort			1
      }
      Branch {
	Points			[0, 120]
	DstBlock		"Spectrum\nbefore"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Quantizing\nDecoder"
      SrcPort		      1
      DstBlock		      "To Audio\nDevice"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Quantizing\nEncoder"
      SrcPort		      2
      Points		      [25, 0; 0, -115; -85, 0; 0, -130]
      DstBlock		      "Integer to Bit\nConverter"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Quantizing\nEncoder"
      SrcPort		      1
      Points		      [5, 0; 0, -40; -40, 0; 0, -30]
      DstBlock		      "Terminator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "QPSK Demapping"
      SrcPort		      1
      Points		      [-55, 0; 0, 110]
      DstBlock		      "Bit to Integer\nConverter"
      DstPort		      1
    }
    Annotation {
      Position		      [834, 319]
    }
  }
}
MatData {
  NumRecords		  6
  DataRecord {
    Tag			    DataTag5
    Data		    "  %)30     .    N     8    (     0         %    \"     $    \"     0         .    0     8    (    !          %    \"     $    -     0         0    #0   %1O075D:6]$979I8V4    .    0     8    (    !          %    \"     $    )     0         0    \"0   &1S<&1I86QO9P         "
  }
  DataRecord {
    Tag			    DataTag4
    Data		    "  %)30     .    ,     8    (    !          %    \"                0         0          "
  }
  DataRecord {
    Tag			    DataTag3
    Data		    "  %)30     .    ,     8    (    !          %    \"                0         0          "
  }
  DataRecord {
    Tag			    DataTag2
    Data		    "  %)30     .    8     8    (     0         %    \"     $    !     0         .    ,     8    (    !          %    \"     $    $     0         0  0 249&5 "
  }
  DataRecord {
    Tag			    DataTag1
    Data		    "  %)30     .    8     8    (     0         %    \"     $    !     0         .    ,     8    (    !          %    \"     $    #     0         0  , 1D94  "
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    N     8    (     0         %    \"     $    \"     0         .    0     8    (    !          %    \"     $    /     0         0    #P   $9R;VU!=61I;T1E=FEC90 .    0     8    (    !          %    \"     $    )     0         0    \"0   &1S<&1I86QO9P         "
  }
}

⌨️ 快捷键说明

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