Model { Name "menara_air_pelampung" 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 Oct 15 08:27:46 2010" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Administrator" ModifiedDateFormat "%" LastModifiedDate "Fri Mar 04 08:28:14 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 "2000" 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 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_pelampung" Location [29, 83, 868, 500] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Constant Name "Constant" Position [45, 25, 75, 55] } Block { BlockType ToWorkspace Name "DEBIT AIR MASUK ke TANGKI" Position [420, 240, 480, 270] VariableName "debit" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [120, 25, 150, 55] } Block { BlockType ToWorkspace Name "KERAN" Position [315, 40, 375, 70] VariableName "keran" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "LEVEL" Position [660, 110, 720, 140] VariableName "level" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType SubSystem Name "PEMAKAIAN KERAN" Ports [0, 1] Position [135, 104, 235, 146] TreatAsAtomicUnit off System { Name "PEMAKAIAN KERAN" Location [217, 205, 749, 505] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Step Name "Buka Keran 1" Position [85, 40, 115, 70] Time "100" After "1/2" SampleTime "0" } Block { BlockType Step Name "Buka Keran 2" Position [90, 165, 120, 195] Time "300" After "1/2" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [4, 1] Position [240, 90, 280, 140] ShowName off IconShape "round" Inputs "++++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Step Name "Tutup Keran 1" Position [85, 100, 115, 130] Time "600" After "-1/2" SampleTime "0" } Block { BlockType Step Name "Tutup Keran 2" Position [90, 225, 120, 255] Time "800" After "-1/2" SampleTime "0" } Block { BlockType TransferFcn Name "Waktu Membuka/Menutup" Position [310, 97, 370, 133] Denominator "[5 1]" } Block { BlockType Outport Name "DEBIT PEMAKAIAN [liter/sec]" Position [430, 108, 460, 122] } Line { SrcBlock "Buka Keran 1" SrcPort 1 Points [140, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Tutup Keran 1" SrcPort 1 Points [109, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Buka Keran 2" SrcPort 1 Points [50, 0; 0, -50] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Tutup Keran 2" SrcPort 1 Points [135, 0] DstBlock "Sum" DstPort 4 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Waktu Membuka/Menutup" DstPort 1 } Line { SrcBlock "Waktu Membuka/Menutup" SrcPort 1 DstBlock "DEBIT PEMAKAIAN [liter/sec]" DstPort 1 } } } Block { BlockType SubSystem Name "POMPA" Ports [1, 1] Position [75, 167, 270, 253] TreatAsAtomicUnit off System { Name "POMPA" Location [158, 227, 656, 527] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "SAKLAR POWER" Position [110, 103, 140, 117] } Block { BlockType Constant Name "Debit Pompa" Position [40, 155, 120, 185] Value "1100/2700" } Block { BlockType Product Name "Product" Ports [2, 1] Position [195, 101, 240, 134] InputSameDT off } Block { BlockType TransferFcn Name "Starting Pompa" Position [270, 102, 330, 138] Denominator "[3 1]" } Block { BlockType Outport Name "DEBIT POMPA [liter/sec]" Position [390, 113, 420, 127] } Line { SrcBlock "SAKLAR POWER" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Starting Pompa" DstPort 1 } Line { SrcBlock "Debit Pompa" SrcPort 1 Points [55, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Starting Pompa" SrcPort 1 DstBlock "DEBIT POMPA [liter/sec]" DstPort 1 } } } Block { BlockType ToWorkspace Name "POMPA (1/0)" Position [45, 95, 105, 125] VariableName "pompa" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "POSISI PELAMPUNG" Position [650, 175, 710, 205] VariableName "pelampung" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType SubSystem Name "Pipa Naik" Ports [1, 1] Position [315, 177, 380, 223] TreatAsAtomicUnit off System { Name "Pipa Naik" Location [332, 302, 830, 602] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [110, 103, 140, 117] } Block { BlockType TransportDelay Name "Transport\nDelay" Position [230, 95, 260, 125] DelayTime "10" } Block { BlockType Outport Name "Out1" Position [360, 103, 390, 117] } Line { SrcBlock "In1" SrcPort 1 DstBlock "Transport\nDelay" DstPort 1 } Line { SrcBlock "Transport\nDelay" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "Pipa Turun" Ports [1, 1] Position [295, 102, 360, 148] TreatAsAtomicUnit off System { Name "Pipa Turun" Location [332, 302, 830, 602] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [110, 103, 140, 117] } Block { BlockType TransportDelay Name "Transport\nDelay" Position [230, 95, 260, 125] DelayTime "10" } Block { BlockType Outport Name "Out1" Position [360, 103, 390, 117] } Line { SrcBlock "In1" SrcPort 1 DstBlock "Transport\nDelay" DstPort 1 } Line { SrcBlock "Transport\nDelay" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType SubSystem Name "Pipa Turun1" Ports [1, 1] Position [325, 287, 390, 333] Orientation "left" TreatAsAtomicUnit off System { Name "Pipa Turun1" Location [332, 302, 830, 602] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [110, 103, 140, 117] } Block { BlockType TransportDelay Name "Transport\nDelay" Position [230, 95, 260, 125] DelayTime "10" } Block { BlockType Outport Name "Out1" Position [360, 103, 390, 117] } Line { SrcBlock "In1" SrcPort 1 DstBlock "Transport\nDelay" DstPort 1 } Line { SrcBlock "Transport\nDelay" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Relay Name "Saklar Otomatis\n(bisa diatur)" Position [15, 195, 45, 225] OnSwitchValue "0.9" OffSwitchValue "0.1" } Block { BlockType SubSystem Name "TANGKI AIR" Ports [2, 2] Position [415, 94, 620, 221] TreatAsAtomicUnit off System { Name "TANGKI AIR" Location [244, 171, 742, 454] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "KERAN [liter/sec]" Position [105, 98, 135, 112] } Block { BlockType Inport Name "POMPA [liter/sec]" Position [110, 173, 140, 187] Port "2" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [295, 90, 325, 120] InitialCondition "1000" } Block { BlockType SubSystem Name "Pelampung" Ports [1, 1] Position [285, 179, 385, 221] TreatAsAtomicUnit off System { Name "Pelampung" Location [295, 97, 793, 397] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [110, 103, 140, 117] } Block { BlockType MATLABFcn Name "Fungsi Pelampung" Position [175, 95, 235, 125] MATLABFcn "pelampung" } Block { BlockType TransferFcn Name "Transfer Fcn" Position [265, 92, 325, 128] Denominator "[2 1]" } Block { BlockType Outport Name "Out1" Position [360, 103, 390, 117] } Line { SrcBlock "In1" SrcPort 1 DstBlock "Fungsi Pelampung" DstPort 1 } Line { SrcBlock "Fungsi Pelampung" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { SrcBlock "Transfer Fcn" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Saturate Name "Pembatas Level" Position [450, 90, 480, 120] UpperLimit "1.1/(pi*(0.5^2))" LowerLimit "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [230, 95, 250, 115] ShowName off IconShape "round" Inputs "|-+" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType TransferFcn Name "Volume --> level" Position [365, 87, 425, 123] Numerator "[0.001]" Denominator "[pi*((0.5)^2)]" } Block { BlockType Outport Name "LEVEL [m]" Position [510, 98, 540, 112] } Block { BlockType Outport Name "Posisi Pelampung" Position [475, 193, 505, 207] Port "2" } Line { SrcBlock "KERAN [liter/sec]" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "POMPA [liter/sec]" SrcPort 1 Points [95, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Volume --> level" DstPort 1 } Line { SrcBlock "Volume --> level" SrcPort 1 DstBlock "Pembatas Level" DstPort 1 } Line { SrcBlock "Pembatas Level" SrcPort 1 Points [5, 0] Branch { DstBlock "LEVEL [m]" DstPort 1 } Branch { Points [0, 55; -220, 0] DstBlock "Pelampung" DstPort 1 } } Line { SrcBlock "Pelampung" SrcPort 1 DstBlock "Posisi Pelampung" DstPort 1 } Annotation { Name "Volume [liter]" Position [361, 82] } Annotation { Name "0...1" Position [411, 189] } } } Block { BlockType ToWorkspace Name "WAKTU" Position [190, 25, 250, 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 "PEMAKAIAN KERAN" SrcPort 1 Points [25, 0] Branch { DstBlock "Pipa Turun" DstPort 1 } Branch { Points [0, -70] DstBlock "KERAN" DstPort 1 } } Line { SrcBlock "POMPA" SrcPort 1 Points [25, 0] DstBlock "Pipa Naik" DstPort 1 } Line { SrcBlock "Saklar Otomatis\n(bisa diatur)" SrcPort 1 Points [5, 0] Branch { DstBlock "POMPA" DstPort 1 } Branch { Points [0, -45; -25, 0] DstBlock "POMPA (1/0)" DstPort 1 } } Line { SrcBlock "TANGKI AIR" SrcPort 1 DstBlock "LEVEL" DstPort 1 } Line { SrcBlock "Pipa Naik" SrcPort 1 Points [15, -10] Branch { DstBlock "TANGKI AIR" DstPort 2 } Branch { Points [0, 65] DstBlock "DEBIT AIR MASUK ke TANGKI" DstPort 1 } } Line { SrcBlock "Pipa Turun" SrcPort 1 DstBlock "TANGKI AIR" DstPort 1 } Line { SrcBlock "TANGKI AIR" SrcPort 2 Points [0, 0] Branch { DstBlock "POSISI PELAMPUNG" DstPort 1 } Branch { Points [0, 120] DstBlock "Pipa Turun1" DstPort 1 } } Line { SrcBlock "Pipa Turun1" SrcPort 1 Points [-320, 0] DstBlock "Saklar Otomatis\n(bisa diatur)" DstPort 1 } } }