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

📄 ask_model.mdl

📁 ASK communication model
💻 MDL
📖 第 1 页 / 共 4 页
字号:
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator"
	  Ports			  [2, 1]
	  Position		  [920, 162, 950, 193]
	  AllPortsSameDT	  off
	  OutDataTypeMode	  "boolean"
	  OutDataTypeStr	  "boolean"
	  SampleTime		  "0.1"
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator1"
	  Ports			  [2, 1]
	  Position		  [970, 292, 1000, 323]
	  AllPortsSameDT	  off
	  OutDataTypeMode	  "boolean"
	  OutDataTypeStr	  "boolean"
	  SampleTime		  "0.1"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [1030, 212, 1060, 243]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  SampleTime		  "0.1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [1190, 233, 1220, 247]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "Add"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  DstBlock		  "Add"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Logical\nOperator1"
	  SrcPort		  1
	  Points		  [20, 0; 0, -65]
	  DstBlock		  "Add"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Logical\nOperator"
	  SrcPort		  1
	  Points		  [30, 0; 0, 40]
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Detect\nChange"
	  SrcPort		  1
	  Points		  [0, 0]
	  Branch {
	    DstBlock		    "Logical\nOperator"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 115]
	    DstBlock		    "Logical\nOperator1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Compare\nTo Constant1"
	  SrcPort		  1
	  Points		  [20, 0; 0, -65]
	  DstBlock		  "Logical\nOperator1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Compare\nTo Constant"
	  SrcPort		  1
	  Points		  [15, 0; 0, 130]
	  DstBlock		  "Logical\nOperator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Cumulative\nSum2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Cumulative\nSum2"
	  SrcPort		  1
	  DstBlock		  "Embedded\nMATLAB Function"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Embedded\nMATLAB Function"
	  SrcPort		  1
	  Points		  [5, 0]
	  Branch {
	    Points		    [0, 65]
	    Branch {
	      DstBlock		      "Detect\nChange"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 195]
	      DstBlock		      "Compare\nTo Constant1"
	      DstPort		      1
	    }
	  }
	  Branch {
	    Points		    [0, -80]
	    DstBlock		    "Compare\nTo Constant"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "AMI signal"
      Ports		      [1]
      Position		      [350, 339, 380, 371]
      Floating		      off
      Location		      [935, 422, 1259, 661]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData7"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "ASK Demodulator"
      Ports		      [1, 2]
      Position		      [645, 230, 685, 290]
      BackgroundColor	      "[1.000000, 0.501961, 0.000000]"
      NamePlacement	      "alternate"
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"ASK Demodulator"
	Location		[828, 159, 1183, 281]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 38, 55, 52]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Abs
	  Name			  "Abs"
	  Position		  [155, 30, 185, 60]
	  SampleTime		  "0.1"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [90, 30, 120, 60]
	  Gain			  "2.5"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "sfix(16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  SampleTime		  "0.1"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn"
	  Position		  [220, 27, 280, 63]
	  Numerator		  "[10]"
	  Denominator		  "[1 10]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [300, 38, 330, 52]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [220, 83, 250, 97]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Abs"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Abs"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "Transfer Fcn"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 45]
	    DstBlock		    "Out2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Transfer Fcn"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "ASK demodulator"
      Ports		      [1]
      Position		      [740, 179, 770, 211]
      Floating		      off
      Location		      [529, 446, 853, 685]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData4"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Product
      Name		      "ASK modulator"
      Ports		      [2, 1]
      Position		      [350, 257, 380, 288]
      BackgroundColor	      "red"
      NamePlacement	      "alternate"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "Inherit: Inherit via internal rule"
      SaturateOnIntegerOverflow	off
      SampleTime	      "0.1"
    }
    Block {
      BlockType		      Scope
      Name		      "ASK signal"
      Ports		      [1]
      Position		      [425, 174, 455, 206]
      Floating		      off
      Location		      [242, 293, 566, 532]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Bandlimited Noisy Channel"
      Ports		      [1, 1]
      Position		      [460, 244, 555, 306]
      BackgroundColor	      "green"
      NamePlacement	      "alternate"
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Bandlimited Noisy Channel"
	Location		[850, 179, 1147, 339]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 38, 55, 52]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "AWGN\nChannel"
	  Ports			  [1, 1]
	  Position		  [95, 16, 190, 74]
	  SourceBlock		  "commchan3/AWGN\nChannel"
	  SourceType		  "AWGN Channel"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  seed			  "67"
	  noiseMode		  "Signal to noise ratio  (Eb/No)"
	  EbNodB		  "30"
	  EsNodB		  "10"
	  SNRdB			  "10"
	  bitsPerSym		  "1"
	  Ps			  "1"
	  Tsym			  "1"
	  variance		  "1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [225, 38, 255, 52]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "AWGN\nChannel"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "AWGN\nChannel"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Binary \nsignal"
      Ports		      [1]
      Position		      [190, 339, 220, 371]
      Floating		      off
      Location		      [909, 50, 1233, 289]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Power Spectral\nDensity\n After modulation"
      Ports		      [1]
      Position		      [500, 340, 530, 370]
      SourceBlock	      "simulink_extras/Additional\nSinks/Power Spectral\nDensity"
      SourceType	      "Power Spectral Density"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      npts		      "128"
      fftpts		      "512"
      HowOften		      "64"
      sampleT		      "0.1"
    }
    Block {
      BlockType		      Reference
      Name		      "Power Spectral\nDensity\n Signal before filter"
      Ports		      [1]
      Position		      [835, 340, 865, 370]
      SourceBlock	      "simulink_extras/Additional\nSinks/Power Spectral\nDensity"
      SourceType	      "Power Spectral Density"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      npts		      "128"
      fftpts		      "512"
      HowOften		      "64"
      sampleT		      "0.1"
    }
    Block {
      BlockType		      Reference
      Name		      "Power Spectral\nDensity\n of AMI"
      Ports		      [1]
      Position		      [425, 340, 455, 370]
      SourceBlock	      "simulink_extras/Additional\nSinks/Power Spectral\nDensity"
      SourceType	      "Power Spectral Density"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      npts		      "128"
      fftpts		      "512"
      HowOften		      "64"
      sampleT		      "0.1"
    }
    Block {
      BlockType		      Reference
      Name		      "Power Spectral\nDensity\n of Carrier"
      Ports		      [1]
      Position		      [355, 175, 385, 205]
      SourceBlock	      "simulink_extras/Additional\nSinks/Power Spectral\nDensity"
      SourceType	      "Power Spectral Density"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      npts		      "128"
      fftpts		      "512"
      HowOften		      "64"
      sampleT		      "0.1"
    }
    Block {
      BlockType		      Reference
      Name		      "Power Spectral\nDensity\nSignal after filter"
      Ports		      [1]
      Position		      [740, 110, 770, 140]
      SourceBlock	      "simulink_extras/Additional\nSinks/Power Spectral\nDensity"
      SourceType	      "Power Spectral Density"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"

⌨️ 快捷键说明

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