📄 distributed.mdl
字号:
Block {
BlockType Terminator
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "distributed"
Location [2, 70, 1022, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "portrait"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Clock
Name "Clock"
Position [40, 30, 60, 50]
Decimation "10"
}
Block {
BlockType TransferFcn
Name "DC Servo"
Position [390, 56, 455, 94]
Numerator "[1000]"
Denominator "[1 1 0]"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [100, 25, 190, 55]
Decimation "2"
}
Block {
BlockType From
Name "From"
Position [425, 381, 465, 399]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "y"
}
Block {
BlockType From
Name "From1"
Position [425, 411, 465, 429]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "u"
Port {
PortNumber 1
Name "u"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Goto
Name "Goto"
Position [490, 46, 525, 64]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "y"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto1"
Position [325, 46, 360, 64]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "u"
TagVisibility "global"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [485, 380, 490, 415]
ShowName off
Inputs "2"
DisplayOption "bar"
Port {
PortNumber 1
Name "r, y"
PropagatedSignals ", "
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType SubSystem
Name "Network"
Ports [4, 4]
Position [112, 200, 588, 245]
Orientation "down"
BackgroundColor "yellow"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Network"
Location [2, 70, 1022, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "snd1"
Position [15, 23, 45, 37]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "snd2"
Position [15, 48, 45, 62]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "snd3"
Position [15, 83, 45, 97]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "snd4"
Position [15, 118, 45, 132]
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 4]
Position [255, 20, 260, 70]
BackgroundColor "black"
ShowName off
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [85, 30, 90, 85]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Network Schedule"
Ports [1]
Position [270, 132, 295, 158]
Location [17, 186, 845, 605]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "1"
YMin "1"
SaveName "nschedule"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Reference
Name "TrueTime Network"
Ports [1, 2]
Position [120, 30, 215, 85]
DropShadow on
SourceBlock "truetime/TrueTime Network"
SourceType "Real-Time Network"
nwtype "CSMA/AMP (CAN)"
nwnbr "1"
nnodes "4"
rate "80000"
minsize "40"
lossprob "0"
bandwidths "[1 0 0 0]"
slotsize "20"
schedule "[1 2 3 3 3 3]"
memsize "10000"
buftype "Common buffer"
overflow "Retransmit"
}
Block {
BlockType Outport
Name "rcv1"
Position [315, 13, 345, 27]
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "rcv2"
Position [315, 48, 345, 62]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "rcv3"
Position [315, 83, 345, 97]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "rcv4"
Position [315, 113, 345, 127]
Port "4"
IconDisplay "Port number"
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [0, -10]
DstBlock "rcv1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [35, 0]
DstBlock "rcv2"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "TrueTime Network"
DstPort 1
}
Line {
SrcBlock "snd1"
SrcPort 1
Points [20, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "snd2"
SrcPort 1
Points [0, -5]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "snd3"
SrcPort 1
Points [5, 0; 0, -25]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [15, 0; 0, 40]
DstBlock "rcv3"
DstPort 1
}
Line {
SrcBlock "snd4"
SrcPort 1
Points [20, 0]
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Demux"
SrcPort 4
Points [0, 60]
DstBlock "rcv4"
DstPort 1
}
Line {
SrcBlock "TrueTime Network"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "TrueTime Network"
SrcPort 2
Points [10, 0; 0, 75]
DstBlock "Network Schedule"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Node 1\n(Interference)"
Ports [1, 1]
Position [142, 120, 198, 165]
Orientation "down"
BackgroundColor "lightBlue"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Node 1\n(Interference)"
Location [39, 464, 374, 613]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Rcv"
Position [15, 88, 45, 102]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Ground
Name "Ground"
Position [20, 60, 40, 80]
ShowName off
}
Block {
BlockType Ground
Name "Ground1"
Position [20, 35, 40, 55]
ShowName off
}
Block {
BlockType Scope
Name "Schedule, interfering node"
Ports [1]
Position [255, 69, 280, 91]
Location [83, 518, 897, 977]
Open off
NumInputPorts "1"
TickLabels "on"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "2"
YMin "0.5"
YMax "2"
DataFormat "Array"
LimitDataPoints off
}
Block {
BlockType Terminator
Name "Terminator"
Position [210, 90, 230, 110]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator1"
Position [210, 35, 230, 55]
ShowName off
}
Block {
BlockType Reference
Name "TrueTime Kernel"
Ports [3, 5]
Position [65, 32, 180, 108]
DropShadow on
SourceBlock "truetime/TrueTime Kernel"
SourceType "Unknown"
sfun "interference_init"
args "0"
battery "off"
clockdrift "0"
clockoffset "0"
}
Block {
BlockType Outport
Name "Snd"
Position [235, 53, 265, 67]
IconDisplay "Port number"
}
Line {
SrcBlock "TrueTime Kernel"
SrcPort 3
Points [0, 10]
DstBlock "Schedule, interfering node"
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 "Terminator1"
DstPort 1
}
Line {
SrcBlock "Ground"
SrcPort 1
DstBlock "TrueTime Kernel"
DstPort 2
}
Line {
SrcBlock "Rcv"
SrcPort 1
DstBlock "TrueTime Kernel"
DstPort 3
}
Line {
SrcBlock "Ground1"
SrcPort 1
DstBlock "TrueTime Kernel"
DstPort 1
}
Line {
SrcBlock "TrueTime Kernel"
SrcPort 4
Points [0, 15]
DstBlock "Terminator"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Node 2\n(Actuator)"
Ports [1, 1]
Position [272, 120, 328, 165]
Orientation "up"
BackgroundColor "lightBlue"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Node 2\n(Actuator)"
Location [383, 464, 730, 614]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Rcv"
Position [30, 83, 60, 97]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Ground
Name "Ground"
Position [20, 55, 40, 75]
ShowName off
}
Block {
BlockType Ground
Name "Ground1"
Position [20, 30, 40, 50]
ShowName off
}
Block {
BlockType Scope
Name "Schedule, actuator node"
Ports [1]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -