📄 aodv.mdl
字号:
Points [0, 5] DstBlock "Snd" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 1 Points [0, 5] DstBlock "Demux" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 4 Points [30, 0; 0, 55] 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 [45, 0] DstBlock "Schedule" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 5 Points [15, 0] DstBlock "Terminator1" DstPort 1 } } } Block { BlockType SubSystem Name "Node 2" Ports [1, 3] Position [110, 177, 210, 253] 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 "2" System { Name "Node 2" Location [256, 309, 701, 570] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" 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 "TrueTime Kernel" SrcPort 5 Points [15, 0] DstBlock "Terminator1" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 3 Points [45, 0] DstBlock "Schedule" DstPort 1 } Line { SrcBlock "Ground" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 2 } Line { SrcBlock "Rcv" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 3 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 4 Points [30, 0; 0, 55] DstBlock "Terminator" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 1 Points [0, 5] DstBlock "Demux" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 2 Points [0, 5] DstBlock "Snd" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 Points [10, 0; 0, 110] DstBlock "\n" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 Points [35, 0; 0, 175] DstBlock "\n \n" DstPort 1 } Line { SrcBlock "\n" SrcPort 1 Points [-70, 0] Branch { Points [-70, 0; 0, -110] DstBlock "Mux" DstPort 2 } Branch { DstBlock "y" DstPort 1 } } Line { SrcBlock "\n \n" SrcPort 1 Points [-70, 0] Branch { Points [-100, 0; 0, -175] DstBlock "Mux" DstPort 1 } Branch { DstBlock "x" DstPort 1 } } } } Block { BlockType SubSystem Name "Node 3" Ports [1, 3] Position [110, 272, 210, 348] 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 "3" System { Name "Node 3" Location [256, 309, 701, 570] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" 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 Points [0, 5] DstBlock "Snd" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 1 Points [0, 5] DstBlock "Demux" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 4 Points [30, 0; 0, 55] DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 1 } Line { SrcBlock "Rcv" SrcPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -