📄 rsflop.mdl
字号:
BlockType Inport
Name "S"
Position [105, 373, 135, 387]
Port "2"
}
Block {
BlockType EnablePort
Name "Enable"
Ports [0, 1]
Position [115, 240, 135, 260]
ShowOutputPort on
}
Block {
BlockType Constant
Name "Constant"
Position [695, 230, 725, 260]
Orientation "left"
Value "0"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [270, 102, 300, 133]
AllPortsSameDT off
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [2, 1]
Position [270, 357, 300, 388]
AllPortsSameDT off
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [2, 1]
Position [475, 112, 505, 143]
Operator "NOR"
AllPortsSameDT off
}
Block {
BlockType Logic
Name "Logical\nOperator3"
Ports [2, 1]
Position [475, 352, 505, 383]
Operator "NOR"
AllPortsSameDT off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [635, 295, 655, 315]
Orientation "left"
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [630, 205, 650, 225]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Q"
Position [700, 123, 730, 137]
}
Block {
BlockType Outport
Name "Q'"
Position [695, 363, 725, 377]
Port "2"
}
Line {
SrcBlock "R\n"
SrcPort 1
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Enable"
SrcPort 1
Points [55, 0]
Branch {
Points [0, -125]
DstBlock "Logical\nOperator"
DstPort 2
}
Branch {
Points [0, 115]
DstBlock "Logical\nOperator1"
DstPort 1
}
}
Line {
SrcBlock "S"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 2
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Logical\nOperator2"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
DstBlock "Logical\nOperator3"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [-230, 0; 0, -170]
DstBlock "Logical\nOperator2"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [-190, 0; 0, 145]
DstBlock "Logical\nOperator3"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator2"
SrcPort 1
Points [165, 0]
Branch {
DstBlock "Q"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "Logical\nOperator3"
SrcPort 1
Points [160, 0]
Branch {
DstBlock "Q'"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [-15, 0]
Branch {
Points [-35, 0]
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [0, 60]
DstBlock "Sum"
DstPort 1
}
}
}
}
Block {
BlockType Switch
Name "Switch"
Position [275, 305, 305, 335]
Threshold "4"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch1"
Position [275, 185, 305, 215]
Threshold "6"
InputSameDT off
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [665, 285, 725, 315]
VariableName "Qp"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [665, 205, 725, 235]
VariableName "Q"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [455, 330, 515, 360]
VariableName "S"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [455, 410, 515, 440]
VariableName "R"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [260, 405, 320, 435]
VariableName "t"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace5"
Position [665, 95, 725, 125]
VariableName "enable"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [70, 0; 0, 110]
Branch {
DstBlock "Switch1"
DstPort 2
}
Branch {
Points [0, 120]
Branch {
DstBlock "Switch"
DstPort 2
}
Branch {
Points [0, 100]
DstBlock "To Workspace4"
DstPort 1
}
}
}
Line {
SrcBlock "Step"
SrcPort 1
Points [40, 0; 0, -20]
DstBlock "Switch1"
DstPort 3
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Switch1"
DstPort 1
}
Branch {
Points [0, 120]
DstBlock "Switch"
DstPort 1
}
}
Line {
SrcBlock "Step1"
SrcPort 1
Points [40, 0; 0, -25]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Switch1"
SrcPort 1
Points [55, 0; 0, 55; 15, 0]
Branch {
DstBlock "Subsystem"
DstPort 1
}
Branch {
Points [0, 170]
DstBlock "To Workspace3"
DstPort 1
}
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [55, 0; 0, -45; 35, 0]
Branch {
DstBlock "Subsystem"
DstPort 2
}
Branch {
Points [0, 70]
DstBlock "To Workspace2"
DstPort 1
}
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "Subsystem"
DstPort enable
}
Branch {
DstBlock "To Workspace5"
DstPort 1
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [55, 0; 0, -35]
DstBlock "To Workspace1"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 2
Points [55, 0; 0, 25]
DstBlock "To Workspace"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -