?? c7fstr1.mdl
字號:
Model {
Name "c7fstr1"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
PreLoadFcn "M=0.01; K=1; Fsliding=1; Fstatic=1;"
Created "Mon Sep 17 08:08:31 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Thu Sep 27 08:40:17 2001"
ModelVersionFormat "1.%<AutoIncrement:18>"
ConfigurationManager "None"
SimParamPage "RTW"
StartTime "0.0"
StopTime "20.0"
SolverMode "Auto"
Solver "ode5"
RelTol "1e-3"
AbsTol "1e-6"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "1e-4"
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 "Array"
LimitDataPoints off
MaxDataPoints "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
SingleTaskRateTransMsg "none"
MultiTaskRateTransMsg "error"
IntegerOverflowMsg "warning"
CheckForMatrixSingularity "none"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
RTWOptions " -aEnforceIntegerDowncast=1 -aExtMode=1 -aFoldNonRo"
"lledExpr=1 -aForceParamTrailComments=0 -aGenerateComments=1 -aIgnoreCustomSto"
"rageClasses=1 -aIncHierarchyInIds=0 -aInlineInvariantSignals=0 -aInlineParame"
"ters=0 -aLocalBlockOutputs=1 -aLogVarNameModifier=\"rt_\" -aRTWVerbose=1 -aRo"
"llThreshold=5 -aShowEliminatedStatements=1"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
TLCProfiler off
TLCDebug off
TLCCoverage off
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
TryForcingSFcnDF off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
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 on
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt on
RTWExpressionDepthLimit 5
BooleanDataType off
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 "c7fstr1"
Location [166, 104, 924, 542]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "portrait"
PaperPositionMode "auto"
PaperType "a4letter"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "Constant1"
Position [15, 159, 65, 181]
ShowName off
Value "Fstatic"
VectorParams1D on
}
Block {
BlockType Gain
Name "Gain"
Position [325, 103, 365, 137]
Gain "1/M"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [250, 283, 290, 317]
Orientation "left"
Gain "K"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType HitCross
Name "Hit \nCrossing"
Ports [1, 1]
Position [520, 130, 550, 160]
HitCrossingOffset "0"
HitCrossingDirection "either"
ShowOutputPort on
}
Block {
BlockType SubSystem
Name "Input Force"
Ports [0, 1]
Position [15, 100, 50, 140]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Repeating table"
MaskDescription "Repeating table."
MaskHelp "Repeats cycle given in table. Time values shoul"
"d be monotonically increasing."
MaskPromptString "Time values:|Output values:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "rep_seq_t=@1;rep_seq_y=@2;"
MaskInitialization "period = max(rep_seq_t);\n"
MaskDisplay "plot([rep_seq_t,rep_seq_t+period,rep_seq_t+2*pe"
"riod,rep_seq_t(1)+3*period],[rep_seq_y,rep_seq_y,rep_seq_y,rep_seq_y(1)])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[0 5 10]|[0 5 0]"
MaskVariableAliases ","
System {
Name "Input Force"
Location [382, 166, 692, 322]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Clock
Name "Clock"
Position [45, 60, 65, 80]
DisplayTime off
Decimation "10"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [110, 60, 150, 80]
Expr "rem(u[1],period)"
}
Block {
BlockType Lookup
Name "Look-Up Table"
Position [210, 58, 250, 82]
InputValues "rep_seq_t"
OutputValues "rep_seq_y"
}
Block {
BlockType Outport
Name "out_1"
Position [285, 60, 305, 80]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Look-Up Table"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Look-Up Table"
DstPort 1
}
}
}
Block {
BlockType Integrator
Name "Int"
Ports [2, 1, 0, 0, 1]
Position [385, 112, 415, 143]
ExternalReset "rising"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort on
AbsoluteTolerance "auto"
}
Block {
BlockType Integrator
Name "Int1"
Ports [1, 1]
Position [440, 115, 470, 145]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [600, 13, 605, 57]
BackgroundColor "black"
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [120, 110, 140, 130]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [285, 110, 305, 130]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "friction force"
Ports [4, 1]
Position [190, 146, 270, 209]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "friction force"
Location [481, 194, 979, 487]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "portrait"
PaperPositionMode "auto"
PaperType "a4letter"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Fsum"
Position [15, 48, 45, 62]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "Fstatic"
Position [20, 98, 50, 112]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "stuck"
Position [20, 178, 50, 192]
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "xdot"
Position [20, 223, 50, 237]
Port "4"
LatchInput off
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [140, 40, 170, 70]
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain"
Position [220, 214, 295, 246]
Gain "Fsliding"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "fsliding"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [210, 127, 240, 158]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [205, 47, 235, 78]
Operator "<"
}
Block {
BlockType Signum
Name "Sign"
Position [160, 215, 190, 245]
ShowName off
}
Block {
BlockType Signum
Name "Sign1"
Position [140, 135, 170, 165]
ShowName off
}
Block {
BlockType Switch
Name "Switch"
Position [360, 162, 390, 208]
NamePlacement "alternate"
ShowName off
Threshold ".5"
}
Block {
BlockType Switch
Name "Switch1"
Position [290, 42, 320, 88]
NamePlacement "alternate"
ShowName off
Threshold ".5"
Port {
PortNumber 1
Name "fstatic"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Outport
Name "Ff"
Position [425, 178, 455, 192]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Ff"
DstPort 1
}
Line {
SrcBlock "stuck"
SrcPort 1
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "xdot"
SrcPort 1
DstBlock "Sign"
DstPort 1
}
Line {
SrcBlock "Sign"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
Name "fsliding"
Labels [0, 0]
SrcBlock "Gain"
SrcPort 1
Points [10, 0; 0, -30]
DstBlock "Switch"
DstPort 3
}
Line {
Name "fstatic"
Labels [2, 0]
SrcBlock "Switch1"
SrcPort 1
Points [15, 0; 0, 105]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Fsum"
SrcPort 1
Points [65, 0]
Branch {
DstBlock "Abs"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Sign1"
DstPort 1
}
Branch {
Points [0, -45; 150, 0; 0, 40]
DstBlock "Switch1"
DstPort 1
}
}
Line {
SrcBlock "Sign1"
SrcPort 1
DstBlock "Product"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -