📄 tank.mdl
字号:
Model { Name "tank" 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 InitFcn "clear functions" StartFcn "clear functions" Created "Tue Sep 25 13:27:11 2001" Creator "dan" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" LastModifiedBy "dan" ModifiedDateFormat "%<Auto>" LastModifiedDate "Mon Oct 7 18:05:00 2002" ModelVersionFormat "1.%<AutoIncrement:51>" 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 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" 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 off OptimizeBlockIOStorage on BufferReuse on ParameterPooling on BlockReductionOpt off 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 "tank" Location [79, 586, 579, 846] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Clock Name "Clock" Position [45, 20, 65, 40] DisplayTime off Decimation "10" } Block { BlockType SubSystem Name "Computer" Ports [2, 2] Position [145, 108, 235, 172] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Computer" Location [593, 618, 1018, 847] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "AI1" Position [15, 23, 45, 37] Port "1" LatchInput off Interpolate on } Block { BlockType Inport Name "AI2" Position [15, 68, 45, 82] Port "2" LatchInput off Interpolate on } Block { BlockType Ground Name "Ground1" Position [85, 155, 105, 175] } Block { BlockType Ground Name "Ground2" Position [90, 115, 110, 135] } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [75, 44, 110, 86] ShowName off Inputs "2" DisplayOption "none" } Block { BlockType Terminator Name "Terminator1" Position [300, 110, 320, 130] } Block { BlockType Terminator Name "Terminator2" Position [300, 70, 320, 90] } Block { BlockType Reference Name "TrueTime Kernel" Ports [3, 4] Position [150, 52, 265, 128] DropShadow on SourceBlock "truetime/TrueTime Kernel" SourceType "" sfun "tank_init" } Block { BlockType Outport Name "AO1" Position [365, 53, 395, 67] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Schedule" Position [370, 93, 400, 107] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Ground2" SrcPort 1 Points [10, 0; 0, -35] DstBlock "TrueTime Kernel" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "TrueTime Kernel" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 3 DstBlock "Schedule" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 4 DstBlock "Terminator1" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 2 DstBlock "Terminator2" DstPort 1 } Line { SrcBlock "TrueTime Kernel" SrcPort 1 DstBlock "AO1" DstPort 1 } Line { SrcBlock "AI2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "AI1" SrcPort 1 Points [5, 0; 0, 25] DstBlock "Mux" DstPort 1 } Line { SrcBlock "Ground1" SrcPort 1 Points [25, 0] DstBlock "TrueTime Kernel" DstPort 3 } } } Block { BlockType Display Name "Display" Ports [1] Position [105, 15, 195, 45] Format "short" Decimation "1" Floating off SampleTime "-1" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [394, 70, 436, 75] Orientation "up" NamePlacement "alternate" ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType SignalGenerator Name "Reference" Position [50, 110, 80, 140] WaveForm "square" Amplitude "2" Frequency "0.2" Units "Hertz" VectorParams1D on } Block { BlockType Scope Name "Schedule" Ports [1] Position [275, 141, 305, 169] Floating off Location [50, 101, 1027, 453] Open off NumInputPorts "1" TickLabels "on" ZoomMode "xonly" List { ListType AxesTitles axes1 "%<SignalLabel>" } Grid "on" TimeRange "10" YMin "0.8" YMax "1.7" SaveToWorkspace off SaveName "ScopeData2" DataFormat "Array" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType TransferFcn Name "Water Tank" Position [325, 107, 385, 143] Numerator "[5]" Denominator "[1 5]" AbsoluteTolerance "auto" Realization "auto" } Block { BlockType Scope Name "h" Ports [1] Position [400, 25, 430, 55] Orientation "up" Floating off Location [579, 113, 1020, 455] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "10" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "u" Ports [1] Position [260, 35, 290, 65] Orientation "up" Floating off Location [113, 113, 557, 457] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } Grid "on" TimeRange "10" YMin "-15" YMax "15" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Line { SrcBlock "Clock" SrcPort 1 DstBlock "Display" DstPort 1 } Line { SrcBlock "Computer" SrcPort 1 Points [35, 0] Branch { DstBlock "Water Tank" DstPort 1 } Branch { DstBlock "u" DstPort 1 } } Line { SrcBlock "Water Tank" SrcPort 1 Points [35, 0] Branch { Points [30, 0; 0, 85; -350, 0; 0, -55] DstBlock "Computer" DstPort 2 } Branch { DstBlock "Mux" DstPort 2 } } Line { SrcBlock "Reference" SrcPort 1 Points [20, 0] Branch { DstBlock "Computer" DstPort 1 } Branch { Points [0, -35] DstBlock "Mux" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "h" DstPort 1 } Line { SrcBlock "Computer" SrcPort 2 DstBlock "Schedule" DstPort 1 } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -