📄 motes.mdl
字号:
Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Terminator Name "Terminator" Position [325, 80, 345, 100] ShowName off } Block { BlockType Terminator Name "Terminator1" Position [325, 105, 345, 125] ShowName off } Block { BlockType Reference Name "TrueTime Kernel" Ports [3, 5] Position [170, 27, 285, 103] DropShadow on SourceBlock "truetime/TrueTime Kernel" SourceType "Unknown" sfun "node_init" args "3" battery "off" clockdrift "0" clockoffset "0" } Block { BlockType Outport Name "x" Position [150, 223, 180, 237] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "y" Position [150, 173, 180, 187] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Snd" Position [325, 43, 355, 57] Port "3" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "\n \n" SrcPort 1 Points [0, 0; -70, 0] Branch { DstBlock "x" DstPort 1 } Branch { Points [-100, 0; 0, -175] DstBlock "Mux" DstPort 1 } } Line { SrcBlock "\n" SrcPort 1 Points [0, 0; -70, 0] Branch { DstBlock "y" DstPort 1 } Branch { Points [-70, 0; 0, -110] DstBlock "Mux" DstPort 2 } } Line { SrcBlock "Demux" SrcPort 1 Points [35, 0; 0, 180] DstBlock "\n \n" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [10, 0; 0, 115] DstBlock "\n" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 2 DstBlock "Snd" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 4 Points [20, 0] DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 1 } Line { SrcBlock "Rcv" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 3 } Line { SrcBlock "Ground" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 2 } Line { SrcBlock "TrueTime Kernel" SrcPort 3 Points [0, 10] DstBlock "Schedule" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 5 Points [10, 0; 0, 20] DstBlock "Terminator1" DstPort 1 } } } Block { BlockType SubSystem Name "Mote Animation" Ports [2] Position [480, 127, 555, 178] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskPromptString "Number of Motes|xMax|YMax|Update period|x0|y0" 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" MaskVariables "numMotes=@1;xmax=@2;ymax=@3;ts=@4;x0=@5;y0=@6;" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "nbrOfMotes|20|20|0.1|xPos|yPos" MaskVariableAliases ",,,,," System { Name "Mote Animation" Location [608, 397, 831, 517] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "x" Position [20, 28, 50, 42] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "y" Position [20, 63, 50, 77] Port "2" LatchInput off Interpolate on } Block { BlockType "S-Function" Name "Mote Animation" Ports [1] Position [115, 37, 195, 73] DeleteFcn "if ~isempty(findobj('type','figure','name',""'dblpend1 Animation'));close('dblpend1 Animation'); end;" FunctionName "moteanimation" Parameters "[numMotes ts xmax ymax] x0 y0" PortCounts "[]" SFunctionModules "''" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [85, 36, 90, 74] ShowName off Inputs "2" DisplayOption "bar" } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Mote Animation" DstPort 1 } Line { SrcBlock "y" SrcPort 1 Points [5, 0; 0, -5] DstBlock "Mux" DstPort 2 } Line { SrcBlock "x" SrcPort 1 Points [5, 0; 0, 10] DstBlock "Mux" DstPort 1 } } } Block { BlockType Mux Name "Mux3" Ports [3, 1] Position [430, 112, 435, 168] ShowName off Inputs "nbrOfMotes" DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [3, 1] Position [430, 176, 435, 244] ShowName off Inputs "nbrOfMotes" DisplayOption "bar" } Block { BlockType Mux Name "Mux5" Ports [3, 1] Position [565, 19, 570, 81] ShowName off Inputs "nbrOfMotes" DisplayOption "bar" } Block { BlockType SubSystem Name "Network" Ports [3, 1] Position [595, 20, 645, 200] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Network" Location [506, 323, 872, 486] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "Snd" Position [15, 13, 45, 27] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "x" Position [15, 58, 45, 72] Port "2" LatchInput off Interpolate on } Block { BlockType Inport Name "y" Position [15, 108, 45, 122] Port "3" LatchInput off Interpolate on } Block { BlockType Scope Name "Network Schedule" Ports [1] Position [285, 67, 310, 93] Floating off Location [175, 318, 1142, 899] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "40" YMin "1" YMax "3.5" SaveToWorkspace off SaveName "nschedule" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Terminator Name "Terminator1" Position [280, 120, 300, 140] ShowName off } Block { BlockType Reference Name "TrueTime Wireless \nNetwork" Ports [3, 3] Position [120, 52, 215, 108] DropShadow on SourceBlock "truetime/TrueTime Wireless \nNetwork" SourceType "Wireless Network" nwtype "802.11b (WLAN)" nwnbr "1" nnodes "nbrOfMotes" rate "800000" minsize "272" transpower "transmitPower" threshold "receiverThreshold" pathloss "pathloss" use_pathloss_function "off" acktimeout "0.00004" retrylimit "5" error_threshold "errorCodingThreshold" } Block { BlockType Outport Name "Rcv" Position [315, 13, 345, 27] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "TrueTime Wireless \nNetwork" SrcPort 1 Points [15, 0; 0, -40] DstBlock "Rcv" DstPort 1 } Line { SrcBlock "TrueTime Wireless \nNetwork" SrcPort 2 DstBlock "Network Schedule" DstPort 1 } Line { SrcBlock "Snd" SrcPort 1 Points [50, 0; 0, 40] DstBlock "TrueTime Wireless \nNetwork" DstPort 1 } Line { SrcBlock "y" SrcPort 1 Points [30, 0; 0, -15] DstBlock "TrueTime Wireless \nNetwork" DstPort 3 } Line { SrcBlock "x" SrcPort 1 Points [30, 0; 0, 15] DstBlock "TrueTime Wireless \nNetwork" DstPort 2 } Line { SrcBlock "TrueTime Wireless \nNetwork" SrcPort 3 Points [20, 0; 0, 30] DstBlock "Terminator1" DstPort 1 } } } Line { SrcBlock "Mote 1" SrcPort 1 DstBlock "Goto9" DstPort 1 } Line { SrcBlock "Mote 1" SrcPort 2 DstBlock "Goto8" DstPort 1 } Line { SrcBlock "From1" SrcPort 1 DstBlock "Mote 1" DstPort 1 } Line { SrcBlock "Mote 1" SrcPort 3 DstBlock "Goto3" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 Points [0, 0; 15, 0] Branch { DstBlock "Mote Animation" DstPort 1 } Branch { Points [0, -30] DstBlock "Network" DstPort 2 } } Line { SrcBlock "Mux4" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [0, -45] DstBlock "Mote Animation" DstPort 2 } Branch { Points [115, 0; 0, -40] DstBlock "Network" DstPort 3 } } Line { SrcBlock "Network" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Mux5" SrcPort 1 DstBlock "Network" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 Points [0, 0] DstBlock "Goto49" DstPort 1 } Line { SrcBlock "Clock" SrcPort 1 DstBlock "Display" DstPort 1 } Line { SrcBlock "Mote 2" SrcPort 1 DstBlock "Goto4" DstPort 1 } Line { SrcBlock "Mote 2" SrcPort 2 DstBlock "Goto2" DstPort 1 } Line { SrcBlock "From2" SrcPort 1 DstBlock "Mote 2" DstPort 1 } Line { SrcBlock "Mote 2" SrcPort 3 DstBlock "Goto1" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [0, 0] DstBlock "Goto5" DstPort 1 } Line { SrcBlock "Mote 3" SrcPort 1 DstBlock "Goto10" DstPort 1 } Line { SrcBlock "Mote 3" SrcPort 2 DstBlock "Goto7" DstPort 1 } Line { SrcBlock "From6" SrcPort 1 DstBlock "Mote 3" DstPort 1 } Line { SrcBlock "Mote 3" SrcPort 3 DstBlock "Goto6" DstPort 1 } Line { SrcBlock "Demux" SrcPort 3 Points [0, 0] DstBlock "Goto11" DstPort 1 } Line { SrcBlock "From61" SrcPort 1 DstBlock "Mux5" DstPort 1 } Line { SrcBlock "From3" SrcPort 1 DstBlock "Mux5" DstPort 2 } Line { SrcBlock "From7" SrcPort 1 DstBlock "Mux5" DstPort 3 } Line { SrcBlock "From70" SrcPort 1 DstBlock "Mux3" DstPort 1 } Line { SrcBlock "From4" SrcPort 1 DstBlock "Mux3" DstPort 2 } Line { SrcBlock "From8" SrcPort 1 DstBlock "Mux3" DstPort 3 } Line { SrcBlock "From66" SrcPort 1 DstBlock "Mux4" DstPort 1 } Line { SrcBlock "From5" SrcPort 1 DstBlock "Mux4" DstPort 2 } Line { SrcBlock "From9" SrcPort 1 DstBlock "Mux4" DstPort 3 } Annotation { Position [621, 276] Text "TrueTime 1.5 Control and Coordination of Mobil""e Motes\nCopyright (c) 2007\nMartin Ohlin, Dan Henriksson and Anton Cervin\nD""epartment of Automatic Control, Lund University, Sweden\nPlease direct questi""ons and bug reports to: truetime@control.lth.se " } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -