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

📄 bpswnymf.mdl

📁 这些都是通信系统仿真与分析一书的源代码
💻 MDL
📖 第 1 页 / 共 5 页
字号:
" saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-type f"
"or scatter plot (0 for no plot):|Plot update sample time:"
	  MaskStyleString	  "edit,edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on,on"
	  MaskCallbackString	  "|||||"
	  MaskEnableString	  "on,on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on,on"
	  MaskVarAliasString	  ",,,,,"
	  MaskInitialization	  "time_range=@1;boundary=@2;kept_length=@3;ey"
"e_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
	  MaskDisplay		  "plot(0,0,100,100,x,y);"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[1 .5 .999]|[-1.5 1.5]|0|0|'b.'|[.5 offset]"
	  System {
	    Name		    "Scatter plot\nreceiver"
	    Location		    [165, 242, 460, 428]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "in_1"
	      Position		      [75, 80, 95, 100]
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "Plot1"
	      Ports		      [1]
	      Position		      [130, 70, 200, 110]
	      FunctionName	      "eyesampl"
	      Parameters	      "time_range, boundary, kept_length, eye_"
"line, scatter_line, two_d_line"
	    }
	    Line {
	      SrcBlock		      "in_1"
	      SrcPort		      1
	      DstBlock		      "Plot1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Step
	  Name			  "Step input"
	  Position		  [35, 85, 55, 105]
	  Time			  "starttime"
	  SampleTime		  "1"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [110, 44, 135, 76]
	  Threshold		  "1"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Trajectory\nreceiver"
	  Ports			  [1]
	  Position		  [275, 107, 330, 143]
	  CopyFcn		  "eyediasi([],[],[],'CopyBlock')"
	  DeleteFcn		  "eyediasi([],[],[],'DeleteBlock')"
	  LoadFcn		  "eyediasi([],[],[],'LoadBlock')"
	  StartFcn		  "eyediasi([],[],[],'Start')"
	  StopFcn		  "eyediasi([],[],[],'Stop')"
	  NameChangeFcn		  "eyediasi([],[],[],'NameChange')"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MaskType		  "Eye-diagram/scatter plot"
	  MaskDescription	  "Produce eye-pattern diagram/scatter\nplot/x"
"-y plot with the rising edge of the second input as the decision line."
	  MaskHelp		  "This plot opens one, two, or three plots by"
" assigning the line type parameters. The scatter plot point is selected by th"
"e rising edge of a trigger signal. A decision line is drawn at the rising edg"
"e of the trigger signal."
	  MaskPromptString	  "Eye-pattern plot time frame:|Lower and uppe"
"r bound of in-coming signal (1x2 vector):|Number of saved traces:|Line-type f"
"or eye-pattern diagram (0 for no plot):|Line-type for scatter plot (0 for no "
"plot):|Line-type for x-y plot (0 for no plot):"
	  MaskStyleString	  "edit,edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on,on"
	  MaskCallbackString	  "|||||"
	  MaskEnableString	  "on,on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on,on"
	  MaskVarAliasString	  ",,,,,"
	  MaskInitialization	  "time_range=@1;boundary=@2;kept_length=@3;ey"
"e_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);[v,w]=trigicon(0,2"
"5,get_param(gcb,'orientation'),2);"
	  MaskDisplay		  "plot(0,0,100,100,x,y,v,w);"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[2 0 1]|[-1.5 1.5]|0|0|0|'g-'"
	  System {
	    Name		    "Trajectory\nreceiver"
	    Location		    [165, 242, 460, 428]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "in_1"
	      Position		      [15, 55, 35, 75]
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [15, 110, 45, 140]
	      Value		      "0"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [65, 70, 100, 105]
	      Inputs		      "2"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "Plot1"
	      Ports		      [1]
	      Position		      [130, 70, 200, 110]
	      FunctionName	      "eyediasi"
	      Parameters	      "time_range, boundary, kept_length, eye_"
"line, scatter_line, two_d_line"
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Plot1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "in_1"
	      SrcPort		      1
	      Points		      [5, 0; 0, 15]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Eye pattern\nreceiver"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Step input"
	  SrcPort		  1
	  Points		  [15, 0; 0, -35]
	  DstBlock		  "Switch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [35, 0]
	  DstBlock		  "Switch"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Mux1"
	  SrcPort		  1
	  Points		  [25, 0]
	  Branch {
	    Points		    [10, 0]
	    DstBlock		    "Trajectory\nreceiver"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 75]
	    DstBlock		    "Scatter plot\nreceiver"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [10, 0; 0, -20]
	  Branch {
	    Points		    [0, -75]
	    DstBlock		    "Mux"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Mux1"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Mux"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 45]
	    DstBlock		    "Mux1"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "s(t)"
      Ports		      [1]
      Position		      [210, 205, 240, 235]
      Orientation	      "down"
      Location		      [113, 667, 1048, 767]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "25.000000"
      YMin		      "-2"
      YMax		      "2"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      Scope
      Name		      "s_r(t)"
      Ports		      [1]
      Position		      [830, 180, 860, 210]
      Orientation	      "down"
      Location		      [211, 721, 1147, 821]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "25.000000"
      YMin		      "-2"
      YMax		      "2"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      Scope
      Name		      "sink signal v(t)"
      Ports		      [1]
      Position		      [990, 110, 1020, 140]
      Location		      [211, 794, 1147, 894]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "25.000000"
      YMin		      "-2"
      YMax		      "2"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      SubSystem
      Name		      "threshold\ndetector"
      Ports		      [1, 1]
      Position		      [890, 112, 920, 138]
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MaskType		      "Sign"
      MaskDescription	      "y = sign(x)"
      MaskHelp		      "Sign Function:\\n\\t\\t\\ty = 1 if x > 0\\n\\t"
"\\t\\ty = 0 if x = 0\\n\\t\\t\\ty = -1 if x < 0"
      MaskDisplay	      "plot(-50,-50,50,50,[-50,50],[0,0],[0,0],[-50,50"
"],[-40,0],[-30,-30],[0,40],[30,30])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"threshold\ndetector"
	Location		[159, 417, 467, 586]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [35, 30, 55, 50]
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [65, 105, 85, 125]
	  Value			  "0"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [140, 32, 170, 63]
	  Operator		  ">"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator1"
	  Position		  [140, 92, 170, 123]
	  Operator		  "<"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [215, 64, 235, 91]
	  Inputs		  "+-"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [265, 70, 285, 90]
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  Points		  [10, 0; 0, 20]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relational\nOperator1"
	  SrcPort		  1
	  Points		  [10, 0; 0, -25]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    DstBlock		    "Relational\nOperator1"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -60]
	    DstBlock		    "Relational\nOperator"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  Points		  [35, 0]
	  Branch {
	    DstBlock		    "Relational\nOperator"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 60]
	    DstBlock		    "Relational\nOperator1"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "transmitted signal u(t)"
      Ports		      [1]
      Position		      [445, 180, 475, 210]
      Orientation	      "down"
      Location		      [119, 821, 1055, 921]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "25.000000"
      YMin		      "-2"
      YMax		      "2"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      SubSystem
      Name		      "transmitter\ndiagrams"
      Ports		      [1]
      Position		      [270, 20, 325, 60]
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MaskType		      "Diagrams"
      MaskDescription	      "Eye pattern,  signal-space trajectory and scatt"
"er plot"
      MaskPromptString	      "Plot start time:|samples per time slot|decision"
" offset"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables	      "starttime=@1;anzahl=@2;offset=@3;"
      MaskInitialization      " [x, y] = srcsicon(10);"
      MaskDisplay	      "plot(0,0,100,100,x,y)"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "6|40|0"
      System {
	Name	

⌨️ 快捷键说明

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