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

📄 lhw_stbc_x2c.mdl

📁 无线通信中空时分组码matlab(simlink)仿真方案
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      OutDataTypeMode	      "Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Rayleigh Noise\nGenerator"
	      Ports		      [0, 1]
	      Position		      [125, 28, 205, 72]
	      FontSize		      10
	      SourceBlock	      "commnoisgen2/Rayleigh Noise\nGenerator"
	      SourceType	      "Rayleigh Noise Generator"
	      ShowPortLabels	      on
	      alpha		      "my_sigma"
	      seed		      "45821"
	      Ts		      "my_sample_time"
	      frameBased	      off
	      sampPerFrame	      "1"
	      orient		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Uniform Noise\nGenerator"
	      Ports		      [0, 1]
	      Position		      [25, 103, 105, 147]
	      FontSize		      10
	      SourceBlock	      "commnoisgen2/Uniform Noise\nGenerator"
	      SourceType	      "Uniform Noise Generator"
	      ShowPortLabels	      on
	      low		      "0"
	      up		      "2*pi"
	      seed		      "52267"
	      Ts		      "my_sample_time"
	      frameBased	      off
	      sampPerFrame	      "1"
	      orient		      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "h2"
	      Position		      [325, 73, 355, 87]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Uniform Noise\nGenerator"
	      SrcPort		      1
	      DstBlock		      "Complex\nExponential"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Rayleigh Noise\nGenerator"
	      SrcPort		      1
	      Points		      [20, 0; 0, 20]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Complex\nExponential"
	      SrcPort		      1
	      Points		      [25, 0; 0, -40]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "h2"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [360, 78, 390, 92]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "h1"
	  SrcPort		  1
	  DstBlock		  "Copy"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "h2"
	  SrcPort		  1
	  DstBlock		  "Copy1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Copy"
	  SrcPort		  1
	  DstBlock		  "Matrix\nConcatenation1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Copy1"
	  SrcPort		  1
	  DstBlock		  "Matrix\nConcatenation1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Matrix\nConcatenation1"
	  SrcPort		  1
	  DstBlock		  "Buffer"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Buffer"
	  SrcPort		  1
	  DstBlock		  "Tran"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tran"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      FrameConversion
      Name		      "Frame Conversion"
      Position		      [870, 330, 925, 370]
      Orientation	      "left"
      FontSize		      10
      OutFrame		      "Frame based"
    }
    Block {
      BlockType		      FrameConversion
      Name		      "Frame Conversion2"
      Position		      [815, 80, 860, 110]
      FontSize		      10
      OutFrame		      "Sample based"
    }
    Block {
      BlockType		      FrameConversion
      Name		      "Frame Conversion3"
      Position		      [815, 200, 860, 230]
      FontSize		      10
      OutFrame		      "Sample based"
    }
    Block {
      BlockType		      FrameConversion
      Name		      "Frame Conversion4"
      Position		      [815, 130, 860, 160]
      FontSize		      10
      OutFrame		      "Sample based"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer to Bit\nConverter"
      Ports		      [1, 1]
      Position		      [240, 331, 300, 369]
      FontSize		      10
      SourceBlock	      "commutil2/Integer to Bit\nConverter"
      SourceType	      "Integer to Bit Converter"
      nbits		      "3"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer to Bit\nConverter1"
      Ports		      [1, 1]
      Position		      [620, 331, 680, 369]
      Orientation	      "left"
      FontSize		      10
      SourceBlock	      "commutil2/Integer to Bit\nConverter"
      SourceType	      "Integer to Bit Converter"
      nbits		      "3"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer to Bit\nConverter2"
      Ports		      [1, 1]
      Position		      [120, 68, 170, 102]
      FontSize		      10
      SourceBlock	      "commutil2/Integer to Bit\nConverter"
      SourceType	      "Integer to Bit Converter"
      nbits		      "3"
    }
    Block {
      BlockType		      Reference
      Name		      "M-PSK\nModulator\nBaseband"
      Ports		      [1, 1]
      Position		      [205, 68, 255, 102]
      FontSize		      10
      SourceBlock	      "commdigbbndpm2/M-PSK\nModulator\nBaseband"
      SourceType	      "M-PSK Modulator Baseband"
      M			      "8"
      InType		      "Bit"
      Enc		      "Gray"
      Ph		      "0"
      numSamp		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Matrix\nConcatenation"
      Ports		      [2, 1]
      Position		      [380, 55, 435, 115]
      FontSize		      10
      SourceBlock	      "simulink/Math\nOperations/Matrix\nConcatenation"
      SourceType	      "Matrix Concatenation"
      numInports	      "2"
      catMethod		      "Horizontal"
    }
    Block {
      BlockType		      Reference
      Name		      "Matrix\nSum"
      Ports		      [1, 1]
      Position		      [605, 76, 655, 114]
      DialogController	      "dspDDGCreate"
      DialogControllerArgs    "DataTag0"
      FontSize		      10
      SourceBlock	      "dspmtrx3/Matrix\nSum"
      SourceType	      "Matrix Sum"
      Dim		      "Columns"
      additionalParams	      off
      allowOverrides	      on
      outputMode	      "Same as accumulator"
      outputWordLength	      "16"
      outputFracLength	      "15"
      accumMode		      "Inherit via internal rule"
      accumWordLength	      "32"
      accumFracLength	      "30"
      roundingMode	      "Floor"
      overflowMode	      off
      LockScale		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Multiport\nSelector"
      Ports		      [1, 1]
      Position		      [535, 180, 590, 220]
      FontSize		      10
      SourceBlock	      "dspindex/Multiport\nSelector"
      SourceType	      "Multiport Selector"
      rowsOrCols	      "Columns"
      idxCellArray	      "{ 1 }"
      idxErrMode	      "Clip Index"
    }
    Block {
      BlockType		      Product
      Name		      "Product4"
      Ports		      [2, 1]
      Position		      [545, 76, 580, 109]
      Inputs		      "**"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutScaling	      "2^-10"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      "S-Function"
      Name		      "S-Function Builder"
      Ports		      [1, 2]
      Position		      [285, 56, 345, 114]
      BackgroundColor	      "lightBlue"
      CopyFcn		      "set_param(gcbh,'LinkStatus','none')"
      PreSaveFcn	      "try, set_param(gcb,'FunctionName','x_2_c'), end"
      OpenFcn		      "sfunctionwizard(gcbh)"
      FontSize		      10
      FunctionName	      "x_2_c"
      SFunctionModules	      "x_2_c_wrapper  "
      WizardData	      "DataTag1"
      MaskType		      "S-Function Builder"
      MaskInitialization      "val = [[.9  0.75 0.75 1 1 .9 .9 1]',[1 1 0.75 0"
".75 .9 .9 1 .9]'];try , sys = get_param(gcb,'SfunBuilderFcnName');if isempty("
"sys), sys = get_param(gcb,'FunctionName'); end,catch, sys = get_param(gcb,'Fu"
"nctionName'); end"
      MaskDisplay	      "plot(val(:,1),val(:,2)),disp(sys)port_label('in"
"put',1,'x')port_label('output',1,'y1')port_label('output',2,'y2')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "normalized"
    }
    Block {
      BlockType		      Reference
      Name		      "Source"
      Ports		      [0, 1]
      Position		      [15, 67, 65, 103]
      FontSize		      10
      SourceBlock	      "commrandsrc2/Random Integer\nGenerator"
      SourceType	      "Random Integer Generator"
      ShowPortLabels	      on
      mul		      "8"
      seed		      "66403"
      Ts		      "1e-5"
      frameBased	      on
      sampPerFrame	      "2"
      orient		      off
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [520, 535, 580, 565]
      VariableName	      "ErrorVec"
      MaxDataPoints	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      Reference
      Name		      "Transpose"
      Ports		      [1, 1]
      Position		      [465, 70, 500, 100]
      FontSize		      10
      SourceBlock	      "dspmtrx3/Transpose"
      SourceType	      "Transpose"
      Hermitian		      off
      overflowFlag	      on
    }
    Block {
      BlockType		      Math
      Name		      "Transpose1"
      Ports		      [1, 1]
      Position		      [760, 80, 790, 110]
      Operator		      "transpose"
    }
    Block {
      BlockType		      Math
      Name		      "conj"
      Ports		      [1, 1]
      Position		      [655, 215, 685, 245]
      Operator		      "conj"
    }
    Block {
      BlockType		      "S-Function"
      Name		      "signal determination"
      Ports		      [2, 1]
      Position		      [926, 245, 984, 305]
      Orientation	      "down"
      BackgroundColor	      "lightBlue"
      NamePlacement	      "alternate"
      CopyFcn		      "set_param(gcbh,'LinkStatus','none')"
      PreSaveFcn	      "try, set_param(gcb,'FunctionName','signal_deter"
"mination'), end"
      InitFcn		      "try, set_param(gcb,'FunctionName','signal_deter"
"mination'), end,"
      OpenFcn		      "sfunctionwizard(gcbh)"
      FontSize		      10
      FunctionName	      "signal_determination"
      SFunctionModules	      "signal_determination_wrapper  "
      WizardData	      "DataTag2"
      MaskType		      "S-Function Builder"
      MaskInitialization      "val = [[.9  0.75 0.75 1 1 .9 .9 1]',[1 1 0.75 0"
".75 .9 .9 1 .9]'];try , sys = get_param(gcb,'SfunBuilderFcnName');if isempty("
"sys), sys = get_param(gcb,'FunctionName'); end,catch, sys = get_param(gcb,'Fu"
"nctionName'); end"
      MaskDisplay	      "plot(val(:,1),val(:,2)),disp(sys)port_label('in"
"put',1,'h2')port_label('input',2,'x')port_label('output',1,'y0')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "normalized"
    }
    Block {
      BlockType		      SubSystem
      Name		      "x3h decoder\nsignal estimation"
      Ports		      [2, 1]
      Position		      [895, 72, 960, 168]
      BackgroundColor	      "lightBlue"
      FontSize		      10
      TreatAsAtomicUnit	      on
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"x3h decoder\nsignal estimation"
	Location		[2, 74, 1014, 724]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "r"
	  Position		  [15, 58, 45, 72]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "h"
	  Position		  [15, 113, 45, 127]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Atomic Subsystem"
	  Ports			  [2, 8]
	  Position		  [175, 36, 235, 149]
	  FontSize		  10
	  TreatAsAtomicUnit	  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Atomic Subsystem"
	    Location		    [2, 74, 1014, 724]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [15, 88, 45, 102]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In2"
	      Position		      [20, 388, 50, 402]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Math\nFunction"
	      Ports		      [1, 1]
	      Position		      [100, 230, 130, 260]
	      Operator		      "conj"
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Math\nFunction1"
	      Ports		      [1, 1]
	      Position		      [100, 530, 130, 560]
	      Operator		      "conj"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Multiport\nSelector"
	      Ports		      [1, 2]
	      Position		      [175, 59, 230, 126]
	      FontSize		      10
	      SourceBlock	      "dspindex/Multiport\nSelector"
	      SourceType	      "Multiport Selector"
	      rowsOrCols	      "Rows"
	      idxCellArray	      "{ 1,2}"
	      idxErrMode	      "Clip Index"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Multiport\nSelector1"
	      Ports		      [1, 2]

⌨️ 快捷键说明

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