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

📄 ooknrzbw.mdl

📁 数字调制方法的Simulink仿真学习程序
💻 MDL
📖 第 1 页 / 共 4 页
字号:
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "S-function"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [535, 22, 630, 48]
      ShowName		      off
      Expr		      "2*cos(4*pi*u)"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn1"
      Position		      [260, 145, 355, 175]
      ShowName		      off
      Expr		      "cos(4*pi*u)"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Noise variance"
      Ports		      []
      Position		      [479, 80, 585, 104]
      BackgroundColor	      "lightBlue"
      ShowName		      off
      OpenFcn		      "setnoise"
      FontSize		      12
      FontAngle		      "italic"
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MaskType		      "noise"
      MaskDisplay	      "disp('Noise variance')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Noise variance"
	Location		[136, 230, 381, 439]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"cyan"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [395, 123, 425, 147]
      ShowName		      off
    }
    Block {
      BlockType		      Product
      Name		      "Product1"
      Ports		      [2, 1]
      Position		      [650, 118, 680, 142]
      ShowName		      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Source"
      Ports		      [0, 1]
      Position		      [55, 103, 85, 157]
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      System {
	Name			"Source"
	Location		[38, 153, 317, 326]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  SubSystem
	  Name			  "Source"
	  Ports			  [0, 1]
	  Position		  [70, 63, 135, 107]
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MaskType		  "Read from workspace"
	  MaskDescription	  "Read from a workspace variable at\nsampling"
" time point."
	  MaskHelp		  "This block reads from a workspace variable "
"at a given sample time. The column number is the block output vector length. "
"When the simulation reaches the end of the variable (eof), the block will cyc"
"lically output from the first row of the variable or output zeros based on th"
"e repeat flag entree."
	  MaskPromptString	  "Variable (column_number=block_output_length"
"):|Data output sample time (sec):|Repeat flag (1: repeat read, 0: output zero"
"s after eof).|Initial output:"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVarAliasString	  ",,,"
	  MaskInitialization	  "var=@1;td=@2;ts=td(1);if (length(td)>=2),of"
"f=td(2);else off=0;end;cyc=@3;ini=@4;[x,y]=srcsicon(7);"
	  MaskDisplay		  "plot(0,0,100,100,x,y);disp('Rd wksp')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "randint(1000,1,2)|1|1|1"
	  System {
	    Name		    "Source"
	    Location		    [355, 528, 737, 675]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      "S-Function"
	      Name		      "Message source"
	      Ports		      [1, 1]
	      Position		      [180, 53, 255, 97]
	      BackgroundColor	      "yellow"
	      FunctionName	      "trigwksp"
	      Parameters	      "var,thd,cyclFlag,ini"
	      MaskType		      "Read from workspace"
	      MaskDescription	      "The raising edge of input pulse trigger"
" the block output the next row from the workspace variable."
	      MaskHelp		      "This block reads the data from a worksp"
"ace variable. The output is refreshed at the raising edge of the input pulse."
	      MaskPromptString	      "Read the variable:|Threshold for the in"
"put pulse:|Cyclic read variable (1) or amend zeros (0).|Output before first t"
"rigger:"
	      MaskStyleString	      "edit,edit,edit,edit"
	      MaskTunableValueString  "on,on,on,on"
	      MaskCallbackString      "|||"
	      MaskEnableString	      "on,on,on,on"
	      MaskVisibilityString    "on,on,on,on"
	      MaskToolTipString	      "on,on,on,on"
	      MaskVarAliasString      ",,,"
	      MaskInitialization      "var=@1;thd=@2;cyclFlag=@3;ini=@4;"
	      MaskDisplay	      "disp('Triggered\\nread')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      MaskValueString	      "var|.1|cyc|ini"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Pulses deivide\nsame sample time1"
	      Ports		      [0, 1]
	      Position		      [50, 56, 110, 94]
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MaskType		      "Pulse generator"
	      MaskDescription	      "Vector pulses with sample rate of each "
"pulse as Sample_time ./Divider. "
	      MaskHelp		      "This block generator a vector pulses. T"
"he output length is the same as the vector defined in \"Divider\". The ith el"
"ement of the output has the sample time Sample_time/Divider(i). All elements "
"in \"Divider\" must be integers."
	      MaskPromptString	      "Sample time (scalar, sec):|Divider (int"
"eger vector):|Offset (have same dimension as Divider:"
	      MaskStyleString	      "edit,edit,edit"
	      MaskTunableValueString  "on,on,on"
	      MaskCallbackString      "||"
	      MaskEnableString	      "on,on,on"
	      MaskVisibilityString    "on,on,on"
	      MaskToolTipString	      "on,on,on"
	      MaskVarAliasString      ",,"
	      MaskInitialization      "samp_time=@1;out_divid=@2;offset=@3;"
	      MaskDisplay	      "disp('Vector\\nPulse')"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      MaskValueString	      "ts|1|off"
	      System {
		Name			"Pulses deivide\nsame sample time1"
		Location		[55, 192, 283, 286]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  "S-Function"
		  Name			  "S-function1"
		  Ports			  [0, 1]
		  Position		  [40, 31, 105, 59]
		  FunctionName		  "homopuls"
		  Parameters		  "samp_time, out_divid, offset"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [160, 35, 180, 55]
		}
		Line {
		  SrcBlock		  "S-function1"
		  SrcPort		  1
		  DstBlock		  "Outport"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out_1"
	      Position		      [295, 65, 315, 85]
	    }
	    Line {
	      SrcBlock		      "Message source"
	      SrcPort		      1
	      DstBlock		      "out_1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pulses deivide\nsame sample time1"
	      SrcPort		      1
	      DstBlock		      "Message source"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [230, 75, 250, 95]
	}
	Line {
	  SrcBlock		  "Source"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "a(t)"
      Ports		      [1]
      Position		      [120, 215, 150, 245]
      NamePlacement	      "alternate"
      Location		      [212, 338, 1147, 438]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "25.000000"
      YMin		      "-2"
      YMax		      "2"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      Scope
      Name		      "received signal r(t)"
      Ports		      [1]
      Position		      [585, 215, 615, 245]
      Orientation	      "down"
      Location		      [211, 630, 1147, 730]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "25.000000"
      YMin		      "-2"
      YMax		      "2"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      SubSystem
      Name		      "receiver\ndiagrams"
      Ports		      [1]
      Position		      [880, 15, 935, 55]
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MaskType		      "Diagrams"
      MaskDescription	      "Eye pattern, signal space trajectory and scatte"
"r plot"
      MaskPromptString	      "Plot start time:|Samples per time slot (2*T):|D"
"ecision 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	      "1|40|.075"
      System {
	Name			"receiver\ndiagrams"
	Location		[475, 310, 844, 551]
	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, 40, 55, 60]
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [35, 130, 55, 150]
	  Value			  "Inf"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [130, 130, 150, 150]
	  Value			  "0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Eye pattern\nreceiver"
	  Ports			  [1]
	  Position		  [275, 37, 330, 73]
	  CopyFcn		  "eyesampl([],[],[],'CopyBlock')"
	  DeleteFcn		  "eyesampl([],[],[],'DeleteBlock')"
	  LoadFcn		  "eyesampl([],[],[],'LoadBlock')"
	  StartFcn		  "eyesampl([],[],[],'Start')"
	  StopFcn		  "eyesampl([],[],[],'Stop')"
	  NameChangeFcn		  "eyesampl([],[],[],'NameChange')"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MaskType		  "Eye-diagram/scatter plot"
	  MaskDescription	  "Produce eye-pattern diagram and/or scatter "
"plot."
	  MaskHelp		  "This plot opens one, or two plots by assign"
"ing the line type parameters. The scatter plot point is selected by the decis"
"ion point in the first parameter entry. A decision line is drawn in the eye-p"
"attern diagram. The plot is updated at the plot update sample time point."
	  MaskPromptString	  "[Symbol interval, plot offset, decision poi"
"nt offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Number of"
" 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	  "[2 0 1+offset]|[-1.5 1.5]|0|'w-/r-'|0|2/anz"
"ahl"
	  System {
	    Name		    "Eye pattern\nreceiver"
	    Location		    [121, 409, 416, 595]
	    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		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [185, 36, 220, 69]
	  Inputs		  "2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [2, 1]
	  Position		  [185, 96, 220, 129]
	  Inputs		  "2"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Scatter plot \nreceiver"
	  Ports			  [1]
	  Position		  [275, 173, 330, 207]
	  CopyFcn		  "eyesampl([],[],[],'CopyBlock')"
	  DeleteFcn		  "eyesampl([],[],[],'DeleteBlock')"
	  LoadFcn		  "eyesampl([],[],[],'LoadBlock')"
	  StartFcn		  "eyesampl([],[],[],'Start')"
	  StopFcn		  "eyesampl([],[],[],'Stop')"
	  NameChangeFcn		  "eyesampl([],[],[],'NameChange')"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MaskType		  "Eye-diagram/scatter plot"
	  MaskDescription	  "Produce eye-pattern diagram and/or scatter "
"plot."
	  MaskHelp		  "This plot opens one, or two plots by assign"
"ing the line type parameters. The scatter plot point is selected by the decis"
"ion point in the first parameter entry. A decision line is drawn in the eye-p"
"attern diagram. The plot is updated at the plot update sample time point."
	  MaskPromptString	  "[Symbol interval, plot offset, decision poi"
"nt offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Number of"

⌨️ 快捷键说明

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