?? keyboard_input_simulink_v6_1.mdl
字號:
ProfileTLC off
TLCDebug off
TLCCoverage off
TLCAssert off
ProcessScriptMode "Default"
ConfigurationMode "Optimized"
ConfigAtBuild off
IncludeHyperlinkInReport off
LaunchReport off
Array {
Type "Handle"
Dimension 2
Simulink.CodeAppCC {
$ObjectID 9
Array {
Type "Cell"
Dimension 9
Cell "IgnoreCustomStorageClasses"
Cell "InsertBlockDesc"
Cell "SFDataObjDesc"
Cell "SimulinkDataObjDesc"
Cell "DefineNamingRule"
Cell "SignalNamingRule"
Cell "ParamNamingRule"
Cell "InlinedPrmAccess"
Cell "CustomSymbolStr"
PropName "DisabledProps"
}
Version "1.0.4"
ForceParamTrailComments off
GenerateComments on
IgnoreCustomStorageClasses on
IncHierarchyInIds off
MaxIdLength 31
PreserveName off
PreserveNameWithParent off
ShowEliminatedStatement off
IncAutoGenComments off
SimulinkDataObjDesc off
SFDataObjDesc off
IncDataTypeInIds off
PrefixModelToSubsysFcnNames on
CustomSymbolStr "$R$N$M"
MangleLength 1
DefineNamingRule "None"
ParamNamingRule "None"
SignalNamingRule "None"
InsertBlockDesc off
SimulinkBlockComments on
EnableCustomComments off
InlinedPrmAccess "Literals"
ReqsInCode off
}
Simulink.GRTTargetCC {
$BackupClass "Simulink.TargetCC"
$ObjectID 10
Array {
Type "Cell"
Dimension 12
Cell "IncludeMdlTerminateFcn"
Cell "CombineOutputUpdateFcns"
Cell "SuppressErrorStatus"
Cell "ERTCustomFileBanners"
Cell "GenerateSampleERTMain"
Cell "MultiInstanceERTCode"
Cell "PurelyIntegerCode"
Cell "SupportNonFinite"
Cell "SupportComplex"
Cell "SupportAbsoluteTime"
Cell "SupportContinuousTime"
Cell "SupportNonInlinedSFcns"
PropName "DisabledProps"
}
Version "1.0.4"
TargetFcnLib "ansi_tfl_tmw.mat"
GenFloatMathFcnCalls "ANSI_C"
UtilityFuncGeneration "Auto"
GenerateFullHeader on
GenerateSampleERTMain off
IsPILTarget off
ModelReferenceCompliant on
IncludeMdlTerminateFcn on
CombineOutputUpdateFcns off
SuppressErrorStatus off
IncludeFileDelimiter "Auto"
ERTCustomFileBanners off
SupportAbsoluteTime on
LogVarNameModifier "rt_"
MatFileLogging on
MultiInstanceERTCode off
SupportNonFinite on
SupportComplex on
PurelyIntegerCode off
SupportContinuousTime on
SupportNonInlinedSFcns on
ExtMode off
ExtModeStaticAlloc off
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
GenerateASAP2 off
}
PropName "Components"
}
}
PropName "Components"
}
Name "Configuration"
SimulationMode "normal"
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
}
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 "keyboard_input_Simulink_v6_1"
Location [222, 191, 924, 687]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType "S-Function"
Name "S-Function"
Ports [0, 1]
Position [290, 221, 455, 249]
FunctionName "sfun_keyboard_input_v1_01"
Parameters "0.01"
Port {
PortNumber 1
Name "Ascii character representation"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [605, 219, 635, 251]
Location [940, 162, 1264, 401]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "600"
YMin "42"
YMax "44"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Display
Name "numeric value\nof current character\nbeing pres"
"sed in\nthe figure window"
Ports [1]
Position [525, 293, 605, 317]
BackgroundColor "darkGreen"
Decimation "1"
}
Line {
Name "Ascii character representation"
SrcBlock "S-Function"
SrcPort 1
Points [0, 0; 50, 0]
Branch {
DstBlock "numeric value\nof current character\nbeing pr"
"essed in\nthe figure window"
DstPort 1
}
Branch {
Labels [-1, 1]
DstBlock "Scope"
DstPort 1
}
}
Annotation {
Name "Marc Compere\nCompereM@saic.com\ncreated : 17 "
"June 2003\nmodified: 28 August 2004"
Position [520, 421]
HorizontalAlignment "left"
DropShadow on
}
Annotation {
Name "Start the simulation, then type on\nthe keyboar"
"d. The currentl key being\npressed will be sent to the green display\nbox an"
"d scope to the right. If your\ncomputer is fast, however, the current\ncharac"
"ter's numeric value will likely not\nshow up in the display box.\nLook in the"
" scope to see the time\nhistory of all keys pressed.\n\nTo acces the Matlab w"
"orkspace or\nmenus or to access anything in\nSimulink, click the \"Disable..."
"\"\nbutton.\n\nTo reinstate exclusive keyboard\ninput from the figure window,"
"\nclick the \"Enable...\" button."
Position [43, 330]
HorizontalAlignment "left"
DropShadow on
}
Annotation {
Name "This S-function is designed to\naccept keyboard"
" input during a\nrunning Simulink simulation.\nIt achieves this functionality"
" by\nretrieving keyboard data from the\nfigure window that gets opened."
Position [23, 90]
HorizontalAlignment "left"
DropShadow on
FontName "Arial"
FontSize 20
}
Annotation {
Name "Tested with MATLAB Version 7.0.1.24704 (R14) Se"
"rvice Pack 1"
Position [506, 157]
DropShadow on
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -