Model { Name "twotanks_model" 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 Created "Thu May 21 11:49:58 2009" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Administrator" ModifiedDateFormat "%" LastModifiedDate "Tue Jun 09 19:10:35 2009" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" StartTime "0.0" StopTime "10.0" 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" 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 -aFoldNonRolledExpr=1 -a" "InlineInvariantSignals=1 -aInlineParameters=0 -aLocalBlockOutputs=1 -aRollThr" "eshold=5 -aZeroInternalMemoryAtStartup=1 -aZeroExternalMemoryAtStartup=1 -aIn" "itFltsAndDblsToZero=1 -aGenerateReport=0 -aGenCodeOnly=0 -aRTWVerbose=1 -aInc" "ludeHyperlinkInReport=0 -aLaunchReport=0 -aForceParamTrailComments=0 -aGenera" "teComments=1 -aIgnoreCustomStorageClasses=1 -aIncHierarchyInIds=0 -aMaxRTWIdL" "en=31 -aShowEliminatedStatements=0 -aPrefixModelToSubsysFcnNames=1 -aIncDataT" "ypeInIds=0 -aInsertBlockDesc=0 -aSimulinkBlockComments=1 -aInlinedPrmAccess=" "\"Literals\" -aSuppressErrorStatus=0 -aModelReferenceCompliant=1 -aSupportNo" "nInlinedSFcns=1 -aSupportContinuousTime=1 -aSupportComplex=1 -aSupportNonFini" "te=1 -aSupportAbsoluteTime=1 -aTargetFcnLib=\"ansi_tfl_tmw.mat\" -aMultiInsta" "nceERTCode=0 -aLogVarNameModifier=\"rt_\" -aIsPILTarget=0 -aCombineOutputUpda" "teFcns=0 -aGenerateASAP2=0 -aGenerateSampleERTMain=0 -aGenerateFullHeader=1 -" "aUtilityFuncGeneration=\"Auto\" -aIncludeFileDelimiter=\"Auto\" -aIncludeMdlT" "erminateFcn=1 -aPurelyIntegerCode=0 -aERTCustomFileBanners=0 -aRTWCAPIStates=" "0 -aRTWCAPIParams=0 -aRTWCAPISignals=0 -aMatFileLogging=1 -aGenFloatMathFcnCa" "lls=\"ANSI_C\" -aExtModeMexFile=\"ext_comm\" -aExtModeTransport=0 -aExtModeSt" "aticAllocSize=1000000 -aExtModeTesting=0 -aExtModeStaticAlloc=0 -aExtMode=0 " "-aInitFltsAndDblsToZero=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 "twotanks_model" Location [480, 93, 839, 368] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Inport Name "u" Position [35, 148, 65, 162] Port "1" LatchInput off Interpolate on } Block { BlockType SubSystem Name "Double click here" Ports [] Position [76, 27, 115, 58] BackgroundColor "yellow" DropShadow on OpenFcn "twotanks_init" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskDisplay "disp('Init');" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Double click here" Location [158, 172, 656, 472] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" } } Block { BlockType SubSystem Name "Double click here1" Ports [] Position [201, 27, 240, 58] BackgroundColor "yellow" DropShadow on OpenFcn "plot(0:100,sin(0:100)); legend('Modificare ques" "to script per creare grafici!!')" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskDisplay "disp('Plots');" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Double click here1" Location [158, 172, 656, 472] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" } } Block { BlockType SubSystem Name "Two tanks (series)" Ports [1, 2] Position [100, 99, 220, 206] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskPromptString "section first pipe (a1)|section first tank (A1)" "|section second pipe (a2)|section second tank (A2)|Gravitational acceleration" " (g)" MaskStyleString "edit,edit,edit,edit,edit" MaskTunableValueString "on,on,on,on,on" MaskCallbackString "||||" MaskEnableString "on,on,on,on,on" MaskVisibilityString "on,on,on,on,on" MaskToolTipString "on,on,on,on,on" MaskVariables "a1=@1;A1=@2;a2=@3;A2=@4;g=@5;" MaskDisplay "image(imread('twotanks','jpg'));\nport_label('o" "utput',1,'x1');\nport_label('output',2,'x2');\nport_label('input',1,'u')" MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "a1|A1|a2|A2|g" MaskVariableAliases ",,,," Port { PortNumber 1 Name "x1" PropagatedSignals "x1" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "Two tanks (series)" Location [531, 100, 1048, 395] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "u" Position [20, 138, 50, 152] Port "1" LatchInput off Interpolate on } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [300, 65, 330, 95] ExternalReset "none" InitialConditionSource "internal" InitialCondition "x1_0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "Integrator2" Ports [1, 1] Position [300, 160, 330, 190] ExternalReset "none" InitialConditionSource "internal" InitialCondition "x2_0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [105, 92, 110, 158] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Fcn Name "eq2.2 a" Position [180, 65, 240, 95] Expr "u[3]/A1 - a1*sqrt(2*g*u[1])/A1" } Block { BlockType Fcn Name "eq2.2 b" Position [180, 160, 240, 190] Expr "a1*sqrt(2*g*u[1])/A1 - a2*sqrt(2*g*u[2])/A2" } Block { BlockType Outport Name "x1" Position [410, 73, 440, 87] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "x2" Position [415, 168, 445, 182] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "eq2.2 a" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [30, 0] Branch { Points [0, -50; -295, 0; 0, 75] DstBlock "Mux" DstPort 1 } Branch { Labels [1, 0] DstBlock "x1" DstPort 1 } } Line { SrcBlock "eq2.2 b" SrcPort 1 DstBlock "Integrator2" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 Points [0, 0; 25, 0] Branch { Points [0, -45] DstBlock "eq2.2 a" DstPort 1 } Branch { Points [0, 50] DstBlock "eq2.2 b" DstPort 1 } } Line { SrcBlock "Integrator2" SrcPort 1 Points [0, 0; 30, 0] Branch { DstBlock "x2" DstPort 1 } Branch { Points [0, 60; -295, 0; 0, -110] DstBlock "Mux" DstPort 2 } } Line { SrcBlock "u" SrcPort 1 DstBlock "Mux" DstPort 3 } Annotation { Position [376, 197] Text "x2" } Annotation { Position [268, 94] Text "dx1/dt" } Annotation { Position [263, 188] Text "dx2/dt" } Annotation { Position [380, 50] Text "x1" } } } Block { BlockType Outport Name "x1" Position [275, 118, 305, 132] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "x2" Position [275, 173, 305, 187] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "u" SrcPort 1 DstBlock "Two tanks (series)" DstPort 1 } Line { Name "x1" SrcBlock "Two tanks (series)" SrcPort 1 DstBlock "x1" DstPort 1 } Line { SrcBlock "Two tanks (series)" SrcPort 2 DstBlock "x2" DstPort 1 } } }