Model { Name "menara_air_okt_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 "Mon Oct 10 11:27:43 2011" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Administrator" ModifiedDateFormat "%" LastModifiedDate "Mon Oct 17 12:29:10 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 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_okt_2011" Location [224, 123, 1268, 642] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "125" ReportName "simulink-default.rpt" Block { BlockType Constant Name "Constant" Position [255, 20, 285, 50] } Block { BlockType ToWorkspace Name "Debit air masuk [liter/second] " Position [950, 45, 1010, 75] VariableName "debit_in" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [330, 20, 360, 50] } Block { BlockType SubSystem Name "KERAN AIR" Ports [1, 1] Position [330, 204, 430, 246] TreatAsAtomicUnit off System { Name "KERAN 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 Inport Name "In1" Position [110, 103, 140, 117] } Block { BlockType Outport Name "Out1" Position [360, 103, 390, 117] } Line { SrcBlock "In1" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType ToWorkspace Name "Ketinggian air [m]" Position [960, 200, 1020, 230] VariableName "level" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType SubSystem Name "PIPA NAIK" Ports [1, 1] Position [480, 119, 550, 161] 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 "100" Block { BlockType Inport Name "In1" Position [110, 103, 140, 117] } Block { BlockType TransportDelay Name "Transport\nDelay" Position [225, 95, 255, 125] DelayTime "3 % delay dalam pipa naik dalam seconds" } 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 [495, 204, 595, 246] 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 "In1" Position [110, 103, 140, 117] } Block { BlockType Outport Name "Out1" Position [360, 103, 390, 117] } Line { SrcBlock "In1" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Constant Name "PLN\n1 = menyala\n0 = padam" Position [155, 125, 185, 155] } Block { BlockType SubSystem Name "POMPA" Ports [3, 1] Position [320, 119, 420, 161] TreatAsAtomicUnit off System { Name "POMPA" 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 "Dari Pelampung" Position [35, 28, 65, 42] } Block { BlockType Inport Name "Dari Jala-jala PLN" Position [45, 103, 75, 117] Port "2" } Block { BlockType Inport Name "Dari Sumur" Position [40, 168, 70, 182] Port "3" } Block { BlockType Product Name "Product" Ports [2, 1] Position [195, 26, 240, 59] InputSameDT off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [190, 126, 235, 159] InputSameDT off } Block { BlockType Product Name "Product2" Ports [2, 1] Position [290, 91, 335, 124] InputSameDT off } Block { BlockType Relay Name "Relay" Position [125, 20, 155, 50] OnSwitchValue "0.5" OffSwitchValue "0.1" } Block { BlockType Outport Name "Out1" Position [405, 103, 435, 117] } Line { SrcBlock "Dari Pelampung" SrcPort 1 Points [35, 0] Branch { DstBlock "Relay" DstPort 1 } Branch { Points [0, 100] DstBlock "Product1" DstPort 1 } } Line { SrcBlock "Relay" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Dari Jala-jala PLN" SrcPort 1 Points [90, 0; 0, -60] DstBlock "Product" DstPort 2 } Line { SrcBlock "Dari Sumur" SrcPort 1 Points [15, 0; 0, -25] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 Points [15, 0; 0, 55] DstBlock "Product2" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [25, 0; 0, -30] DstBlock "Product2" DstPort 2 } Annotation { Name "0-1" Position [93, 22] } Annotation { Name "1/0" Position [172, 23] } } } Block { BlockType Constant Name "SUMUR" Position [145, 234, 275, 266] Value "[1100/(40*60)] % debit pompa 1100 liter dalam 4" "0 menit" } Block { BlockType SubSystem Name "TANGKI AIR" Ports [2, 2] Position [690, 125, 900, 245] TreatAsAtomicUnit off System { Name "TANGKI AIR" Location [499, 250, 997, 550] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Debit Air\nDari Pompa\n[liter/sec]" Position [30, 43, 60, 57] } Block { BlockType Inport Name "Debit Air\nKe luar lewat\nKeran\n[liter/sec" "]" Position [35, 158, 65, 172] Port "2" } Block { BlockType Saturate Name "Batas Level" Position [375, 95, 405, 125] UpperLimit "1.2 % Tinggi tangki air [meter]" LowerLimit "0 % Batas Minimum 0 m, tangki kosong" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [155, 95, 185, 125] } Block { BlockType SubSystem Name "PELAMPUNG" Ports [1, 1] Position [260, 13, 385, 57] TreatAsAtomicUnit off System { Name "PELAMPUNG" 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 "level" Position [110, 103, 140, 117] } Block { BlockType MATLABFcn Name "MATLAB Fcn" Position [210, 95, 270, 125] MATLABFcn "pelampung2011" } Block { BlockType Outport Name "Isyarat\nke\nPompa" Position [360, 103, 390, 117] } Line { SrcBlock "level" SrcPort 1 DstBlock "MATLAB Fcn" DstPort 1 } Line { SrcBlock "MATLAB Fcn" SrcPort 1 DstBlock "Isyarat\nke\nPompa" DstPort 1 } Annotation { Name "0-1" Position [305, 97] } } } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [110, 100, 130, 120] ShowName off IconShape "round" Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType TransferFcn Name "Volume to Level" Position [210, 92, 335, 128] Denominator "[1000*pi*((0.8/2)^2)] % Volume dalam [liter" "], y dalam [m]" } Block { BlockType Outport Name "isyarat" Position [435, 28, 465, 42] } Block { BlockType Outport Name "level [m]" Position [440, 103, 470, 117] Port "2" } Line { SrcBlock "PELAMPUNG" SrcPort 1 DstBlock "isyarat" DstPort 1 } Line { SrcBlock "Batas Level" SrcPort 1 DstBlock "level [m]" DstPort 1 } Line { SrcBlock "Debit Air\nDari Pompa\n[liter/sec]" SrcPort 1 Points [55, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Debit Air\nKe luar lewat\nKeran\n[liter/sec" "]" SrcPort 1 Points [50, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Volume to Level" DstPort 1 } Line { SrcBlock "Volume to Level" SrcPort 1 Points [10, 0] Branch { DstBlock "Batas Level" DstPort 1 } Branch { Points [0, -35; -105, 0] DstBlock "PELAMPUNG" DstPort 1 } } Annotation { Name "Volume air [liter]" Position [221, 83] } Annotation { Name "1-0" Position [402, 24] } } } Block { BlockType ToWorkspace Name "Time Generator" Position [405, 20, 465, 50] VariableName "time" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType TransferFcn Name "Time lag" Position [590, 122, 640, 158] Denominator "[0.5 1] % lagging 0.5 second time constant" } Block { BlockType TransportDelay Name "Transport\nDelay" Position [440, 80, 470, 110] Orientation "left" DelayTime "3 % delay isyarat dari pelampung" } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Time Generator" DstPort 1 } Line { SrcBlock "POMPA" SrcPort 1 DstBlock "PIPA NAIK" DstPort 1 } Line { SrcBlock "PIPA NAIK" SrcPort 1 DstBlock "Time lag" DstPort 1 } Line { SrcBlock "KERAN AIR" SrcPort 1 DstBlock "PIPA TURUN" DstPort 1 } Line { SrcBlock "PIPA TURUN" SrcPort 1 Points [55, 0; 0, -10] DstBlock "TANGKI AIR" DstPort 2 } Line { SrcBlock "TANGKI AIR" SrcPort 2 DstBlock "Ketinggian air [m]" DstPort 1 } Line { SrcBlock "TANGKI AIR" SrcPort 1 Points [20, 0; 0, -60] DstBlock "Transport\nDelay" DstPort 1 } Line { SrcBlock "PLN\n1 = menyala\n0 = padam" SrcPort 1 DstBlock "POMPA" DstPort 2 } Line { SrcBlock "SUMUR" SrcPort 1 Points [10, 0; 0, -95] DstBlock "POMPA" DstPort 3 } Line { SrcBlock "Transport\nDelay" SrcPort 1 Points [-140, 0; 0, 30] DstBlock "POMPA" DstPort 1 } Line { SrcBlock "Time lag" SrcPort 1 Points [10, 0] Branch { Points [0, 15] DstBlock "TANGKI AIR" DstPort 1 } Branch { Points [0, -80] DstBlock "Debit air masuk [liter/second] " DstPort 1 } } Annotation { Name "lewat aliran air pada pipa naik [0/1]" Position [629, 86] } } }