📄 temp_con.mdl
字号:
Value "3"
}
Block {
BlockType Gain
Name "Gain"
Position [180, 40, 210, 70]
Gain "100"
SaturateOnIntegerOverflow on
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1, 0, 0, 0]
Position [235, 40, 265, 70]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "190"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1, 0, 0, 0]
Position [125, 37, 155, 68]
ShowName off
Operator "pow"
OutputSignalType "auto"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [80, 26, 105, 59]
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "temp"
Position [280, 48, 310, 62]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "cntrl"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [15, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [5, 0]
DstBlock "Math\nFunction"
DstPort 2
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "temp"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Reset"
Ports [2, 1, 0, 0, 0]
Position [65, 76, 105, 114]
SourceBlock "simulink3/Nonlinear/Manual Switch"
SourceType "Manual Switch"
sw "0"
action "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [1, 0, 0, 0, 0]
Position [450, 75, 480, 105]
Floating off
Location [591, 30, 976, 304]
Open on
NumInputPorts "1"
TickLabels "on"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "10"
YMin "180"
YMax "310"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Terminator
Name "Terminator"
Position [290, 185, 310, 205]
ShowName off
}
Line {
SrcBlock "Controller1"
SrcPort 1
DstBlock "Terminator"
DstPort 1
}
Line {
SrcBlock "Controller"
SrcPort 1
DstBlock "Failure"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [10, 0]
DstBlock "Failure"
DstPort 2
}
Line {
SrcBlock "Failure"
SrcPort 1
DstBlock "Plant"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Reset"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Reset"
DstPort 2
}
Line {
SrcBlock "Plant"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, -60; -305, 0; 0, 35]
Branch {
DstBlock "Controller"
DstPort 1
}
Branch {
DstBlock "Controller1"
DstPort 1
}
}
}
Line {
SrcBlock "Reset"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Controller"
DstPort 2
}
Branch {
Points [0, 115]
DstBlock "Controller1"
DstPort 2
}
}
}
}
# Finite State Machines
# -- File save dated 26-Jan-1999 15:05:10
#
# Stateflow Version 2.0 (R11) dated Jan 21 1999, 19:12:04
#
#
Stateflow {
machine {
id 1
name "temp_con"
created "26-Jan-1999 14:31:38"
firstTarget 51
sfVersion 20011061
}
chart {
id 2
name "Controller"
windowPosition [32.25 32.25 595.5 244.5]
viewLimits [3.667424111619823 544.2023328700543 0 204.1694356451695]
zoomFactor 0.9792299071710768
screen [1 1 1024 768 1.333333333333333]
treeNode [0 3 0 0]
firstTransition 10
visible 1
machine 1
decomposition CLUSTER_CHART
firstData 17
chartFileNumber 1
}
state {
id 3
labelString "Normal"
position [17.18079683058065 8.249999999999972 210.4884060929185 138]
fontSize 14
chart 2
treeNode [2 4 0 5]
firstTransition 11
type OR_STATE
decomposition CLUSTER_STATE
}
state {
id 4
labelString "Heat_on"
position [30.76397564406497 35.99999999999994 76.45876041471982 34.5]
fontSize 14
chart 2
treeNode [3 0 0 7]
type OR_STATE
decomposition CLUSTER_STATE
}
state {
id 5
labelString "Fail"
position [278.1974038206159 46.5 151.9890049085668 144]
fontSize 14
chart 2
treeNode [2 6 3 8]
firstTransition 15
type OR_STATE
decomposition CLUSTER_STATE
}
state {
id 6
labelString "Over_temp"
position [326.1974038206159 56.25 83.45413219685418 36.75]
fontSize 14
chart 2
treeNode [5 0 0 9]
type OR_STATE
decomposition CLUSTER_STATE
}
state {
id 7
labelString "Heat_off"
position [109.3529858399158 83.24999999999997 76.45876041471982 34.5]
fontSize 14
chart 2
treeNode [3 0 4 0]
type OR_STATE
decomposition CLUSTER_STATE
}
state {
id 8
labelString "Disable"
position [452.0224660384226 111.75 78.66649411267088 34.49999999999999]
fontSize 14
chart 2
treeNode [2 0 5 0]
type OR_STATE
decomposition CLUSTER_STATE
}
state {
id 9
labelString "Emergency"
position [297.429245689019 136.8749999999999 83.45413219685418 36.75]
fontSize 14
chart 2
treeNode [5 0 6 0]
type OR_STATE
decomposition CLUSTER_STATE
}
transition {
id 10
labelString "[tmp>thresh]"
labelPosition [276.7081686874237 10.56408731025194 78.79732321137942 17.62613832907939]
fontSize 14
src {
id 3
intersection [2 1 0 0.1774891774891776 227.6692029234991 32.74350649350649]
}
dst {
id 6
intersection [1 0 -1 0.4134007399252602 360.6974038206159 56.25]
}
midPoint [287.2353478264498 32.08684196827262]
chart 2
linkNode [2 0 12]
dataLimits [227.6692029234989 363.0974038206159 30.48550522276937 56.25]
}
transition {
id 11
labelString "[tmp>toff]\n"
"/out=0;"
labelPosition [148.5005276122413 19.26740087668229 61.12315725742516 33.78343179740215]
fontSize 14
src {
id 4
intersection [2 1 0 0.5000000000000017 107.2227360587848 53.25]
}
dst {
id 7
intersection [1 0 -1 0.8231212833459276 172.2878188355188 83.24999999999997]
}
midPoint [133.2719639772534 51.29765267532656]
chart 2
linkNode [3 0 13]
dataLimits [107.2227360587849 174.6878188355188 51.2887746824908 83.24999999999997]
}
transition {
id 12
labelString "[Reset]"
labelPosition [474.628999465148 56.11777225545723 46.39468562912994 17.62613832907939]
fontSize 14
src {
id 5
intersection [2 1 0 0.1434782608695653 430.1864087291827 67.1608695652174]
}
dst {
id 8
intersection [1 0 -1 0.5720351530544668 497.0224660384226 111.75]
}
midPoint [462.7666134584244 74.74229209802547]
chart 2
linkNode [2 10 14]
dataLimits [430.1864087291826 499.4224660384226 67.16086956521741 111.75]
}
transition {
id 13
labelString "[tmp<ton]\n"
"/out=1;"
labelPosition [34.04082961581307 100.6334348767377 59.65031009459563 33.78343179740215]
fontSize 14
src {
id 7
intersection [4 -1 0 0.4782608695652166 109.3529858399158 101.25]
}
dst {
id 4
intersection [3 0 1 0.6405117712234918 58.25 70.49999999999994]
}
midPoint [88.75927669400048 101.5778229871024]
chart 2
linkNode [3 11 0]
dataLimits [55.85 109.3529858399159 70.49999999999994 101.8670792927509]
}
transition {
id 14
labelPosition [228.6233931690662 91.84882854327464 9.573506558391891 17.62613832907939]
fontSize 14
src {
intersection [0 0 0 0.5841674933027192 239.9066392166421 90.33395893653184]
}
dst {
id 7
intersection [2 1 0 0.3478260869565226 185.8117462546356 95.25]
}
midPoint [223.3389082281144 92.43177147877945]
chart 2
linkNode [2 12 16]
dataLimits [185.8117462546356 239.9066392166421 90.33395893653184 97.65000000000001]
}
transition {
id 15
labelString "[tmp>thresh+mrg]"
labelPosition [287.6722622601672 105.1190635143216 111.1999607936289 17.62613832907939]
fontSize 14
src {
id 6
intersection [3 0 1 0.1013027392929125 401.1974038206159 93]
}
dst {
id 9
intersection [2 1 0 0.6224489795918375 380.8833778858732 159.75]
}
midPoint [402.0450258256955 122.2583026845134]
chart 2
linkNode [5 0 0]
dataLimits [380.8833778858732 402.062553737679 93.00000000000021 162.15]
}
transition {
id 16
labelString "[tmp<thresh-hys]"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -