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

📄 ofdm_exp.mdl

📁 OFDM限幅类峰均比,用于仿真OFDM系统中的限幅类峰均比。
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	}
	Line {
	  SrcBlock		  "Abs"
	  SrcPort		  1
	  DstBlock		  "Frame Status\nConversion"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [30, 0; 0, 140; -400, 0; 0, 25]
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Math\nFunction2"
	  SrcPort		  1
	  Points		  [35, 0; 0, 65]
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [35, 0; 0, -20]
	  DstBlock		  "Switch"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  Points		  [35, 0; 0, -65]
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch1"
	  SrcPort		  1
	  DstBlock		  "Math\nFunction2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [15, 0; 0, -20]
	  DstBlock		  "Switch1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Frame Status\nConversion"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 40]
	    Branch {
	      DstBlock		      "Switch1"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 10]
	      Branch {
		Points			[0, 75]
		DstBlock		"Switch"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Switch1"
		DstPort			2
	      }
	    }
	  }
	  Branch {
	    DstBlock		    "S-Function"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      DigitalClock
      Name		      "Digital Clock"
      Position		      [260, 117, 320, 133]
      ShowName		      off
      SampleTime	      "8e-5"
    }
    Block {
      BlockType		      Display
      Name		      "Display"
      Ports		      [1]
      Position		      [405, 268, 495, 332]
      BackgroundColor	      "yellow"
      Decimation	      "1"
    }
    Block {
      BlockType		      Display
      Name		      "Display1"
      Ports		      [1]
      Position		      [620, 110, 710, 140]
      BackgroundColor	      "cyan"
      Decimation	      "1"
    }
    Block {
      BlockType		      Display
      Name		      "Display2"
      Ports		      [1]
      Position		      [360, 113, 435, 137]
      ShowName		      off
      FontSize		      9
      Decimation	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Error Rate\nCalculation"
      Ports		      [2, 1]
      Position		      [260, 272, 335, 323]
      BackgroundColor	      "yellow"
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "128"
      st_delay		      "0"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      SubSystem
      Name		      "ExpComp"
      Description	      "complex u law compressor"
      Ports		      [1, 1]
      Position		      [560, 172, 625, 238]
      BackgroundColor	      "yellow"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('ExpComp')\n"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"ExpComp"
	Location		[0, 88, 788, 570]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [30, 58, 60, 72]
	  BackgroundColor	  "green"
	}
	Block {
	  BlockType		  Abs
	  Name			  "Abs1"
	  Position		  [105, 50, 135, 80]
	  BackgroundColor	  "yellow"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [390, 200, 420, 230]
	  BackgroundColor	  "yellow"
	  Value			  "0.0"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [260, 125, 290, 155]
	  BackgroundColor	  "yellow"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Frame Status\nConversion"
	  Ports			  [1, 1]
	  Position		  [170, 47, 220, 83]
	  BackgroundColor	  "yellow"
	  SourceBlock		  "dspsigattribs/Frame Status\nConversion"
	  SourceType		  "Frame Status Conversion"
	  growRefPort		  off
	  outframe		  "Sample-based"
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction2"
	  Ports			  [1, 1]
	  Position		  [400, 100, 430, 130]
	  BackgroundColor	  "yellow"
	  Operator		  "reciprocal"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [630, 101, 675, 134]
	  BackgroundColor	  "yellow"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [385, 276, 430, 309]
	  BackgroundColor	  "yellow"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "S-Function"
	  Ports			  [1, 1]
	  Position		  [415, 50, 515, 80]
	  BackgroundColor	  "yellow"
	  FunctionName		  "expCompanding"
	  Parameters		  "0.0015,sqrt(0.5),2"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [510, 170, 540, 200]
	  BackgroundColor	  "yellow"
	  Criteria		  "u2 > Threshold"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch1"
	  Position		  [335, 100, 365, 130]
	  BackgroundColor	  "yellow"
	  Criteria		  "u2 > Threshold"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [495, 288, 525, 302]
	  BackgroundColor	  "green"
	}
	Line {
	  SrcBlock		  "S-Function"
	  SrcPort		  1
	  Points		  [25, 0; 0, 45]
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Abs1"
	  SrcPort		  1
	  DstBlock		  "Frame Status\nConversion"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [35, 0; 0, 130; -390, 0; 0, 35]
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Math\nFunction2"
	  SrcPort		  1
	  Points		  [25, 0; 0, 60]
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [35, 0; 0, -20]
	  DstBlock		  "Switch"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  Points		  [35, 0; 0, -60]
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    DstBlock		    "Abs1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 235]
	    DstBlock		    "Product1"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch1"
	  SrcPort		  1
	  DstBlock		  "Math\nFunction2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [10, 0; 0, -15]
	  DstBlock		  "Switch1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Frame Status\nConversion"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 40]
	    Branch {
	      DstBlock		      "Switch1"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 10]
	      Branch {
		Points			[0, 70]
		DstBlock		"Switch"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Switch1"
		DstPort			2
	      }
	    }
	  }
	  Branch {
	    DstBlock		    "S-Function"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "FFT"
      Ports		      [1, 1]
      Position		      [575, 420, 615, 450]
      Orientation	      "left"
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      SourceBlock	      "dspxfrm3/FFT"
      SourceType	      "FFT"
      CompMethod	      "Table lookup"
      TableOpt		      "Speed"
      BitRevOrder	      off
    }
    Block {
      BlockType		      Reference
      Name		      "Frame Status\nConversion"
      Ports		      [1, 1]
      Position		      [365, 419, 415, 451]
      Orientation	      "left"
      BackgroundColor	      "yellow"
      SourceBlock	      "dspsigattribs/Frame Status\nConversion"
      SourceType	      "Frame Status Conversion"
      growRefPort	      off
      outframe		      "Frame-based"
    }
    Block {
      BlockType		      Reference
      Name		      "IFFT"
      Ports		      [1, 1]
      Position		      [465, 189, 505, 221]
      BackgroundColor	      "yellow"
      SourceBlock	      "dspxfrm3/IFFT"
      SourceType	      "IFFT"
      CompMethod	      "Table lookup"
      TableOpt		      "Speed"
      BitRevOrder	      off
      cs_in		      off
      SkipNorm		      off
      mode		      "Complex"
    }
    Block {
      BlockType		      SubSystem
      Name		      "PAR after"
      Ports		      [1]
      Position		      [720, 254, 820, 296]
      BackgroundColor	      "yellow"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('PAR after')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"PAR after"
	Location		[2, 82, 790, 549]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [30, 68, 60, 82]
	  BackgroundColor	  "green"
	}
	Block {
	  BlockType		  Abs
	  Name			  "Abs"
	  Position		  [160, 60, 190, 90]
	  BackgroundColor	  "yellow"
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction1"
	  Ports			  [1, 1]
	  Position		  [225, 60, 255, 90]
	  BackgroundColor	  "yellow"
	  Operator		  "square"
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction2"
	  Ports			  [1, 1]
	  Position		  [445, 135, 475, 165]
	  BackgroundColor	  "yellow"
	  Operator		  "reciprocal"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Maximum"
	  Ports			  [1, 1]
	  Position		  [360, 55, 415, 95]
	  BackgroundColor	  "yellow"
	  SourceBlock		  "dspstat3/Maximum"
	  SourceType		  "Maximum"
	  fcn			  "Value"
	  reset			  "None"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Mean"
	  Ports			  [1, 1]
	  Position		  [335, 130, 390, 170]
	  BackgroundColor	  "yellow"
	  SourceBlock		  "dspstat3/Mean"
	  SourceType		  "Mean"
	  run			  off
	  reset_popup		  "None"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [585, 96, 630, 129]
	  BackgroundColor	  "yellow"
	  InputSameDT		  off
	}
	Block {
	  BlockType		  ToWorkspace
	  Name			  "To Workspace"
	  Position		  [675, 100, 735, 130]
	  BackgroundColor	  "lightBlue"
	  VariableName		  "par_ExpComp"
	  MaxDataPoints		  "inf"
	  SampleTime		  "-1"
	  SaveFormat		  "Array"
	}
	Block {
	  BlockType		  ToWorkspace
	  Name			  "To Workspace1"
	  Position		  [135, 267, 245, 313]
	  BackgroundColor	  "lightBlue"
	  VariableName		  "ofdm_signal_ExpComp"
	  MaxDataPoints		  "inf"
	  SampleTime		  "-1"
	  SaveFormat		  "Array"
	}
	Line {
	  SrcBlock		  "In1"

⌨️ 快捷键说明

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