?? directed_broadcast.mdl
字號:
Model {
Name "directed_broadcast"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "inf"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect off
Created "Tue Jan 26 15:59:40 1999"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "pgoddard"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Tue Jan 26 16:12:50 1999"
ModelVersionFormat "1.%<AutoIncrement:5>"
ConfigurationManager "none"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
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 "directed_broadcast"
Location [37, 80, 369, 245]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Chart"
Ports [0, 0, 0, 1, 0]
Position [210, 69, 270, 121]
ShowPortLabels on
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 off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Chart"
Location [257, 457, 812, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType TriggerPort
Name "E"
Ports [0, 1, 0, 0, 0]
Position [20, 101, 40, 119]
TriggerType "either"
ShowOutputPort on
OutputDataType "auto"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1, 0, 0, 0]
Position [270, 100, 320, 140]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function directed_broadcast 1"
Ports [1, 1, 0, 0, 0]
Position [180, 100, 230, 140]
FunctionName "sf_sfun"
PortCounts "[1 1]"
SFunctionModules "''"
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 111, 480, 129]
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
Line {
SrcBlock " SFunction "
SrcPort 1
DstBlock " Demux "
DstPort 1
}
Line {
SrcBlock "E"
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Event E"
Ports [0, 1, 0, 0, 0]
Position [65, 31, 115, 59]
OpenFcn "set_param(gcbh,'action','1');"
FontName "Arial"
FontSize 12
FontWeight "bold"
ShowPortLabels on
MaskType "Manual Switch"
MaskDescription "Output toggles between two inputs by double-cli"
"cking on the block.\n"
MaskHelp "This block implements a manual switch."
MaskPromptString "Current setting:|Action:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskVariables "sw=@1;action=@2;"
MaskInitialization "[x,y]=manevent;\n"
MaskDisplay "plot(x,y)\n\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0|0"
System {
Name "Event E"
Location [492, 443, 732, 566]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Constant
Name "Constant"
Position [45, 50, 65, 70]
Value "0"
}
Block {
BlockType Outport
Name "Output"
Position [140, 53, 170, 67]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Output"
DstPort 1
}
}
}
Line {
SrcBlock "Event E"
SrcPort 1
Points [120, 0]
DstBlock "Chart"
DstPort trigger
}
Annotation {
Position [97, 102]
Text "Double Click this block\nto create an event."
FontName "Arial"
FontSize 12
FontAngle "italic"
}
}
}
# Finite State Machines
# -- File save dated 26-Jan-1999 16:12:51
#
# Stateflow Version 2.0 (R11) dated Jan 21 1999, 19:12:04
#
#
Stateflow {
machine {
id 1
name "directed_broadcast"
created "26-Jan-1999 15:59:40"
firstTarget 27
sfVersion 20011061
}
chart {
id 2
name "Chart"
windowPosition [27 47.25 483 288.75]
viewLimits [13.9983159502157 359.9424046586336 5.526315789473685 204.4736842105263]
zoomFactor 0.7871310323285959
screen [1 1 1024 768 1.333333333333333]
treeNode [0 3 0 0]
visible 1
machine 1
decomposition SET_CHART
firstEvent 23
chartFileNumber 1
}
state {
id 3
labelString "Motor"
position [37.90792029802535 10.5 146.124723838981 189]
fontSize 14
chart 2
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -