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

📄 wireless.mdl

📁 Example: Distributed Wireless Control System
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	      Port		      "3"	      OutputWhenDisabled      "held"	      InitialOutput	      "[]"	    }	    Block {	      BlockType		      Outport	      Name		      "Monitors"	      Position		      [440, 118, 470, 132]	      Port		      "4"	      OutputWhenDisabled      "held"	      InitialOutput	      "[]"	    }	    Block {	      BlockType		      Outport	      Name		      "P"	      Position		      [440, 153, 470, 167]	      Port		      "5"	      OutputWhenDisabled      "held"	      InitialOutput	      "[]"	    }	    Line {	      SrcBlock		      "Clock"	      SrcPort		      1	      DstBlock		      "Terminator"	      DstPort		      1	    }	    Line {	      SrcBlock		      "Rcv"	      SrcPort		      1	      Points		      [45, 0]	      DstBlock		      "S-Function"	      DstPort		      3	    }	    Line {	      SrcBlock		      "Interrupts"	      SrcPort		      1	      Points		      [45, 0]	      DstBlock		      "S-Function"	      DstPort		      2	    }	    Line {	      SrcBlock		      "S-Function"	      SrcPort		      4	      Points		      [70, 0; 0, 35]	      DstBlock		      "Monitors"	      DstPort		      1	    }	    Line {	      SrcBlock		      "S-Function"	      SrcPort		      3	      Points		      [100, 0]	      DstBlock		      "Schedule"	      DstPort		      1	    }	    Line {	      SrcBlock		      "S-Function"	      SrcPort		      1	      Points		      [15, 0; 0, -25]	      DstBlock		      "D/A"	      DstPort		      1	    }	    Line {	      SrcBlock		      "S-Function"	      SrcPort		      2	      Points		      [100, 0]	      DstBlock		      "Snd"	      DstPort		      1	    }	    Line {	      SrcBlock		      "A/D"	      SrcPort		      1	      Points		      [45, 0]	      DstBlock		      "S-Function"	      DstPort		      1	    }	    Line {	      SrcBlock		      "E"	      SrcPort		      1	      Points		      [50, 0]	      DstBlock		      "S-Function"	      DstPort		      4	    }	    Line {	      SrcBlock		      "S-Function"	      SrcPort		      5	      Points		      [50, 0; 0, 55]	      DstBlock		      "P"	      DstPort		      1	    }	  }	}	Block {	  BlockType		  Outport	  Name			  "D/A"	  Position		  [295, 13, 325, 27]	  Port			  "1"	  OutputWhenDisabled	  "held"	  InitialOutput		  "[]"	}	Block {	  BlockType		  Outport	  Name			  "Snd"	  Position		  [235, 33, 265, 47]	  Port			  "2"	  OutputWhenDisabled	  "held"	  InitialOutput		  "[]"	}	Line {	  SrcBlock		  "A/D"	  SrcPort		  1	  Points		  [0, 15]	  DstBlock		  "TrueTime Kernel"	  DstPort		  1	}	Line {	  SrcBlock		  "Rcv"	  SrcPort		  1	  Points		  [15, 0]	  DstBlock		  "TrueTime Kernel"	  DstPort		  3	}	Line {	  SrcBlock		  "Ground"	  SrcPort		  1	  DstBlock		  "TrueTime Kernel"	  DstPort		  2	}	Line {	  Labels		  [1, 0]	  SrcBlock		  "TrueTime Kernel"	  SrcPort		  1	  Points		  [10, 0; 0, -15]	  DstBlock		  "D/A"	  DstPort		  1	}	Line {	  SrcBlock		  "TrueTime Kernel"	  SrcPort		  2	  Points		  [20, 0]	  DstBlock		  "Snd"	  DstPort		  1	}	Line {	  SrcBlock		  "TrueTime Kernel"	  SrcPort		  3	  DstBlock		  "Schedule, actuator node"	  DstPort		  1	}	Line {	  SrcBlock		  "TrueTime Kernel"	  SrcPort		  4	  Points		  [20, 0; 0, 45]	  DstBlock		  "Terminator"	  DstPort		  1	}	Line {	  SrcBlock		  "Mux"	  SrcPort		  1	  DstBlock		  "TrueTime Battery"	  DstPort		  1	}	Line {	  SrcBlock		  "P"	  SrcPort		  1	  DstBlock		  "Mux"	  DstPort		  2	}	Line {	  SrcBlock		  "TrueTime Kernel"	  SrcPort		  5	  Points		  [5, 0; 0, 65; -145, 0]	  DstBlock		  "Mux"	  DstPort		  1	}	Line {	  SrcBlock		  "TrueTime Battery"	  SrcPort		  1	  Points		  [25, 0]	  Branch {	    DstBlock		    "Battery, Actuator"	    DstPort		    1	  }	  Branch {	    Points		    [0, -50; -120, 0]	    DstBlock		    "TrueTime Kernel"	    DstPort		    4	  }	}      }    }    Block {      BlockType		      SubSystem      Name		      "Node 2\n(Controller)"      Ports		      [3, 1]      Position		      [550, 96, 620, 174]      ShowPortLabels	      on      TreatAsAtomicUnit	      off      RTWSystemCode	      "Auto"      RTWFcnNameOpts	      "Auto"      RTWFileNameOpts	      "Auto"      System {	Name			"Node 2\n(Controller)"	Location		[460, 567, 808, 857]	Open			off	ModelBrowserVisibility	off	ModelBrowserWidth	200	ScreenColor		"white"	PaperOrientation	"landscape"	PaperPositionMode	"auto"	PaperType		"usletter"	PaperUnits		"inches"	ZoomFactor		"100"	Block {	  BlockType		  Inport	  Name			  "A/D"	  Position		  [15, 18, 45, 32]	  Port			  "1"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  Inport	  Name			  "Rcv"	  Position		  [15, 83, 45, 97]	  Port			  "2"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  Inport	  Name			  "P"	  Position		  [25, 213, 55, 227]	  Port			  "3"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  Scope	  Name			  "Battery, controller"	  Ports			  [1]	  Position		  [230, 194, 260, 226]	  Floating		  off	  Location		  [342, 51, 666, 290]	  Open			  off	  NumInputPorts		  "1"	  TickLabels		  "OneTimeTick"	  ZoomMode		  "yonly"	  List {	    ListType		    AxesTitles	    axes1		    "%<SignalLabel>"	  }	  List {	    ListType		    SelectedSignals	    axes1		    ""	  }	  Grid			  "on"	  TimeRange		  "10"	  YMin			  "0"	  YMax			  "0.3"	  SaveToWorkspace	  off	  SaveName		  "ScopeData2"	  DataFormat		  "StructureWithTime"	  LimitDataPoints	  off	  MaxDataPoints		  "5000"	  Decimation		  "1"	  SampleInput		  off	  SampleTime		  "0"	}	Block {	  BlockType		  Ground	  Name			  "Ground"	  Position		  [35, 50, 55, 70]	  ShowName		  off	}	Block {	  BlockType		  Mux	  Name			  "Mux"	  Ports			  [2, 1]	  Position		  [85, 191, 90, 229]	  ShowName		  off	  Inputs		  "2"	  DisplayOption		  "bar"	}	Block {	  BlockType		  Scope	  Name			  "Schedule, computer node"	  Ports			  [1]	  Position		  [270, 68, 295, 92]	  Floating		  off	  Location		  [473, 73, 1213, 319]	  Open			  off	  NumInputPorts		  "1"	  TickLabels		  "OneTimeTick"	  ZoomMode		  "xonly"	  List {	    ListType		    AxesTitles	    axes1		    "%<SignalLabel>"	  }	  List {	    ListType		    SelectedSignals	    axes1		    ""	  }	  Grid			  "on"	  TimeRange		  "10"	  YMin			  "1"	  YMax			  "5"	  SaveToWorkspace	  on	  SaveName		  "schedule"	  DataFormat		  "StructureWithTime"	  LimitDataPoints	  off	  MaxDataPoints		  "5000"	  Decimation		  "1"	  SampleInput		  off	  SampleTime		  "0"	}	Block {	  BlockType		  Terminator	  Name			  "Terminator1"	  Position		  [305, 15, 325, 35]	  ShowName		  off	}	Block {	  BlockType		  Terminator	  Name			  "Terminator2"	  Position		  [300, 130, 320, 150]	  ShowName		  off	}	Block {	  BlockType		  Reference	  Name			  "TrueTime Battery"	  Ports			  [1, 1]	  Position		  [115, 191, 165, 229]	  DropShadow		  on	  SourceBlock		  "truetime/TrueTime Battery"	  SourceType		  ""	  energy		  "0.3"	}	Block {	  BlockType		  SubSystem	  Name			  "TrueTime Kernel"	  Ports			  [4, 5]	  Position		  [85, 42, 200, 118]	  DropShadow		  on	  AncestorBlock		  "truetime/TrueTime Kernel"	  ShowPortLabels	  on	  TreatAsAtomicUnit	  off	  RTWSystemCode		  "Auto"	  RTWFcnNameOpts	  "Auto"	  RTWFileNameOpts	  "Auto"	  MaskPromptString	  "Name of init function (MEX or MATLAB)|Init ""function argument|Battery|Clock drift|Clock offset"	  MaskStyleString	  "edit,edit,checkbox,edit,edit"	  MaskTunableValueString  "off,off,off,off,off"	  MaskCallbackString	  "||batterychange||"	  MaskEnableString	  "on,on,on,on,on"	  MaskVisibilityString	  "on,on,on,on,on"	  MaskToolTipString	  "on,on,on,on,on"	  MaskVariables		  "sfun=&1;args=@2;battery=@3;clockdrift=@4;cl""ockoffset=@5;"	  MaskSelfModifiable	  on	  MaskIconFrame		  on	  MaskIconOpaque	  on	  MaskIconRotate	  "none"	  MaskIconUnits		  "autoscale"	  MaskValueString	  "controller_init|0|on|0|0"	  MaskVariableAliases	  ",,,,"	  System {	    Name		    "TrueTime Kernel"	    Location		    [345, 356, 835, 561]	    Open		    off	    ModelBrowserVisibility  off	    ModelBrowserWidth	    200	    ScreenColor		    "white"	    PaperOrientation	    "landscape"	    PaperPositionMode	    "auto"	    PaperType		    "A4"	    PaperUnits		    "centimeters"	    ZoomFactor		    "100"	    Block {	      BlockType		      Inport	      Name		      "A/D"	      Position		      [25, 33, 55, 47]	      Port		      "1"	      LatchInput	      off	      Interpolate	      on	    }	    Block {	      BlockType		      Inport	      Name		      "Interrupts"	      Position		      [25, 68, 55, 82]	      Port		      "2"	      LatchInput	      off	      Interpolate	      on	    }	    Block {	      BlockType		      Inport	      Name		      "Rcv"	      Position		      [25, 108, 55, 122]	      Port		      "3"	      LatchInput	      off	      Interpolate	      on	    }	    Block {	      BlockType		      Inport	      Name		      "E"	      Position		      [30, 140, 50, 160]	      Port		      "4"	      LatchInput	      off	      Interpolate	      on	    }	    Block {	      BlockType		      Clock	      Name		      "Clock"	      Position		      [180, 150, 200, 170]	      DisplayTime	      off	      Decimation	      "10"	    }	    Block {	      BlockType		      "S-Function"	      Name		      "S-Function"	      Ports		      [4, 5]	      Position		      [120, 40, 320, 110]	      FunctionName	      "eval(eval(['''sfunchk(''''' sfun ''''')""''']))"	      Parameters	      "sfun, args, clockdrift, clockoffset"	      PortCounts	      "[]"	      SFunctionModules	      "''"	      MaskIconFrame	      on	      MaskIconOpaque	      on	      MaskIconRotate	      "none"	      MaskIconUnits	      "autoscale"	    }	    Block {	      BlockType		      Terminator	      Name		      "Terminator"	      Position		      [230, 150, 250, 170]	    }	    Block {	      BlockType		      Outport	      Name		      "D/A"	      Position		      [440, 13, 470, 27]	      Port		      "1"	      OutputWhenDisabled      "held"	      InitialOutput	      "[]"	    }	    Block {	      BlockType		      Outport	      Name		      "Snd"	      Position		      [440, 48, 470, 62]	      Port		      "2"	      OutputWhenDisabled      "held"	      InitialOutput	      "[]"	    }	    Block {	      BlockType		      Outport	      Name		      "Schedule"	      Position		      [440, 83, 470, 97]	      Port		      "3"	      OutputWhenDisabled      "held"	      InitialOutput	      "[]"	    }	    Block {	      BlockType		      Outport	      Name		      "Monitors"	      Position		      [440, 118, 470, 132]	      Port		      "4"	      OutputWhenDisabled      "held"	      InitialOutput	      "[]"	    }	    Block {	      BlockType		      Outport	      Name		      "P"	      Position		      [440, 153, 470, 167]	      Port		      "5"	      OutputWhenDisabled      "held"	      InitialOutput	      "[]"	    }	    Line {	      SrcBlock		      "Clock"	      SrcPort		      1	      DstBlock		      "Terminator"	      DstPort		      1	    }	    Line {	      SrcBlock		      "Rcv"	      SrcPort		      1	      Points		      [45, 0]	      DstBlock		      "S-Function"	      DstPort		      3	    }	    Line {	      SrcBlock		      "Interrupts"	      SrcPort		      1	      Points		      [45, 0]	      DstBlock		      "S-Function"	      DstPort		      2	    }	    Line {	      SrcBlock		      "S-Function"	      SrcPort		      4	      Points		      [70, 0; 0, 35]	      DstBlock		      "Monitors"	      DstPort		      1	    }	    Line {	      SrcBlock		      "S-Function"	      SrcPort		      3	      Points		      [100, 0]	      DstBlock		      "Schedule"	      DstPort		      1	    }	    Line {	      SrcBlock		      "S-Function"	      SrcPort		      1	      Points		      [15, 0; 0, -25]	      DstBlock		      "D/A"	      DstPort		      1	    }	    Line {	      SrcBlock		      "S-Function"	      SrcPort		      2	      Points		      [100, 0]	      DstBlock		      "Snd"	      DstPort		      1	    }	    Line {	      SrcBlock		      "A/D"	      SrcPort		      1	      Points		      [45, 0]	      DstBlock		      "S-Function"	      DstPort		      1	    }	    Line {	      SrcBlock		      "E"	      SrcPort		      1	      Points		      [50, 0]	      DstBlock		      "S-Function"	      DstPort		      4	    }	    Line {	      SrcBlock		      "S-Function"	      SrcPort		      5	      Points		      [50, 0; 0, 55]	      DstBlock		      "P"	      DstPort		      1	    }	  }	}	Block {	  BlockType		  Outport	  Name			  "Snd"	  Position		  [260, 33, 290, 47]	  Port			  "1"	  OutputWhenDisabled	  "held"	  InitialOutput		  "[]"	}	Line {	  SrcBlock		  "TrueTime Kernel"	  SrcPort		  2	  Points		  [25, 0; 0, -25]	  DstBlock		  "Snd"	  DstPort		  1	}	Line {	  SrcBlock		  "Ground"	  SrcPort		  1	  Points		  [0, 10]	  DstBlock		  "TrueTime Kernel"	  DstPort		  2	}	Line {	  SrcBlock		  "A/D"	  SrcPort		  1	  Points		  [20, 0]	  DstBlock		  "TrueTime Kernel"	  DstPort		  1	}	Line {	  SrcBlock		  "Rcv"

⌨️ 快捷键说明

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