📄 hydro5.mdl
字号:
Model {
Name "hydro5"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines on
ShowLineDimensions on
ShowPortDataTypes off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
PreLoadFcn "k0=10000;d1=0.1;d2=0.01;n=0;"
Created "Sun Aug 27 14:21:28 2000"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "obas"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Wed Aug 30 15:58:06 2000"
ModelVersionFormat "1.%<AutoIncrement:12>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "10"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
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 "Array"
LimitDataPoints on
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"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
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"
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
ExtModeLogAll on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt off
BooleanDataType off
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "MS Sans Serif"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "MS Sans Serif"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "MS Sans Serif"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "hydro5"
Location [368, 168, 860, 452]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "D:\\nightly\\toolbox\\rptgenext\\simulink-dynamic"
".rpt"
Block {
BlockType SubSystem
Name "Hydroplane"
Ports [1, 1]
Position [225, 67, 380, 133]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "hydroplane"
MaskDescription "This is a simple hydroplane velocity model mv'="
"F-W(v).\nW(v)=1.2v^3-5.2v^2+7v."
MaskPromptString "Weight (kg)"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "m=@1;"
MaskDisplay "image(imread('hydro.bmp'))"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "800"
System {
Name "Hydroplane"
Location [419, 373, 787, 565]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
Port "1"
Interpolate on
}
Block {
BlockType Gain
Name "Gain"
Position [120, 28, 160, 62]
FontName "Helvetica"
Gain "1/m"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "Polynomial"
Ports [1, 1]
Position [140, 120, 200, 150]
Orientation "left"
FontName "Helvetica"
SourceBlock "simulink3/Functions\n& Tables/Polynomial"
SourceType "Polyval"
coefs "[1 -1 0]"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [80, 35, 100, 55]
ShowName off
FontName "Helvetica"
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Integrator
Name "Velocity"
Ports [1, 1]
Position [205, 30, 235, 60]
FontName "Helvetica"
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Outport
Name "Out1"
Position [300, 38, 330, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
Labels [0, 0]
SrcBlock "Velocity"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Out1"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Polynomial"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Velocity"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Polynomial"
SrcPort 1
Points [-45, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType Reference
Name "LTI System"
Ports [1, 1]
Position [100, 77, 200, 123]
FontName "Helvetica"
SourceBlock "cstblocks/LTI System"
SourceType "LTI Block"
sys "tf(k0*[1 n],[1 d1 d2])"
IC "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [415, 84, 445, 116]
FontName "Helvetica"
Floating off
Location [556, 377, 880, 616]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "100"
YMin "0"
YMax "80"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [15, 85, 45, 115]
FontName "Helvetica"
Time "1"
Before "0"
After "100"
SampleTime "0"
VectorParams1D on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [60, 90, 80, 110]
ShowName off
FontName "Helvetica"
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "NCD Outport"
Position [420, 140, 475, 200]
DropShadow on
OpenFcn "optblock"
FontName "Helvetica"
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
MaskType "NCD Outport"
MaskDisplay "plot([0:10],[-.5 1.5 .6 1.3 .8 1.1 .95 1.02 .99"
" 1 1]);\ndisp('\\n\\n NCD\\n OutPort 1'); "
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Line {
SrcBlock "Hydroplane"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 50]
Branch {
Points [-325, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, 20]
DstBlock "NCD Outport"
DstPort 1
}
}
}
Line {
SrcBlock "LTI System"
SrcPort 1
DstBlock "Hydroplane"
DstPort 1
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "LTI System"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -