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

📄 ask_model.mdl

📁 ASK communication model
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      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\nof signal"
      Ports		      [1]
      Position		      [260, 340, 290, 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		      SubSystem
      Name		      "Pulse Shaper"
      Ports		      [1, 1]
      Position		      [810, 215, 880, 275]
      BackgroundColor	      "[0.000000, 1.000000, 1.000000]"
      NamePlacement	      "alternate"
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Pulse Shaper"
	Location		[953, 177, 1203, 259]
	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, 33, 55, 47]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Compare\nTo Constant"
	  Ports			  [1, 1]
	  Position		  [80, 25, 110, 55]
	  SourceBlock		  "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
	  SourceType		  "Compare To Constant"
	  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"
	  relop			  ">"
	  const			  "0.5"
	  LogicOutDataTypeMode	  "uint8"
	  ZeroCross		  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [195, 33, 225, 47]
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Compare\nTo Constant"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Compare\nTo Constant"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Received data"
      Ports		      [1]
      Position		      [910, 229, 940, 261]
      Floating		      off
      Location		      [899, 416, 1223, 655]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData6"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Signal\n+\nNoise"
      Ports		      [1]
      Position		      [595, 174, 625, 206]
      Floating		      off
      Location		      [106, 506, 430, 745]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Signal before filter"
      Ports		      [1]
      Position		      [740, 339, 770, 371]
      Floating		      off
      Location		      [188, 390, 512, 629]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData5"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave"
      Ports		      [0, 1]
      Position		      [265, 175, 295, 205]
      Frequency		      "100"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "binary data source"
      Ports		      [0, 1]
      Position		      [110, 250, 150, 310]
      BackgroundColor	      "[0.501961, 0.501961, 0.000000]"
      NamePlacement	      "alternate"
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"binary data source"
	Location		[719, 244, 1230, 367]
	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		  Reference
	  Name			  "Bernoulli Binary\nGenerator"
	  Ports			  [0, 1]
	  Position		  [90, 28, 170, 72]
	  DialogController	  "commDDGCreate"
	  DialogControllerArgs	  "DataTag1"
	  FontName		  "Arial"
	  SourceBlock		  "commrandsrc2/Bernoulli Binary\nGenerator"
	  SourceType		  "Bernoulli Binary Generator"
	  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"
	  P			  "0.5"
	  seed			  "61"
	  Ts			  "1"
	  frameBased		  off
	  sampPerFrame		  "1"
	  orient		  off
	  outDataType		  "double"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [225, 43, 255, 57]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  "Bernoulli Binary\nGenerator"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "binary data source"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"AMI Line Coder"
	DstPort			1
      }
      Branch {
	Points			[0, 50]
	Branch {
	  Points		  [0, 25]
	  DstBlock		  "Binary \nsignal"
	  DstPort		  1
	}
	Branch {
	  Points		  [60, 0; 0, 25]
	  DstBlock		  "Power Spectral\nDensity\nof signal"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	Points			[0, 75]
	DstBlock		"ASK modulator"
	DstPort			1
      }
      Branch {
	DstBlock		"Power Spectral\nDensity\n of Carrier"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "ASK modulator"
      SrcPort		      1
      Points		      [20, 0]
      Branch {
	Points			[0, -85]
	DstBlock		"ASK signal"
	DstPort			1
      }
      Branch {
	DstBlock		"Bandlimited Noisy Channel"
	DstPort			1
      }
      Branch {
	Points			[0, 50; 80, 0]
	DstBlock		"Power Spectral\nDensity\n After modulation"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Bandlimited Noisy Channel"
      SrcPort		      1
      Points		      [0, -15; 20, 0]
      Branch {
	DstBlock		"Signal\n+\nNoise"
	DstPort			1
      }
      Branch {
	DstBlock		"ASK Demodulator"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "ASK Demodulator"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"Pulse Shaper"
	DstPort			1
      }
      Branch {
	Points			[0, -50]
	Branch {
	  DstBlock		  "ASK demodulator"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -70]
	  DstBlock		  "Power Spectral\nDensity\nSignal after filter"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "ASK Demodulator"
      SrcPort		      2
      Points		      [30, 0]
      Branch {
	Points			[0, 80]
	DstBlock		"Signal before filter"
	DstPort			1
      }
      Branch {
	Points			[75, 0; 0, 80]
	DstBlock		"Power Spectral\nDensity\n Signal before filter"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Pulse Shaper"
      SrcPort		      1
      DstBlock		      "Received data"
      DstPort		      1
    }
    Line {
      SrcBlock		      "AMI Line Coder"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"ASK modulator"
	DstPort			2
      }
      Branch {
	Points			[0, 45]
	Branch {
	  Points		  [0, 30]
	  DstBlock		  "AMI signal"
	  DstPort		  1
	}
	Branch {
	  Points		  [75, 0; 0, 30]
	  DstBlock		  "Power Spectral\nDensity\n of AMI"
	  DstPort		  1
	}
      }
    }
  }
}
MatData {
  NumRecords		  2
  DataRecord {
    Tag			    DataTag1
    Data		    "  %)30     .    >     8    (     0         %    \"     $    !     0         .    2     8    (    !          %    \"     $    2     0         0    $@   $)E<FYO=6QL:4)I;F%R>4=E;@        "
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    <     8    (     0         %    \"     $    !     0         .    0     8    (    !          %    \"     $    -     0         0    #0   $-U;75L871I=F53=6T    "
  }
}
# Finite State Machines
#
#    Stateflow Version 7.1 (R2008a) dated Feb  7 2008, 21:38:28
#
#


Stateflow {
  machine {
    id			    1
    name		    "ASK_model"
    created		    "11-Apr-2009 15:46:03"
    isLibrary		    0
    firstTarget		    9
    sfVersion		    71014000.000003
  }
  chart {
    id			    2
    name		    "AMI Line Coder/Embedded\nMATLAB Function"
    windowPosition	    [296.813 339 200.25 189.75]
    viewLimits		    [0 156.75 0 153.75]
    screen		    [1 1 1280 800 1.333333333333333]
    treeNode		    [0 3 0 0]
    firstTransition	    5
    firstJunction	    4
    viewObj		    2
    machine		    1
    toolbarMode		    LIBRARY_TOOLBAR
    ssIdHighWaterMark	    5
    decomposition	    CLUSTER_CHART
    type		    EML_CHART
    firstData		    6
    chartFileNumber	    2
    disableImplicitCasting  1
    eml {
      name		      "fcn"
    }
  }
  state {
    id			    3
    labelString		    "eML_blk_kernel()"
    position		    [18 64.5 118 66]
    fontSize		    12
    chart		    2
    treeNode		    [2 0 0 0]
    superState		    SUBCHART
    subviewer		    2
    ssIdNumber		    1
    type		    FUNC_STATE
    decomposition	    CLUSTER_STATE
    eml {
      isEML		      1
      script		      "function y = fcn(u)\n% This block supports the Embedded MATLAB subset.\n% See the help menu for details. \n\ny = u - 2*floor(u/2.01);"
      editorLayout	      "100 M4x1[420 56 671 364]"
    }
  }
  junction {
    id			    4
    position		    [23.5747 49.5747 7]
    chart		    2
    linkNode		    [2 0 0]
    subviewer		    2
    ssIdNumber		    3
    type		    CONNECTIVE_JUNCTION
  }
  transition {
    id			    5
    labelString		    "{eML_blk_kernel();}"
    labelPosition	    [32.125 19.875 102.544 14.964]
    fontSize		    12
    src {
      intersection	      [0 0 1 0 23.5747 14.625 0 0]
    }
    dst {
      id		      4
      intersection	      [7 0 -1 -1 23.5747 42.5747 0 0]
    }
    midPoint		    [23.5747 24.9468]
    chart		    2
    linkNode		    [2 0 0]
    dataLimits		    [23.575 23.575 14.625 34.575]
    subviewer		    2
    drawStyle		    SMART
    executionOrder	    1
    ssIdNumber		    2
  }
  data {
    id			    6
    ssIdNumber		    4
    name		    "u"
    linkNode		    [2 0 7]
    scope		    INPUT_DATA
    machine		    1
    props {
      array {
	size			"-1"
      }
      type {
	method			SF_INHERITED_TYPE
	primitive		SF_DOUBLE_TYPE
      }
      complexity	      SF_COMPLEX_INHERITED
    }
    dataType		    "Inherit: Same as Simulink"
  }
  data {
    id			    7
    ssIdNumber		    5
    name		    "y"
    linkNode		    [2 6 0]
    scope		    OUTPUT_DATA
    machine		    1
    props {
      array {
	size			"-1"
      }
      type {
	method			SF_INHERITED_TYPE
	primitive		SF_DOUBLE_TYPE
      }
      complexity	      SF_COMPLEX_INHERITED
      frame		      SF_FRAME_NO
    }
    dataType		    "Inherit: Same as Simulink"
  }
  instance {
    id			    8
    name		    "AMI Line Coder/Embedded\nMATLAB Function"
    machine		    1
    chart		    2
  }
  target {
    id			    9
    name		    "sfun"
    description		    "Default Simulink S-Function Target."
    machine		    1
    linkNode		    [1 0 0]
  }
}

⌨️ 快捷键说明

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