Model { Name "menara_air_2011" Version 5.0 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Fri Mar 04 08:28:28 2011" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Administrator" ModifiedDateFormat "%" LastModifiedDate "Fri Mar 18 16:59:36 2011" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" 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 BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "ode45" SolverMode "Auto" StartTime "0.0" StopTime "60*60 % 60 menit" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-6" AbsTol "auto" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" LoadExternalInput off ExternalInput "[t, u]" LoadInitialState off InitialState "xInitial" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" Decimation "1" LimitDataPoints on MaxDataPoints "1000" SignalLoggingName "sigsOut" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" CheckForMatrixSingularity "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SfunCompatibilityCheckMsg "none" RTWInlineParameters off BlockReductionOpt on BooleanDataType on ConditionallyExecuteInputs on ParameterPooling on OptimizeBlockIOStorage on ZeroCross on AssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32" RTWSystemTargetFile "grt.tlc" RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWRetainRTWFile off TLCProfiler off TLCDebug off TLCCoverage off TLCAssertion off 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 ShowAdditionalParam off OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ShowAdditionalParam off 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 } Block { BlockType Inport Port "1" PortDimensions "-1" SampleTime "-1" ShowAdditionalParam off LatchInput off DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" Interpolate on } 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 MATLABFcn MATLABFcn "sin" OutputDimensions "-1" OutputSignalType "auto" Output1D on } Block { BlockType Outport Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Relay OnSwitchValue "eps" OffSwitchValue "eps" OnOutputValue "1" OffOutputValue "0" ShowAdditionalParam off OutputDataTypeScalingMode "All ports same datatype" OutDataType "sfix(16)" OutScaling "2^0" ConRadixGroup "Use specified scaling" ZeroCross on } Block { BlockType Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on } Block { BlockType Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" } Block { BlockType TransferFcn Numerator "[1]" Denominator "[1 2 1]" AbsoluteTolerance "auto" Realization "auto" } Block { BlockType TransportDelay DelayTime "1" InitialInput "0" BufferSize "1024" PadeOrder "0" TransDelayFeedthrough off } } 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 "menara_air_2011" Location [58, 82, 1258, 576] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "125" ReportName "simulink-default.rpt" Block { BlockType Product Name "AUTO\nSWITCH" Ports [2, 1] Position [100, 186, 145, 219] InputSameDT off } Block { BlockType Constant Name "Constant" Position [30, 25, 60, 55] } Block { BlockType Gain Name "Gain" Position [795, 190, 825, 220] Gain "-1" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [105, 25, 135, 55] } Block { BlockType ToWorkspace Name "Kondisi Pompa" Position [315, 250, 375, 280] VariableName "pompa" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Constant Name "LISTRIK" Position [40, 180, 70, 210] } Block { BlockType ToWorkspace Name "Level Air dalam\nTANGKI [m]" Position [780, 110, 840, 140] VariableName "level" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType SubSystem Name "PEMAKAIAN AIR" Ports [0, 1] Position [125, 104, 225, 146] TreatAsAtomicUnit off System { Name "PEMAKAIAN AIR" Location [433, 403, 931, 703] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Step Name "Step" Position [120, 65, 150, 95] Time "1500" After "10*1.5/60 % 10 keran terbuka @ 1.5 liter/6" "0 detik" SampleTime "0" } Block { BlockType Step Name "Step1" Position [120, 120, 150, 150] Time "2000" After "5*1.5/60 % 5 keran ditutup @ 1.5 liter/60 " "detik" SampleTime "0" } Block { BlockType Step Name "Step2" Position [120, 175, 150, 205] Time "3000" After "5*1.5/60 % 5 keran ditutup @ 1.5 liter/60 " "detik" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [220, 100, 240, 120] ShowName off IconShape "round" Inputs "|+--" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType TransferFcn Name "Transfer Fcn" Position [260, 92, 320, 128] Denominator "[2 1]" } Block { BlockType Outport Name "Pemakaian Air\n[liter/detik]" Position [360, 103, 390, 117] } Line { SrcBlock "Step" SrcPort 1 Points [54, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Step1" SrcPort 1 Points [54, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { SrcBlock "Step2" SrcPort 1 Points [75, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Transfer Fcn" SrcPort 1 DstBlock "Pemakaian Air\n[liter/detik]" DstPort 1 } } } Block { BlockType SubSystem Name "PIPA NAIK" Ports [1, 1] Position [315, 184, 415, 226] TreatAsAtomicUnit off System { Name "PIPA NAIK" Location [433, 403, 931, 703] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "125" Block { BlockType Inport Name "pangkal" Position [110, 103, 140, 117] } Block { BlockType TransportDelay Name "Transport\nDelay" Position [230, 95, 260, 125] DelayTime "5" } Block { BlockType Outport Name "ujung" Position [360, 103, 390, 117] } Line { SrcBlock "pangkal" SrcPort 1 DstBlock "Transport\nDelay" DstPort 1 } Line { SrcBlock "Transport\nDelay" SrcPort 1 DstBlock "ujung" DstPort 1 } } } Block { BlockType SubSystem Name "PIPA TURUN" Ports [1, 1] Position [310, 104, 410, 146] TreatAsAtomicUnit off System { Name "PIPA TURUN" Location [433, 403, 931, 703] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "pangkal" Position [110, 103, 140, 117] } Block { BlockType TransportDelay Name "Transport\nDelay" Position [225, 95, 255, 125] DelayTime "4" } Block { BlockType Outport Name "ujung" Position [360, 103, 390, 117] } Line { SrcBlock "pangkal" SrcPort 1 DstBlock "Transport\nDelay" DstPort 1 } Line { SrcBlock "Transport\nDelay" SrcPort 1 DstBlock "ujung" DstPort 1 } } } Block { BlockType SubSystem Name "POMPA" Ports [1, 1] Position [180, 184, 260, 226] TreatAsAtomicUnit off System { Name "POMPA" Location [224, 276, 833, 593] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "LISTRIK" Position [65, 123, 95, 137] } Block { BlockType Constant Name "DEBIT POMPA\n[liter/second]" Position [40, 14, 385, 76] Value "1100/(45*60) % Tangki terisi penuh 1100" " liter selama 45 menit" } Block { BlockType Product Name "Product" Ports [2, 1] Position [405, 106, 450, 139] InputSameDT off } Block { BlockType TransferFcn Name "Transfer Fcn" Position [470, 107, 530, 143] Denominator "[10 1]" } Block { BlockType Outport Name "Debit Air" Position [560, 118, 590, 132] } Line { SrcBlock "DEBIT POMPA\n[liter/second]" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "LISTRIK" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { SrcBlock "Transfer Fcn" SrcPort 1 DstBlock "Debit Air" DstPort 1 } } } Block { BlockType ToWorkspace Name "Pemakaian Air\n[liter/detik]" Position [275, 40, 335, 70] VariableName "keran" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Posisi Pelampung:\n0 di bawah\n1 di atas" Position [850, 190, 910, 220] VariableName "pelampung" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Relay Name "Relay" Position [230, 305, 260, 335] Orientation "left" OnSwitchValue "0.9" OffSwitchValue "0.1" } Block { BlockType SubSystem Name "TANGKI AIR" Ports [2, 2] Position [480, 86, 750, 244] TreatAsAtomicUnit off System { Name "TANGKI AIR" Location [48, 82, 758, 464] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "156" Block { BlockType Inport Name "Debit Pemakaian\nAir [liter/detik]" Position [110, 103, 140, 117] } Block { BlockType Inport Name "Debit Pompa\n[liter/detik]" Position [110, 43, 140, 57] Port "2" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [255, 35, 285, 65] InitialCondition "500 % Keadaan awal dari isi tangki [liter]" } Block { BlockType SubSystem Name "PELAMPUNG" Ports [1, 1] Position [225, 142, 365, 188] TreatAsAtomicUnit off System { Name "PELAMPUNG" Location [147, 210, 645, 510] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "LEVEL [m]" Position [110, 103, 140, 117] } Block { BlockType MATLABFcn Name "Fungsi Pelampung" Position [165, 95, 225, 125] MATLABFcn "pelampung" } Block { BlockType Saturate Name "Pembatas\nPelampung\n0 < y < 1" Position [260, 95, 290, 125] UpperLimit "1" LowerLimit "0" } Block { BlockType Outport Name "Posisi Pelampung" Position [330, 103, 360, 117] } Line { SrcBlock "LEVEL [m]" SrcPort 1 DstBlock "Fungsi Pelampung" DstPort 1 } Line { SrcBlock "Fungsi Pelampung" SrcPort 1 DstBlock "Pembatas\nPelampung\n0 < y < 1" DstPort 1 } Line { SrcBlock "Pembatas\nPelampung\n0 < y < 1" SrcPort 1 DstBlock "Posisi Pelampung" DstPort 1 } } } Block { BlockType Saturate Name "Pembatas\nVolume\n0 < V < 1100" Position [315, 35, 345, 65] UpperLimit "1100" LowerLimit "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [200, 40, 220, 60] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType MATLABFcn Name "Volume to Level" Position [380, 35, 440, 65] MATLABFcn "volume_to_level" } Block { BlockType Outport Name "LEVEL [m]" Position [480, 43, 510, 57] } Block { BlockType Outport Name "POSISI PELAMPUNG\n[0 sampai 1]" Position [415, 158, 445, 172] Port "2" } Line { SrcBlock "PELAMPUNG" SrcPort 1 DstBlock "POSISI PELAMPUNG\n[0 sampai 1]" DstPort 1 } Line { SrcBlock "Debit Pompa\n[liter/detik]" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Debit Pemakaian\nAir [liter/detik]" SrcPort 1 Points [65, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Pembatas\nVolume\n0 < V < 1100" DstPort 1 } Line { SrcBlock "Volume to Level" SrcPort 1 Points [15, 0] Branch { DstBlock "LEVEL [m]" DstPort 1 } Branch { Points [0, 75; -260, 0; 0, 40] DstBlock "PELAMPUNG" DstPort 1 } } Line { SrcBlock "Pembatas\nVolume\n0 < V < 1100" SrcPort 1 DstBlock "Volume to Level" DstPort 1 } Annotation { Name "Volume [liter]" Position [306, 25] } Annotation { Name "Level [meter]" Position [423, 24] } } } Block { BlockType TransportDelay Name "Transport\nDelay" Position [320, 305, 350, 335] Orientation "left" DelayTime "2" } Block { BlockType ToWorkspace Name "WAKTU" Position [170, 25, 230, 55] VariableName "time" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "WAKTU" DstPort 1 } Line { SrcBlock "TANGKI AIR" SrcPort 1 DstBlock "Level Air dalam\nTANGKI [m]" DstPort 1 } Line { SrcBlock "PIPA TURUN" SrcPort 1 DstBlock "TANGKI AIR" DstPort 1 } Line { SrcBlock "PIPA NAIK" SrcPort 1 DstBlock "TANGKI AIR" DstPort 2 } Line { SrcBlock "POMPA" SrcPort 1 Points [15, 0] Branch { DstBlock "PIPA NAIK" DstPort 1 } Branch { Points [0, 60] DstBlock "Kondisi Pompa" DstPort 1 } } Line { SrcBlock "PEMAKAIAN AIR" SrcPort 1 Points [30, 0] Branch { DstBlock "PIPA TURUN" DstPort 1 } Branch { DstBlock "Pemakaian Air\n[liter/detik]" DstPort 1 } } Line { SrcBlock "TANGKI AIR" SrcPort 2 Points [5, 0] Branch { Points [0, 115] DstBlock "Transport\nDelay" DstPort 1 } Branch { DstBlock "Gain" DstPort 1 } } Line { SrcBlock "LISTRIK" SrcPort 1 DstBlock "AUTO\nSWITCH" DstPort 1 } Line { SrcBlock "AUTO\nSWITCH" SrcPort 1 DstBlock "POMPA" DstPort 1 } Line { SrcBlock "Transport\nDelay" SrcPort 1 DstBlock "Relay" DstPort 1 } Line { SrcBlock "Relay" SrcPort 1 Points [-140, 0] DstBlock "AUTO\nSWITCH" DstPort 2 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Posisi Pelampung:\n0 di bawah\n1 di atas" DstPort 1 } Annotation { Name "0/1" Position [159, 192] } } }