📄 hierarchy_eitheredge_h.mdl
字号:
DstPort 2
}
Line {
SrcBlock " input events "
SrcPort 1
DstBlock " SFunction "
DstPort 3
}
Line {
SrcBlock " SFunction "
SrcPort 2
DstBlock "out"
DstPort 1
}
}
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Ramp"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Switch"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [40, 0]
DstBlock "Switch"
DstPort trigger
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Pulse\nGenerator1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
}
}
# Finite State Machines
# -- File save dated 10-Mar-1999 08:48:14
#
# Stateflow Version 2.0 (R11) dated Jan 21 1999, 19:12:04
#
#
Stateflow {
machine {
id 1
name "hierarchy_eitheredge_h"
created "21-Jan-1999 13:00:34"
firstTarget 20
sfVersion 20011061
}
chart {
id 2
name "Switch"
windowPosition [294.75 237 343.5 307.5]
viewLimits [0 300 0 271.5]
screen [1 1 1024 768 1.333333333333333]
treeNode [0 3 0 0]
firstTransition 11
visible 1
machine 1
decomposition CLUSTER_CHART
firstEvent 14
firstData 16
chartFileNumber 1
}
state {
id 3
labelString "On"
position [3.261918505942248 3.000000000000028 292.7380814940577 186.75]
fontSize 14
arrowSize 12
chart 2
treeNode [2 4 0 6]
firstTransition 8
firstJunction 7
type OR_STATE
decomposition CLUSTER_STATE
}
state {
id 4
labelString "positive"
position [42.88415808126544 60.75000000000011 90 60]
fontSize 14
arrowSize 12
chart 2
treeNode [3 0 0 5]
type OR_STATE
decomposition CLUSTER_STATE
}
state {
id 5
labelString "negative"
position [168.1264452059055 61.50000000000017 90 60]
fontSize 14
arrowSize 12
chart 2
treeNode [3 0 4 0]
type OR_STATE
decomposition CLUSTER_STATE
}
state {
id 6
labelString "Shutdown"
position [130.5265167657046 207.7500000000001 90 60]
fontSize 14
arrowSize 12
chart 2
treeNode [2 0 3 0]
type OR_STATE
decomposition CLUSTER_STATE
}
junction {
id 7
position [245 28.5 7]
chart 2
linkNode [3 0 0]
type HISTORY_JUNCTION
}
transition {
id 8
labelString "E/out=in2;"
labelPosition [119.9932194155685 8.824723091538019 65.25 18]
fontSize 14
arrowSize 12
src {
id 4
intersection [1 0 -1 0.5666666666666667 93.88415808126544 60.75000000000011]
}
dst {
id 5
intersection [1 0 -1 0.3666666666666666 201.1264452059055 61.50000000000017]
}
midPoint [123.9675214716841 34.41726965659482]
chart 2
linkNode [3 0 9]
dataLimits [93.8841580812651 204.7264452059055 28.42294489262726 61.50000000000017]
}
transition {
id 9
labelPosition [15.84355225901599 96.2054816221704 9.75 18]
fontSize 14
arrowSize 12
src {
intersection [0 0 1 0 12.88415808126544 92.25000000000011]
}
dst {
id 4
intersection [4 -1 0 0.475 42.88415808126544 92.25000000000011]
}
midPoint [16.65041106063587 96.68823456891603]
chart 2
linkNode [3 8 10]
dataLimits [12.88415808126544 42.88415808126544 88.65000000000012 97.45105732126142]
}
transition {
id 10
labelString "E/out=in1;"
labelPosition [120.7944604619655 157.7066462260898 65.25 18]
fontSize 14
arrowSize 12
src {
id 5
intersection [3 0 1 0.625 201.8764452059055 121.5000000000002]
}
dst {
id 4
intersection [3 0 1 0.4833333333333333 89.38415808126544 120.7500000000001]
}
midPoint [170.330168676272 149.0243819973095]
chart 2
linkNode [3 9 0]
dataLimits [85.78415808126545 201.8764452059051 120.7500000000001 155.1792731662117]
}
transition {
id 11
labelString "S/out=0;"
labelPosition [245.696950967866 213.7618998964495 54.75 18]
fontSize 14
arrowSize 12
src {
id 3
intersection [3 0 1 0.1870272556292316 241.25 189.75]
}
dst {
id 6
intersection [2 1 0 0.4874999999999991 220.5265167657046 237]
}
midPoint [243.3687654793696 208.4821756073388]
chart 2
linkNode [2 0 12]
dataLimits [220.5265167657046 243.6131867442227 189.75 240.6]
}
transition {
id 12
labelPosition [19.07756460805408 208.0386893040551 9.75 18]
fontSize 14
arrowSize 12
src {
intersection [0 0 0 0 14 211.5]
}
dst {
id 3
intersection [3 0 1 0.8915819857393512 34.99999999999996 189.75]
}
midPoint [22.96128873181555 207.9495872354627]
chart 2
linkNode [2 11 13]
dataLimits [13.99999999999996 38.59999999999996 189.75 211.4999999999999]
}
transition {
id 13
labelString "S/out=in1;"
labelPosition [44.10024505372709 222.4818440974615 65.25 18]
fontSize 14
arrowSize 12
src {
id 6
intersection [4 -1 0 0.462500000000001 130.5265167657046 240]
}
dst {
id 3
intersection [3 0 1 0.661000437703312 102.5 189.75]
}
midPoint [114.2009477441466 232.7610642301757]
chart 2
linkNode [2 12 0]
dataLimits [98.90000000000001 130.5265167657046 189.75 240]
}
event {
id 14
name "E"
linkNode [2 0 15]
scope INPUT_EVENT
trigger EITHER_EDGE_EVENT
machine 1
}
event {
id 15
name "S"
linkNode [2 14 0]
scope INPUT_EVENT
trigger EITHER_EDGE_EVENT
machine 1
}
data {
id 16
name "out"
linkNode [2 0 17]
scope OUTPUT_DATA
machine 1
dataType "double"
}
data {
id 17
name "in1"
linkNode [2 16 18]
scope INPUT_DATA
machine 1
dataType "double"
}
data {
id 18
name "in2"
linkNode [2 17 0]
scope INPUT_DATA
machine 1
dataType "double"
}
instance {
id 19
name "Switch"
machine 1
chart 2
}
target {
id 20
name "sfun"
description "Default Simulink S-Function Target."
machine 1
linkNode [1 0 0]
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -