📄 sim18.mdl
字号:
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 Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType InitialCondition
Value "1"
SampleTime "-1"
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
ZeroCross on
}
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"
}
}
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 "Sim18"
Location [365, 328, 1377, 967]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Gain
Name "Elasticity"
Position [125, 222, 170, 258]
Orientation "left"
BackgroundColor "lightBlue"
NamePlacement "alternate"
Gain "-0.8"
}
Block {
BlockType Constant
Name "Gravity"
Position [125, 106, 165, 134]
BackgroundColor "lightBlue"
NamePlacement "alternate"
Value "-9.81"
}
Block {
BlockType InitialCondition
Name "IC"
Position [130, 154, 165, 186]
BackgroundColor "lightBlue"
Value "15"
}
Block {
BlockType Integrator
Name "Position"
Ports [1, 1]
Position [355, 116, 400, 174]
BackgroundColor "magenta"
InitialCondition "10"
LimitOutput on
LowerSaturationLimit "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [530, 69, 570, 131]
BackgroundColor "lightBlue"
ShowName off
Location [78, 172, 526, 653]
Open off
NumInputPorts "2"
TickLabels "on"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "20"
YMin "-30~0"
YMax "20~22.9822"
DataFormat "Array"
}
Block {
BlockType Integrator
Name "Velocity"
Ports [3, 1, 0, 0, 1]
Position [250, 105, 295, 185]
BackgroundColor "magenta"
NamePlacement "alternate"
ExternalReset "falling"
InitialConditionSource "external"
ShowStatePort on
}
Line {
SrcBlock "IC"
SrcPort 1
DstBlock "Velocity"
DstPort 3
}
Line {
Labels [2, 0]
SrcBlock "Elasticity"
SrcPort 1
Points [-35, 0; 0, -70]
DstBlock "IC"
DstPort 1
}
Line {
SrcBlock "Velocity"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Position"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Position"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
Points [0, -30]
DstBlock "Scope"
DstPort 2
}
Branch {
Points [0, 120; -365, 0; 0, -120]
DstBlock "Velocity"
DstPort 2
}
}
Line {
SrcBlock "Gravity"
SrcPort 1
DstBlock "Velocity"
DstPort 1
}
Line {
SrcBlock "Velocity"
SrcPort state
Points [0, 50]
DstBlock "Elasticity"
DstPort 1
}
Annotation {
Position [455, 364]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -