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

📄 fangan1.mdl

📁 网格编码的16QAM仿真
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	  ShowAdditionalParam	  on
	  DataType		  "double"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_2"
	  Position		  [30, 75, 50, 95]
	  ShowName		  off
	  Port			  "2"
	  ShowAdditionalParam	  on
	  DataType		  "double"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion"
	  Position		  [190, 91, 245, 119]
	  DataType		  "double"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 2]
	  Position		  [305, 37, 345, 73]
	  ShowName		  off
	  Outputs		  "[tf(2,size(tf,2)), 1]"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Modulo\noperation1"
	  Ports			  [1, 1]
	  Position		  [235, 40, 280, 70]
	  ShowName		  off
	  CopyFcn		  "set_param(gcb,'userdata',[]);"
	  DeleteFcn		  "y_tp=get_param(gcb,'userdata');if ishandle("
"y_tp),delete(y_tp);end"
	  NameChangeFcn		  "set(get_param(gcb,'userdata'),'Name',gcb);"
	  TreatAsAtomicUnit	  off
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Modulo\noperation1"
	    Location		    [93, 169, 593, 429]
	    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, 65, 40, 85]
	      ShowAdditionalParam     on
	      DataType		      "double"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "Modulo\noperation1"
	      Ports		      [1, 1]
	      Position		      [90, 60, 135, 90]
	      ShowName		      off
	      FunctionName	      "sviterbi"
	      Parameters	      "tf, leng, tran_prob, plot_flag,v1,v2,v3"
",v4"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [195, 65, 215, 85]
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Modulo\noperation1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Modulo\noperation1"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [170, 35, 205, 70]
	  ShowName		  off
	  Inputs		  "[tf(1,size(tf,2)), 1]"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Rising edge\ndetector1"
	  Ports			  [1, 1]
	  Position		  [70, 63, 150, 107]
	  ShowName		  off
	  SourceBlock		  "com_util/Rising edge\ndetector"
	  SourceType		  "Edge detection"
	  thld			  "thd"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [405, 35, 425, 55]
	  ShowName		  off
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_2"
	  Position		  [370, 55, 390, 75]
	  ShowName		  off
	  Port			  "2"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Modulo\noperation1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Modulo\noperation1"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "out_2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_2"
	  SrcPort		  1
	  DstBlock		  "Rising edge\ndetector1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Rising edge\ndetector1"
	  SrcPort		  1
	  Points		  [10, 0; 0, 20]
	  DstBlock		  "Data Type Conversion"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Data Type Conversion"
	  SrcPort		  1
	  Points		  [0, -25; -95, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Binary vector\nconvolution encode"
      Ports		      [2, 1]
      Position		      [500, 148, 580, 192]
      AncestorBlock	      "comcdcon/Binary vector\nconvolution encode"
      TreatAsAtomicUnit	      off
      MaskType		      "Vector I/O convolution encode"
      MaskDescription	      "Convolution encode with codeword length N and m"
"essage length K. Transfer function matrix is a K-by-N matrix. "
      MaskHelp		      "This block encodes length K binary vector messa"
"ge input into length N binary vector codeword output using convolution code. "
"The block refreshes its register memory and output at the rising edge of the "
"second inport pulse. You can also use a SIMULINK block diagram to define the "
"convolution code transfer function."
      MaskPromptString	      "Transfer function (or SIMULINK diagram):|Trigge"
"r signal threshold:"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "tf=@1;thd=@2;"
      MaskInitialization      "tf=simviter(tf);\n"
      MaskDisplay	      "plot(0,0,100,100,[05 15 15 05 05 15 15 15  15 2"
"0 15 75 75 85 75 75 15 75 75  85 85 95 95 85 85 95 85 85 95],[80 80 90 90 70 "
"70 90 80  83 80 77 77 73 80 87 83 83 83 87  80 95 95 65 65 85 85 85 75 75],[5"
" 10 10 8 10 12 10 10 15],[5 5 12 8 12 8 12 15 15]+15);\ndisp('Convl en')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "'mokuai'|0.5"
      System {
	Name			"Binary vector\nconvolution encode"
	Location		[510, 338, 929, 527]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [40, 20, 60, 40]
	  ShowName		  off
	  ShowAdditionalParam	  on
	  DataType		  "double"
	}
	Block {
	  BlockType		  Inport
	  Name			  "in_2"
	  Position		  [40, 65, 60, 85]
	  ShowName		  off
	  Port			  "2"
	  ShowAdditionalParam	  on
	  DataType		  "double"
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion"
	  Position		  [170, 126, 225, 154]
	  DataType		  "double"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "Modulo\noperation1"
	  Ports			  [1, 1]
	  Position		  [275, 25, 335, 55]
	  ShowName		  off
	  FunctionName		  "sconvenc"
	  Parameters		  "tf"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [210, 21, 245, 54]
	  ShowName		  off
	  Inputs		  "2"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Rising edge\ndetector1"
	  Ports			  [1, 1]
	  Position		  [90, 53, 170, 97]
	  ShowName		  off
	  SourceBlock		  "com_util/Rising edge\ndetector"
	  SourceType		  "Edge detection"
	  thld			  "thd"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [370, 30, 390, 50]
	  ShowName		  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Modulo\noperation1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Modulo\noperation1"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_2"
	  SrcPort		  1
	  DstBlock		  "Rising edge\ndetector1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Rising edge\ndetector1"
	  SrcPort		  1
	  Points		  [0, 40; -20, 0]
	  DstBlock		  "Data Type Conversion"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Data Type Conversion"
	  SrcPort		  1
	  Points		  [0, -75; -35, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Bit to Integer\nConverter"
      Ports		      [1, 1]
      Position		      [735, 123, 815, 167]
      SourceBlock	      "commutil2/Bit to Integer\nConverter"
      SourceType	      "Bit to Integer Converter"
      nbits		      "4"
    }
    Block {
      BlockType		      Reference
      Name		      "Bit to Integer\nConverter1"
      Ports		      [1, 1]
      Position		      [710, 473, 790, 517]
      SourceBlock	      "commutil2/Bit to Integer\nConverter"
      SourceType	      "Bit to Integer Converter"
      nbits		      "3"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 2]
      Position		      [430, 105, 435, 180]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "2"
    }
    Block {
      BlockType		      Demux
      Name		      "Demux1"
      Ports		      [1, 2]
      Position		      [315, 449, 320, 536]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete-Time\nEye Diagram\nScope"
      Tag		      "EyeDiagram"
      Ports		      [1]
      Position		      [655, 341, 700, 389]
      SourceBlock	      "commsink2/Discrete-Time\nEye Diagram\nScope"
      SourceType	      "Discrete-Time Eye Diagram Scope"
      showPlotting	      on
      sampPerSymb	      "8"
      offsetEye		      "0"
      symbPerTrace	      "1"
      numTraces		      "500"
      numNewFrames	      "10"
      showRendering	      off
      LineStyles	      "-"
      LineColors	      "b"
      dupPoints		      on
      fading		      on
      render		      on
      AxisGrid		      on
      showAxes		      off
      yMin		      "-1.5"

⌨️ 快捷键说明

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