📄 testbcirobot3f_ext.mdl
字号:
Name "Relational\nOperator"
Position [505, 57, 535, 88]
ShowName off
Operator "~="
InputSameDT off
LogicOutDataTypeMode "Specify via dialog"
}
Block {
BlockType Constant
Name "S"
Position [415, 524, 535, 546]
Value "[1 0 1 1 0 1 1 0]"
ShowAdditionalParam on
OutDataTypeMode "double"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [255, 365, 275, 385]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [255, 156, 290, 194]
SampleTime "0.1"
}
Block {
BlockType Constant
Name "dark"
Position [415, 404, 535, 426]
Value "[0 0 0 0 0 0 0 0]"
ShowAdditionalParam on
OutDataTypeMode "double"
}
Block {
BlockType SubSystem
Name "myDLatch"
Ports [1, 1]
Position [505, 170, 570, 210]
NamePlacement "alternate"
TreatAsAtomicUnit off
System {
Name "myDLatch"
Location [52, 117, 528, 412]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [45, 128, 75, 142]
}
Block {
BlockType Constant
Name "Constant"
Position [105, 154, 125, 176]
ShowName off
Value "0"
}
Block {
BlockType Reference
Name "D Latch"
Ports [2, 2]
Position [225, 122, 275, 173]
SourceBlock "simulink_extras/Flip Flops/D Latch"
SourceType "DLatch"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [160, 142, 190, 173]
ShowName off
Operator "~="
InputSameDT off
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [340, 50, 370, 85]
Location [188, 365, 512, 604]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Terminator
Name "Terminator"
Position [320, 150, 340, 170]
ShowName off
}
Block {
BlockType Outport
Name "Out1"
Position [360, 128, 390, 142]
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "D Latch"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 55, 0]
Branch {
Points [65, 0]
Branch {
Points [0, -75]
DstBlock "Scope"
DstPort 1
}
Branch {
DstBlock "D Latch"
DstPort 1
}
}
Branch {
Points [0, 15]
DstBlock "Relational\nOperator"
DstPort 1
}
}
Line {
SrcBlock "D Latch"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -60]
DstBlock "Scope"
DstPort 2
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "D Latch"
SrcPort 2
DstBlock "Terminator"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "myDLatch_nonZero"
Ports [1, 1]
Position [695, 55, 760, 95]
NamePlacement "alternate"
TreatAsAtomicUnit off
System {
Name "myDLatch_nonZero"
Location [52, 117, 695, 412]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [45, 128, 75, 142]
}
Block {
BlockType Constant
Name "Constant"
Position [105, 154, 125, 176]
ShowName off
Value "0"
}
Block {
BlockType Constant
Name "Constant1"
Position [435, 79, 455, 101]
Orientation "left"
ShowName off
Value "0"
}
Block {
BlockType Reference
Name "D Latch"
Ports [2, 2]
Position [225, 122, 275, 173]
SourceBlock "simulink_extras/Flip Flops/D Latch"
SourceType "DLatch"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1]
Position [235, 199, 265, 231]
ShowName off
Operator "NOT"
AllPortsSameDT off
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [160, 142, 190, 173]
ShowName off
Operator "~="
InputSameDT off
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [540, 20, 570, 55]
Location [188, 365, 512, 604]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Switch
Name "Switch"
Position [430, 110, 460, 140]
NamePlacement "alternate"
ShowName off
Criteria "u2 > Threshold"
Threshold "0.5"
ShowAdditionalParam on
InputSameDT off
}
Block {
BlockType Terminator
Name "Terminator"
Position [320, 150, 340, 170]
ShowName off
}
Block {
BlockType Outport
Name "Out1"
Position [530, 118, 560, 132]
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [135, 0; 0, -90]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [-25, 0; 0, 25]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [30, 0]
Branch {
Points [0, -80]
DstBlock "Scope"
DstPort 2
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "D Latch"
SrcPort 2
DstBlock "Terminator"
DstPort 1
}
Line {
SrcBlock "D Latch"
SrcPort 1
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 55, 0]
Branch {
Points [0, 15]
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
Points [65, 0]
Branch {
DstBlock "D Latch"
DstPort 1
}
Branch {
Points [0, -105]
DstBlock "Scope"
DstPort 1
}
}
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 55]
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
DstBlock "D Latch"
DstPort 2
}
}
}
}
Block {
BlockType Outport
Name "active"
Position [890, 68, 920, 82]
}
Block {
BlockType Outport
Name "dir_L"
Position [890, 223, 920, 237]
Port "2"
}
Block {
BlockType Outport
Name "dir_R"
Position [890, 258, 920, 272]
Port "3"
}
Line {
SrcBlock "dark"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 2
}
Line {
SrcBlock "L"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 3
}
Line {
SrcBlock "R"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 4
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 1
}
Line {
SrcBlock "'0'"
SrcPort 1
Points [15, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "FreePortComms_RX"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
Name "top centre"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
Name "top right"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 2
DstBlock "Display"
DstPort 2
}
Line {
Name "bottom right"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 3
DstBlock "Display"
DstPort 3
}
Line {
Name "bottom centre"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 4
DstBlock "Display"
DstPort 4
}
Line {
Name "bottom left"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 5
DstBlock "Display"
DstPort 5
}
Line {
Name "top left"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 6
DstBlock "Display"
DstPort 6
}
Line {
Name "centre"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 7
DstBlock "Display"
DstPort 7
}
Line {
Name "dot"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 8
DstBlock "Display"
DstPort 8
}
Line {
SrcBlock "Multiport\nSwitch"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "S"
SrcPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -