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

📄 wireless.mdl

📁 Example: Distributed Wireless Control System
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	  SrcPort		  1	  DstBlock		  "TrueTime Kernel"	  DstPort		  3	}	Line {	  SrcBlock		  "TrueTime Kernel"	  SrcPort		  3	  DstBlock		  "Schedule, computer node"	  DstPort		  1	}	Line {	  SrcBlock		  "TrueTime Kernel"	  SrcPort		  1	  Points		  [10, 0; 0, -25]	  DstBlock		  "Terminator1"	  DstPort		  1	}	Line {	  SrcBlock		  "Mux"	  SrcPort		  1	  Points		  [0, 0]	  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; -140, 0]	  DstBlock		  "Mux"	  DstPort		  1	}	Line {	  SrcBlock		  "TrueTime Kernel"	  SrcPort		  4	  Points		  [15, 0; 0, 45]	  DstBlock		  "Terminator2"	  DstPort		  1	}	Line {	  SrcBlock		  "TrueTime Battery"	  SrcPort		  1	  Points		  [25, 0]	  Branch {	    DstBlock		    "Battery, controller"	    DstPort		    1	  }	  Branch {	    Points		    [0, -55; -125, 0]	    DstBlock		    "TrueTime Kernel"	    DstPort		    4	  }	}      }    }    Block {      BlockType		      SubSystem      Name		      "Wireless Network"      Ports		      [2, 4]      Position		      [550, 236, 610, 314]      ShowPortLabels	      on      TreatAsAtomicUnit	      off      RTWSystemCode	      "Auto"      RTWFcnNameOpts	      "Auto"      RTWFileNameOpts	      "Auto"      System {	Name			"Wireless Network"	Location		[216, 495, 638, 715]	Open			off	ModelBrowserVisibility	off	ModelBrowserWidth	200	ScreenColor		"white"	PaperOrientation	"landscape"	PaperPositionMode	"auto"	PaperType		"usletter"	PaperUnits		"inches"	ZoomFactor		"100"	Block {	  BlockType		  Inport	  Name			  "snd1"	  Position		  [60, 33, 90, 47]	  Port			  "1"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  Inport	  Name			  "snd2"	  Position		  [60, 58, 90, 72]	  Port			  "2"	  LatchInput		  off	  Interpolate		  on	}	Block {	  BlockType		  Constant	  Name			  "Constant"	  Position		  [15, 90, 45, 120]	  Value			  "0"	  VectorParams1D	  on	}	Block {	  BlockType		  Constant	  Name			  "Constant1"	  Position		  [15, 155, 45, 185]	  Value			  "20"	  VectorParams1D	  on	}	Block {	  BlockType		  Demux	  Name			  "Demux"	  Ports			  [1, 2]	  Position		  [300, 12, 305, 63]	  BackgroundColor	  "black"	  ShowName		  off	  Outputs		  "2"	  BusSelectionMode	  off	}	Block {	  BlockType		  Demux	  Name			  "Demux1"	  Ports			  [1, 2]	  Position		  [300, 106, 305, 144]	  BackgroundColor	  "black"	  ShowName		  off	  Outputs		  "2"	  BusSelectionMode	  off	}	Block {	  BlockType		  Mux	  Name			  "Mux"	  Ports			  [2, 1]	  Position		  [130, 25, 135, 80]	  ShowName		  off	  Inputs		  "2"	  DisplayOption		  "bar"	}	Block {	  BlockType		  Mux	  Name			  "Mux1"	  Ports			  [2, 1]	  Position		  [120, 96, 125, 134]	  ShowName		  off	  Inputs		  "2"	  DisplayOption		  "bar"	}	Block {	  BlockType		  Mux	  Name			  "Mux2"	  Ports			  [2, 1]	  Position		  [120, 141, 125, 179]	  ShowName		  off	  Inputs		  "2"	  DisplayOption		  "bar"	}	Block {	  BlockType		  Scope	  Name			  "Network Schedule"	  Ports			  [1]	  Position		  [360, 62, 385, 88]	  Floating		  off	  Location		  [13, 726, 1271, 970]	  Open			  off	  NumInputPorts		  "1"	  TickLabels		  "OneTimeTick"	  ZoomMode		  "xonly"	  List {	    ListType		    AxesTitles	    axes1		    "%<SignalLabel>"	  }	  List {	    ListType		    SelectedSignals	    axes1		    ""	  }	  Grid			  "on"	  TimeRange		  "10"	  YMin			  "1"	  YMax			  "2.5"	  SaveToWorkspace	  on	  SaveName		  "nschedule"	  DataFormat		  "StructureWithTime"	  LimitDataPoints	  off	  MaxDataPoints		  "5000"	  Decimation		  "1"	  SampleInput		  off	  SampleTime		  "0"	}	Block {	  BlockType		  Reference	  Name			  "TrueTime Wireless \nNetwork"	  Ports			  [3, 3]	  Position		  [165, 47, 260, 103]	  DropShadow		  on	  SourceBlock		  "truetime/TrueTime Wireless \nNetwork"	  SourceType		  "Wireless Network"	  nwtype		  "802.11b (WLAN)"	  nwnbr			  "1"	  nnodes		  "2"	  rate			  "800000"	  minsize		  "272"	  transpower		  "20"	  threshold		  "-48"	  pathloss		  "3.5"	  use_pathloss_function	  off	  acktimeout		  "0.00004"	  retrylimit		  "5"	  error_threshold	  "0.03"	}	Block {	  BlockType		  Outport	  Name			  "rcv1"	  Position		  [325, 18, 355, 32]	  Port			  "1"	  OutputWhenDisabled	  "held"	  InitialOutput		  "[]"	}	Block {	  BlockType		  Outport	  Name			  "rcv2"	  Position		  [325, 43, 355, 57]	  Port			  "2"	  OutputWhenDisabled	  "held"	  InitialOutput		  "[]"	}	Block {	  BlockType		  Outport	  Name			  "P1"	  Position		  [355, 108, 385, 122]	  Port			  "3"	  OutputWhenDisabled	  "held"	  InitialOutput		  "[]"	}	Block {	  BlockType		  Outport	  Name			  "P2"	  Position		  [355, 128, 385, 142]	  Port			  "4"	  OutputWhenDisabled	  "held"	  InitialOutput		  "[]"	}	Line {	  SrcBlock		  "Demux"	  SrcPort		  1	  DstBlock		  "rcv1"	  DstPort		  1	}	Line {	  SrcBlock		  "Demux"	  SrcPort		  2	  DstBlock		  "rcv2"	  DstPort		  1	}	Line {	  SrcBlock		  "snd1"	  SrcPort		  1	  Points		  [0, 0]	  DstBlock		  "Mux"	  DstPort		  1	}	Line {	  SrcBlock		  "snd2"	  SrcPort		  1	  Points		  [0, 0]	  DstBlock		  "Mux"	  DstPort		  2	}	Line {	  SrcBlock		  "TrueTime Wireless \nNetwork"	  SrcPort		  1	  Points		  [5, 0; 0, -15]	  DstBlock		  "Demux"	  DstPort		  1	}	Line {	  SrcBlock		  "TrueTime Wireless \nNetwork"	  SrcPort		  2	  DstBlock		  "Network Schedule"	  DstPort		  1	}	Line {	  SrcBlock		  "Mux"	  SrcPort		  1	  Points		  [0, 0]	  DstBlock		  "TrueTime Wireless \nNetwork"	  DstPort		  1	}	Line {	  SrcBlock		  "TrueTime Wireless \nNetwork"	  SrcPort		  3	  Points		  [20, 0]	  DstBlock		  "Demux1"	  DstPort		  1	}	Line {	  SrcBlock		  "Mux2"	  SrcPort		  1	  Points		  [10, 0; 0, -65]	  DstBlock		  "TrueTime Wireless \nNetwork"	  DstPort		  3	}	Line {	  SrcBlock		  "Mux1"	  SrcPort		  1	  Points		  [0, -30; 20, 0]	  DstBlock		  "TrueTime Wireless \nNetwork"	  DstPort		  2	}	Line {	  SrcBlock		  "Demux1"	  SrcPort		  1	  DstBlock		  "P1"	  DstPort		  1	}	Line {	  SrcBlock		  "Demux1"	  SrcPort		  2	  DstBlock		  "P2"	  DstPort		  1	}	Line {	  SrcBlock		  "Constant"	  SrcPort		  1	  Points		  [40, 0]	  Branch {	    DstBlock		    "Mux1"	    DstPort		    1	  }	  Branch {	    Points		    [0, 20]	    Branch {	      DstBlock		      "Mux1"	      DstPort		      2	    }	    Branch {	      Points		      [0, 25]	      DstBlock		      "Mux2"	      DstPort		      1	    }	  }	}	Line {	  SrcBlock		  "Constant1"	  SrcPort		  1	  DstBlock		  "Mux2"	  DstPort		  2	}      }    }    Block {      BlockType		      Scope      Name		      "r, y"      Ports		      [1]      Position		      [635, 38, 660, 62]      Floating		      off      Location		      [722, 89, 1257, 328]      Open		      off      NumInputPorts	      "1"      TickLabels	      "OneTimeTick"      ZoomMode		      "xonly"      List {	ListType		AxesTitles	axes1			"%<SignalLabel>"      }      List {	ListType		SelectedSignals	axes1			""      }      Grid		      "on"      TimeRange		      "10"      YMin		      "-0.717285"      YMax		      "1.85596"      SaveToWorkspace	      off      SaveName		      "y"      DataFormat	      "StructureWithTime"      LimitDataPoints	      off      MaxDataPoints	      "5000"      Decimation	      "1"      SampleInput	      off      SampleTime	      "0"    }    Block {      BlockType		      DiscretePulseGenerator      Name		      "reference"      Position		      [415, 93, 460, 127]      PulseType		      "Time-based"      Amplitude		      "1"      Period		      "1.2"      PulseWidth	      "50"      PhaseDelay	      "0"      SampleTime	      "1"      VectorParams1D	      on    }    Block {      BlockType		      Scope      Name		      "u"      Ports		      [1]      Position		      [265, 167, 290, 193]      Floating		      off      Location		      [722, 385, 1256, 623]      Open		      off      NumInputPorts	      "1"      TickLabels	      "OneTimeTick"      ZoomMode		      "yonly"      List {	ListType		AxesTitles	axes1			"%<SignalLabel>"      }      List {	ListType		SelectedSignals	axes1			""      }      Grid		      "on"      TimeRange		      "10"      YMin		      "-2"      YMax		      "6"      SaveToWorkspace	      off      SaveName		      "u"      DataFormat	      "StructureWithTime"      LimitDataPoints	      off      MaxDataPoints	      "5000"      Decimation	      "1"      SampleInput	      off      SampleTime	      "0"    }    Line {      SrcBlock		      "From7"      SrcPort		      1      Points		      [0, 0]      DstBlock		      "Wireless Network"      DstPort		      1    }    Line {      SrcBlock		      "Wireless Network"      SrcPort		      1      DstBlock		      "Goto"      DstPort		      1    }    Line {      SrcBlock		      "Node 1\n(Sensor/Actuator)"      SrcPort		      1      Points		      [65, 0]      Branch {	DstBlock		"DC Servo"	DstPort			1      }      Branch {	Points			[0, 60]	DstBlock		"u"	DstPort			1      }    }    Line {      SrcBlock		      "Node 2\n(Controller)"      SrcPort		      1      DstBlock		      "Goto3"      DstPort		      1    }    Line {      SrcBlock		      "From2"      SrcPort		      1      DstBlock		      "Node 1\n(Sensor/Actuator)"      DstPort		      1    }    Line {      SrcBlock		      "Clock"      SrcPort		      1      DstBlock		      "Display"      DstPort		      1    }    Line {      SrcBlock		      "reference"      SrcPort		      1      Points		      [60, 0]      Branch {	DstBlock		"Node 2\n(Controller)"	DstPort			1      }      Branch {	Points			[0, -50]	DstBlock		"Mux"	DstPort			2      }    }    Line {      SrcBlock		      "Wireless Network"      SrcPort		      2      DstBlock		      "Goto1"      DstPort		      1    }    Line {      SrcBlock		      "From3"      SrcPort		      1      DstBlock		      "Node 2\n(Controller)"      DstPort		      2    }    Line {      SrcBlock		      "Mux"      SrcPort		      1      DstBlock		      "r, y"      DstPort		      1    }    Line {      SrcBlock		      "DC Servo"      SrcPort		      1      Points		      [0, 0; 20, 0]      Branch {	Points			[0, -80]	DstBlock		"Mux"	DstPort			1      }      Branch {	Points			[0, 100; -320, 0; 0, -85]	DstBlock		"Node 1\n(Sensor/Actuator)"	DstPort			2      }    }    Line {      SrcBlock		      "Node 1\n(Sensor/Actuator)"      SrcPort		      2      DstBlock		      "Goto4"      DstPort		      1    }    Line {      SrcBlock		      "From4"      SrcPort		      1      Points		      [0, 0]      DstBlock		      "Wireless Network"      DstPort		      2    }    Line {      SrcBlock		      "Wireless Network"      SrcPort		      4      DstBlock		      "Goto5"      DstPort		      1    }    Line {      SrcBlock		      "Wireless Network"      SrcPort		      3      DstBlock		      "Goto2"      DstPort		      1    }    Line {      SrcBlock		      "From1"      SrcPort		      1      DstBlock		      "Node 2\n(Controller)"      DstPort		      3    }    Line {      SrcBlock		      "From5"      SrcPort		      1      DstBlock		      "Node 1\n(Sensor/Actuator)"      DstPort		      3    }    Annotation {      Position		      [188, 111]      Text		      "u"    }    Annotation {      Position		      [342, 123]      Text		      "y"    }    Annotation {      Position		      [512, 103]      Text		      "r"    }    Annotation {      Position		      [181, 291]      Text		      "TrueTime 1.5  Distributed Wireless Control Syst""em\nCopyright (c) 2007\nMartin Ohlin, Dan Henriksson and Anton Cervin\nDepart""ment of Automatic Control, Lund University, Sweden\nPlease direct questions a""nd bug reports to:  truetime@control.lth.se "    }  }}

⌨️ 快捷键说明

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