📄 aodv.mdl
字号:
} Block { BlockType Goto Name "Goto15" Position [590, 181, 615, 199] ShowName off GotoTag "x5" TagVisibility "global" } Block { BlockType Goto Name "Goto16" Position [585, 327, 620, 343] ShowName off GotoTag "snd6" TagVisibility "global" } Block { BlockType Goto Name "Goto17" Position [590, 301, 615, 319] ShowName off GotoTag "y6" TagVisibility "global" } Block { BlockType Goto Name "Goto18" Position [590, 276, 615, 294] ShowName off GotoTag "x6" TagVisibility "global" } Block { BlockType Goto Name "Goto19" Position [585, 422, 620, 438] ShowName off GotoTag "snd7" TagVisibility "global" } Block { BlockType Goto Name "Goto2" Position [245, 206, 270, 224] ShowName off GotoTag "y2" TagVisibility "global" } Block { BlockType Goto Name "Goto20" Position [590, 396, 615, 414] ShowName off GotoTag "y7" TagVisibility "global" } Block { BlockType Goto Name "Goto21" Position [590, 371, 615, 389] ShowName off GotoTag "x7" TagVisibility "global" } Block { BlockType Goto Name "Goto3" Position [240, 137, 275, 153] ShowName off GotoTag "snd1" TagVisibility "global" } Block { BlockType Goto Name "Goto4" Position [245, 181, 270, 199] ShowName off GotoTag "x2" TagVisibility "global" } Block { BlockType Goto Name "Goto42" Position [550, 587, 585, 603] ShowName off GotoTag "rcv3" TagVisibility "global" } Block { BlockType Goto Name "Goto43" Position [550, 617, 585, 633] ShowName off GotoTag "rcv5" TagVisibility "global" } Block { BlockType Goto Name "Goto44" Position [550, 647, 585, 663] ShowName off GotoTag "rcv7" TagVisibility "global" } Block { BlockType Goto Name "Goto46" Position [595, 572, 630, 588] ShowName off GotoTag "rcv2" TagVisibility "global" } Block { BlockType Goto Name "Goto47" Position [595, 602, 630, 618] ShowName off GotoTag "rcv4" TagVisibility "global" } Block { BlockType Goto Name "Goto48" Position [595, 632, 630, 648] ShowName off GotoTag "rcv6" TagVisibility "global" } Block { BlockType Goto Name "Goto49" Position [550, 557, 585, 573] ShowName off GotoTag "rcv1" TagVisibility "global" } Block { BlockType Goto Name "Goto5" Position [240, 327, 275, 343] ShowName off GotoTag "snd3" TagVisibility "global" } Block { BlockType Goto Name "Goto6" Position [245, 301, 270, 319] ShowName off GotoTag "y3" TagVisibility "global" } Block { BlockType Goto Name "Goto7" Position [245, 276, 270, 294] ShowName off GotoTag "x3" TagVisibility "global" } Block { BlockType Goto Name "Goto8" Position [245, 111, 270, 129] ShowName off GotoTag "y1" TagVisibility "global" } Block { BlockType Goto Name "Goto9" Position [245, 86, 270, 104] ShowName off GotoTag "x1" TagVisibility "global" } Block { BlockType Mux Name "Mux1" Ports [7, 1] Position [225, 728, 230, 822] ShowName off Inputs "7" DisplayOption "bar" } Block { BlockType Mux Name "Mux3" Ports [7, 1] Position [225, 608, 230, 702] ShowName off Inputs "7" DisplayOption "bar" } Block { BlockType Mux Name "Mux5" Ports [7, 1] Position [275, 492, 280, 588] ShowName off Inputs "7" DisplayOption "bar" } Block { BlockType SubSystem Name "Network" Ports [3, 1] Position [430, 504, 480, 716] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Network" Location [600, 116, 966, 279] 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 [300, 67, 325, 93] Floating off Location [6, 408, 1030, 967] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%<SignalLabel>" } Grid "on" TimeRange "0.5" YMin "0.8" YMax "10.7" SaveToWorkspace off SaveName "nschedule" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Terminator Name "Terminator" Position [295, 125, 315, 145] ShowName off } Block { BlockType Reference Name "TrueTime Wireless \nNetwork1" Ports [3, 3] Position [125, 52, 220, 108] DropShadow on SourceBlock "truetime/TrueTime Wireless \nNetwork" SourceType "Wireless Network" nwtype "802.11b (WLAN)" nwnbr "1" nnodes "7" rate "1e6" minsize "24" transpower "pow" threshold "thres" pathloss "3.5" use_pathloss_function "off" acktimeout "0.00004" retrylimit "5" error_threshold "codethres" } Block { BlockType Outport Name "Rcv" Position [315, 13, 345, 27] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "TrueTime Wireless \nNetwork1" SrcPort 1 Points [10, 0; 0, -40] DstBlock "Rcv" DstPort 1 } Line { SrcBlock "Snd" SrcPort 1 Points [60, 0] DstBlock "TrueTime Wireless \nNetwork1" DstPort 1 } Line { SrcBlock "y" SrcPort 1 Points [30, 0; 0, -15] DstBlock "TrueTime Wireless \nNetwork1" DstPort 3 } Line { SrcBlock "x" SrcPort 1 Points [30, 0; 0, 15] DstBlock "TrueTime Wireless \nNetwork1" DstPort 2 } Line { SrcBlock "TrueTime Wireless \nNetwork1" SrcPort 2 DstBlock "Network Schedule" DstPort 1 } Line { SrcBlock "TrueTime Wireless \nNetwork1" SrcPort 3 Points [35, 0; 0, 35] DstBlock "Terminator" DstPort 1 } } } Block { BlockType SubSystem Name "Node 1" Ports [1, 3] Position [110, 82, 210, 158] BackgroundColor "magenta" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "MOTE" MaskPromptString "NodeNbr" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "nodeNbr=@1;" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "1" System { Name "Node 1" Location [256, 309, 701, 570] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Rcv" Position [100, 78, 130, 92] Port "1" LatchInput off Interpolate on } Block { BlockType Integrator Name "\n" Ports [1, 1] Position [210, 140, 240, 170] Orientation "left" ExternalReset "none" InitialConditionSource "internal" InitialCondition "yPos(nodeNbr)" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "\n \n" Ports [1, 1] Position [210, 185, 240, 215] Orientation "left" ExternalReset "none" InitialConditionSource "internal" InitialCondition "xPos(nodeNbr)" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Demux Name "Demux" Ports [1, 2] Position [375, 16, 380, 54] BackgroundColor "black" ShowName off Outputs "2" BusSelectionMode off } Block { BlockType Ground Name "Ground" Position [130, 50, 150, 70] ShowName off } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [115, 16, 120, 54] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Schedule" Ports [1] Position [350, 74, 375, 96] Floating off Location [83, 399, 897, 858] Open off NumInputPorts "1" TickLabels "on" ZoomMode "xonly" List { ListType AxesTitles axes1 "%<SignalLabel>" } Grid "on" TimeRange "3.5" YMin "1.8" YMax "3.7" SaveToWorkspace off SaveName "ScopeData" DataFormat "Array" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Terminator Name "Terminator" Position [350, 120, 370, 140] ShowName off } Block { BlockType Terminator Name "Terminator1" Position [270, 120, 290, 140] Orientation "left" ShowName off } Block { BlockType Reference Name "TrueTime Kernel" Ports [3, 5] Position [170, 22, 285, 98] DropShadow on SourceBlock "truetime/TrueTime Kernel" SourceType "Unknown" sfun "node_init" args "nodeNbr" battery "off" clockdrift "0" clockoffset "0" } Block { BlockType Outport Name "x" Position [150, 218, 180, 232] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "y" Position [150, 168, 180, 182] 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 [-70, 0] Branch { DstBlock "x" DstPort 1 } Branch { Points [-100, 0; 0, -175] DstBlock "Mux" DstPort 1 } } Line { SrcBlock "\n" SrcPort 1 Points [-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, 175] DstBlock "\n \n" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [10, 0; 0, 110] DstBlock "\n" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -