📄 template.mdl
字号:
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Terminator
}
}
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 "template"
Location [176, 169, 523, 487]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [45, 207, 75, 238]
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [260, 217, 295, 253]
Inputs "2"
}
Block {
BlockType Reference
Name "Polyhedral\nThreshold"
Ports [1, 1]
Position [35, 27, 95, 73]
FontSize 10
SourceBlock "cmlib/Polyhedral\nThreshold"
SourceType "PolyhedralThreshold"
polyhedron "floor"
}
Block {
BlockType Step
Name "Sample data start"
Position [150, 205, 195, 245]
SampleTime "1"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [260, 120, 290, 150]
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "Array"
}
Block {
BlockType Reference
Name "Start Event"
Ports [0, 1]
Position [40, 118, 85, 162]
SourceBlock "cmlib/Start Event"
SourceType "Start event"
steptime "1"
initval "0"
finival "1"
sampletime "0"
interpret on
enable on
}
Block {
BlockType Reference
Name "Switched Continuous\nSystem"
Ports [2, 1]
Position [145, 17, 205, 73]
AncestorBlock "cmlib/Switched Continuous\nSystem"
FontSize 10
SourceBlock "cmlib/Switched Continuous\nSystem"
SourceType "SwitchedContinuousSystem"
nx "1"
use_sd off
nup "[]"
nz "[]"
use_reset on
nu "1"
x0 "1"
ICS "linearcon"
AR "linearcon"
use_param off
p0 "[]"
PaCs "[]"
}
Block {
BlockType Reference
Name "VZOH"
Ports [1, 1]
Position [145, 131, 190, 179]
FontSize 10
SourceBlock "cmlib/VZOH"
SourceType "VariableZeroOrderHold"
theta "phase"
period "period"
jitter "jitter"
}
Block {
BlockType SubSystem
Name "fsm"
Ports []
Position [250, 24, 312, 75]
FontSize 10
TreatAsAtomicUnit off
MaskType "Stateflow"
MaskDescription "Stateflow diagram"
MaskDisplay "plot(sf('Private','sfblk','xIcon'),sf('Private'"
",'sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'HorizontalAl',"
"'Center','VerticalAl','Bottom');"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "fsm"
Location [70, 200, 570, 460]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 100, 320, 140]
Outputs "1"
}
Block {
BlockType Ground
Name " Ground "
Position [20, 111, 40, 129]
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function template 1"
Ports [1, 1]
Position [180, 100, 230, 140]
FunctionName "sf_sfun"
PortCounts "[1 1]"
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 111, 480, 129]
}
Line {
SrcBlock " SFunction "
SrcPort 1
DstBlock " Demux "
DstPort 1
}
Line {
SrcBlock " Ground "
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
}
}
}
}
# Finite State Machines
# -- File save dated 04-Jun-2003 11:55:46
#
# Stateflow Version 5.0 (R13) dated Jun 21 2002, 09:11:50
#
#
Stateflow {
machine {
id 1
name "template"
created "09-Jun-1999 10:13:09"
isLibrary 0
firstTarget 4
sfVersion 50013001.000001
}
chart {
id 2
name "fsm"
windowPosition [264 189 538.5 403.5]
viewLimits [0 495 0 367.5]
stateColor [0 1 1]
stateLabelColor [1 1 1]
transitionColor [1 1 0]
transitionLabelColor [1 1 0]
junctionColor [1 0 1]
selectionColor [0 1 0]
chartColor [0 0 0]
screen [1 1 1152 864 1.333333333333333]
viewObj 2
machine 1
decomposition CLUSTER_CHART
chartFileNumber 1
}
instance {
id 3
name "fsm"
machine 1
chart 2
}
target {
id 4
name "sfun"
description "Default Simulink S-Function Target."
codeFlags " debug=1 echo=1 telemetry=0 preservenames=0 preservenameswit"
"hparent=0 exportcharts=0 project=0 multiinstanced=0 statebit"
"sets=0 databitsets=0 comments=1 initializer=1 ioformat=1"
machine 1
linkNode [1 0 0]
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -