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

📄 lhw_stbc_x4h.mdl

📁 用simlink开发的space-time coding仿真模型,仿真的精度与效率有不小的提高
💻 MDL
📖 第 1 页 / 共 5 页
字号:
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [515, 71, 550, 104]
      Inputs		      "**"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutScaling	      "2^-10"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Reference
      Name		      "Rectangular QAM\nModulator\nBaseband"
      Ports		      [1, 1]
      Position		      [100, 63, 150, 97]
      FontSize		      10
      SourceBlock	      "commdigbbndam2/Rectangular QAM\nModulator\nBase"
"band"
      SourceType	      "Rectangular QAM Modulator Baseband"
      M			      "16"
      InType		      "Integer"
      Enc		      "Binary"
      PowType		      "Average Power"
      MinDist		      "2"
      AvgPow		      "1"
      PeakPow		      "1"
      Ph		      "0"
      numSamp		      "1"
    }
    Block {
      BlockType		      "S-Function"
      Name		      "S-Function Builder"
      Ports		      [1, 4]
      Position		      [255, 47, 315, 108]
      BackgroundColor	      "lightBlue"
      CopyFcn		      "set_param(gcbh,'LinkStatus','none')"
      PreSaveFcn	      "try, set_param(gcb,'FunctionName','x_4_h'), end"
      InitFcn		      "try, set_param(gcb,'FunctionName','x_4_h'), end"
","
      OpenFcn		      "sfunctionwizard(gcbh)"
      FontSize		      10
      FunctionName	      "x_4_h"
      SFunctionModules	      "x_4_h_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')port_label('"
"output',3,'y3')port_label('output',4,'y4')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "normalized"
    }
    Block {
      BlockType		      Reference
      Name		      "Source"
      Ports		      [0, 1]
      Position		      [15, 62, 65, 98]
      FontSize		      10
      SourceBlock	      "commrandsrc2/Random Integer\nGenerator"
      SourceType	      "Random Integer Generator"
      ShowPortLabels	      on
      mul		      "16"
      seed		      "37"
      Ts		      "1e-5"
      frameBased	      on
      sampPerFrame	      "3"
      orient		      off
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [510, 530, 570, 560]
      VariableName	      "ErrorVec"
      MaxDataPoints	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      Math
      Name		      "Transpose"
      Ports		      [1, 1]
      Position		      [430, 65, 460, 95]
      Operator		      "transpose"
    }
    Block {
      BlockType		      Math
      Name		      "Transpose1"
      Ports		      [1, 1]
      Position		      [755, 75, 785, 105]
      Operator		      "transpose"
    }
    Block {
      BlockType		      Math
      Name		      "conj"
      Ports		      [1, 1]
      Position		      [635, 210, 665, 240]
      Operator		      "conj"
    }
    Block {
      BlockType		      "S-Function"
      Name		      "signal determination"
      Ports		      [2, 1]
      Position		      [921, 225, 979, 285]
      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		      [885, 67, 950, 163]
      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, 98, 45, 112]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Atomic Subsystem"
	  Ports			  [2, 16]
	  Position		  [150, 49, 210, 126]
	  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		      [20, 53, 50, 67]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In2"
	      Position		      [20, 378, 50, 392]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Math\nFunction"
	      Ports		      [1, 1]
	      Position		      [85, 220, 115, 250]
	      Operator		      "conj"
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Math\nFunction1"
	      Ports		      [1, 1]
	      Position		      [85, 520, 115, 550]
	      Operator		      "conj"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Multiport\nSelector"
	      Ports		      [1, 4]
	      Position		      [155, 43, 210, 77]
	      FontSize		      10
	      SourceBlock	      "dspindex/Multiport\nSelector"
	      SourceType	      "Multiport Selector"
	      rowsOrCols	      "Rows"
	      idxCellArray	      "{ 1,2,3,4 }"
	      idxErrMode	      "Clip Index"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Multiport\nSelector1"
	      Ports		      [1, 4]
	      Position		      [155, 218, 210, 252]
	      FontSize		      10
	      SourceBlock	      "dspindex/Multiport\nSelector"
	      SourceType	      "Multiport Selector"
	      rowsOrCols	      "Rows"
	      idxCellArray	      "{ 1,2,3,4 }"
	      idxErrMode	      "Clip Index"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Multiport\nSelector2"
	      Ports		      [1, 4]
	      Position		      [155, 368, 210, 402]
	      FontSize		      10
	      SourceBlock	      "dspindex/Multiport\nSelector"
	      SourceType	      "Multiport Selector"
	      rowsOrCols	      "Rows"
	      idxCellArray	      "{ 1,2,3,4}"
	      idxErrMode	      "Clip Index"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Multiport\nSelector3"
	      Ports		      [1, 4]
	      Position		      [155, 518, 210, 552]
	      FontSize		      10
	      SourceBlock	      "dspindex/Multiport\nSelector"
	      SourceType	      "Multiport Selector"
	      rowsOrCols	      "Rows"
	      idxCellArray	      "{ 1,2,3,4}"
	      idxErrMode	      "Clip Index"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [370, 13, 400, 27]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out2"
	      Position		      [370, 43, 400, 57]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out3"
	      Position		      [370, 73, 400, 87]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out4"
	      Position		      [370, 103, 400, 117]
	      Port		      "4"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out5"
	      Position		      [370, 178, 400, 192]
	      Port		      "5"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out6"
	      Position		      [370, 208, 400, 222]
	      Port		      "6"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out7"
	      Position		      [370, 238, 400, 252]
	      Port		      "7"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out8"
	      Position		      [370, 268, 400, 282]
	      Port		      "8"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out9"
	      Position		      [370, 348, 400, 362]
	      Port		      "9"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out10"
	      Position		      [370, 378, 400, 392]
	      Port		      "10"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out11"
	      Position		      [370, 408, 400, 422]
	      Port		      "11"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out13"
	      Position		      [370, 498, 400, 512]
	      Port		      "12"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out14"
	      Position		      [370, 528, 400, 542]
	      Port		      "13"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out15"
	      Position		      [370, 558, 400, 572]
	      Port		      "14"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out12"
	      Position		      [370, 438, 400, 452]
	      Port		      "15"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out16"
	      Position		      [370, 593, 400, 607]
	      Port		      "16"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [5, 0]
	      Branch {
		DstBlock		"Multiport\nSelector"
		DstPort			1
	      }
	      Branch {
		Points			[0, 175]
		DstBlock		"Math\nFunction"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Math\nFunction"
	      SrcPort		      1
	      DstBlock		      "Multiport\nSelector1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In2"
	      SrcPort		      1
	      Points		      [0, 0; 5, 0]
	      Branch {
		DstBlock		"Multiport\nSelector2"
		DstPort			1
	      }
	      Branch {
		Points			[0, 150]
		DstBlock		"Math\nFunction1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Math\nFunction1"
	      SrcPort		      1
	      DstBlock		      "Multiport\nSelector3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Multiport\nSelector"
	      SrcPort		      1
	      Points		      [60, 0; 0, -25]
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Multiport\nSelector"
	      SrcPort		      2
	      Points		      [70, 0; 0, -5]
	      DstBlock		      "Out2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Multiport\nSelector"
	      SrcPort		      3

⌨️ 快捷键说明

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