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

📄 tx2_rx1.mdl

📁 采用两发一收的空时分组码经过瑞丽信道后的性能仿真。
💻 MDL
📖 第 1 页 / 共 4 页
字号:
	  Name			  "Goto"
	  Position		  [635, 230, 675, 260]
	  GotoTag		  "H12"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  Concatenate
	  Name			  "Matrix\nConcatenation2"
	  Ports			  [2, 1]
	  Position		  [443, 300, 587, 340]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Mode			  "Multidimensional array"
	}
	Block {
	  BlockType		  RealImagToComplex
	  Name			  "Real-Imag to\nComplex"
	  Ports			  [2, 1]
	  Position		  [494, 155, 536, 205]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [500, 430, 530, 445]
	  Orientation		  "down"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "Matrix\nConcatenation2"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Real-Imag to\nComplex"
	  SrcPort		  1
	  Points		  [0, 35]
	  Branch {
	    Points		    [-35, 0]
	    DstBlock		    "Matrix\nConcatenation2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [35, 0]
	    Branch {
	      DstBlock		      "Matrix\nConcatenation2"
	      DstPort		      2
	    }
	    Branch {
	      DstBlock		      "Goto"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Gaussian Noise\nGenerator1"
	  SrcPort		  1
	  Points		  [-25, 0]
	  DstBlock		  "Real-Imag to\nComplex"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Gaussian Noise\nGenerator"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Real-Imag to\nComplex"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Display
      Name		      "Display"
      Ports		      [1]
      Position		      [950, 242, 1040, 318]
      Decimation	      "1"
      Lockdown		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation1"
      Ports		      [2, 1]
      Position		      [850, 252, 925, 303]
      ShowName		      off
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "0"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      From
      Name		      "From"
      Position		      [525, 271, 565, 299]
      NamePlacement	      "alternate"
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "H11"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      From
      Name		      "From1"
      Position		      [525, 306, 565, 334]
      NamePlacement	      "alternate"
      ShowName		      off
      CloseFcn		      "tagdialog Close"
      GotoTag		      "H12"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Concatenate
      Name		      "Matrix\nConcatenation1"
      Ports		      [2, 1]
      Position		      [780, 232, 830, 343]
      NamePlacement	      "alternate"
      ShowName		      off
      Mode		      "Multidimensional array"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [390, 172, 435, 223]
      ShowName		      off
      InputSameDT	      off
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
    }
    Block {
      BlockType		      Product
      Name		      "Product1"
      Ports		      [2, 1]
      Position		      [395, 265, 435, 325]
      ShowName		      off
      InputSameDT	      off
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
    }
    Block {
      BlockType		      SubSystem
      Name		      "STBC encoder "
      Ports		      [1, 2]
      Position		      [225, 177, 295, 313]
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskDisplay	      "disp('STBC\\nEncoder')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"STBC encoder "
	Location		[2, 83, 1014, 708]
	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		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [90, 233, 120, 247]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [335, 340, 370, 370]
	  Gain			  "-1"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction"
	  Ports			  [1, 1]
	  Position		  [280, 340, 310, 370]
	  ShowName		  off
	  Operator		  "conj"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction1"
	  Ports			  [1, 1]
	  Position		  [330, 225, 360, 255]
	  ShowName		  off
	  Operator		  "conj"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Concatenate
	  Name			  "Matrix\nConcatenation1"
	  Ports			  [2, 1]
	  Position		  [575, 301, 650, 374]
	  Mode			  "Multidimensional array"
	}
	Block {
	  BlockType		  Concatenate
	  Name			  "Matrix\nConcatenation2"
	  Ports			  [2, 1]
	  Position		  [580, 436, 655, 514]
	  Mode			  "Multidimensional array"
	}
	Block {
	  BlockType		  Selector
	  Name			  "Selector"
	  Ports			  [1, 1]
	  Position		  [195, 336, 235, 374]
	  ShowName		  off
	  InputPortWidth	  "2"
	  IndexOptions		  "Index vector (dialog)"
	  Indices		  "2"
	  OutputSizes		  "1"
	}
	Block {
	  BlockType		  Selector
	  Name			  "Selector1"
	  Ports			  [1, 1]
	  Position		  [200, 221, 240, 259]
	  ShowName		  off
	  InputPortWidth	  "2"
	  IndexOptions		  "Index vector (dialog)"
	  Indices		  "1"
	  OutputSizes		  "1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [700, 333, 730, 347]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [695, 468, 720, 482]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [40, 0]
	  Branch {
	    DstBlock		    "Selector1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 115]
	    DstBlock		    "Selector"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Selector1"
	  SrcPort		  1
	  Points		  [55, 0]
	  Branch {
	    DstBlock		    "Math\nFunction1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 80]
	    DstBlock		    "Matrix\nConcatenation1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Selector"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Math\nFunction"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 100]
	    DstBlock		    "Matrix\nConcatenation2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Math\nFunction"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Matrix\nConcatenation1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Matrix\nConcatenation2"
	  SrcPort		  1
	  DstBlock		  "Out2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Matrix\nConcatenation1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Math\nFunction1"
	  SrcPort		  1
	  Points		  [80, 0; 0, 255]
	  DstBlock		  "Matrix\nConcatenation2"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Selector
      Name		      "Selector1"
      Ports		      [1, 1]
      Position		      [870, 381, 910, 419]
      Orientation	      "left"
      NamePlacement	      "alternate"
      ShowName		      off
      InputPortWidth	      "3"
      IndexOptions	      "Index vector (dialog)"
      Indices		      "1"
      OutputSizes	      "1"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum4"
      Ports		      [2, 1]
      Position		      [465, 152, 480, 343]
      ShowName		      off
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace"
      Position		      [790, 385, 850, 415]
      Orientation	      "left"
      NamePlacement	      "alternate"
      VariableName	      "ber"
      MaxDataPoints	      "inf"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Line {
      SrcBlock		      "Bit data stream"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"BPSK\nModulator\nBaseband"
	DstPort			1
      }
      Branch {
	Points			[0, -120; 730, 0]
	DstBlock		"Error Rate\nCalculation1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "BPSK\nModulator\nBaseband"
      SrcPort		      1
      DstBlock		      "STBC encoder "
      DstPort		      1
    }
    Line {
      SrcBlock		      "Channel H11"
      SrcPort		      1
      DstBlock		      "Product"
      DstPort		      1
    }
    Line {
      Labels		      [0, 0]
      SrcBlock		      "STBC encoder "
      SrcPort		      1
      DstBlock		      "Product"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Channel H12"
      SrcPort		      1
      DstBlock		      "Product1"
      DstPort		      2
    }
    Line {
      Labels		      [0, 0]
      SrcBlock		      "Product"
      SrcPort		      1
      DstBlock		      "Sum4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Product1"
      SrcPort		      1
      DstBlock		      "Sum4"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum4"
      SrcPort		      1
      DstBlock		      "AWGN\nChannel"
      DstPort		      1
    }
    Line {
      SrcBlock		      "AWGN\nChannel"
      SrcPort		      1
      DstBlock		      "1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "From"
      SrcPort		      1
      DstBlock		      "1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "From1"
      SrcPort		      1
      DstBlock		      "1"
      DstPort		      3
    }
    Line {
      SrcBlock		      "1"
      SrcPort		      2
      DstBlock		      "BPSK\nDemodulator\nBaseband1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "1"
      SrcPort		      1
      DstBlock		      "BPSK\nDemodulator\nBaseband"
      DstPort		      1
    }
    Line {
      SrcBlock		      "BPSK\nDemodulator\nBaseband"
      SrcPort		      1
      DstBlock		      "Matrix\nConcatenation1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "BPSK\nDemodulator\nBaseband1"
      SrcPort		      1
      DstBlock		      "Matrix\nConcatenation1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Matrix\nConcatenation1"
      SrcPort		      1
      DstBlock		      "Error Rate\nCalculation1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Selector1"
      SrcPort		      1
      DstBlock		      "To Workspace"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Error Rate\nCalculation1"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"Display"
	DstPort			1
      }
      Branch {
	Points			[0, 120]
	DstBlock		"Selector1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "STBC encoder "
      SrcPort		      2
      DstBlock		      "Product1"
      DstPort		      1
    }
  }
}
MatData {
  NumRecords		  1
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    >     8    (     0         %    \"     $    !     0         .    2     8    (    !          %    \"     $    2     0         0    $@   $)E<FYO=6QL:4)I;F%R>4=E;@        "
  }
}

⌨️ 快捷键说明

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