Model { Name "level_control" 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 Nov 16 16:25:00 2009" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Administrator" ModifiedDateFormat "%" LastModifiedDate "Mon Nov 30 20:21:42 2009" 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.0" 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 Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on } Block { BlockType Scope Floating off ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } 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" } } 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 "level_control" Location [2, 82, 773, 559] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "156" ReportName "simulink-default.rpt" Block { BlockType Constant Name "Constant" Position [35, 25, 65, 55] } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [125, 25, 155, 55] } Block { BlockType ToWorkspace Name "Katup Manual" Position [210, 75, 270, 105] VariableName "katupM" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Katup Otomatis" Position [210, 120, 270, 150] VariableName "katupO" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType SubSystem Name "Kendalian LEVEL" Ports [3, 2] Position [225, 162, 390, 298] TreatAsAtomicUnit off System { Name "Kendalian LEVEL" Location [65, 83, 666, 475] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Katup Manual" Position [30, 68, 60, 82] } Block { BlockType Inport Name "Katup Otomatis" Position [30, 143, 60, 157] Port "2" } Block { BlockType Inport Name "Pompa" Position [35, 218, 65, 232] Port "3" } Block { BlockType TransferFcn Name "1/tau" Position [595, 160, 620, 200] Denominator "[1.5]" } Block { BlockType Saturate Name "Batas Level 0 - 300 mm" Position [475, 95, 505, 125] UpperLimit "300" LowerLimit "0" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [645, 165, 675, 195] InitialCondition "100" } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [385, 95, 415, 125] InitialCondition "100" } Block { BlockType TransferFcn Name "Katup Manual1" Position [190, 56, 275, 94] Numerator "[0.7*10^7]" Denominator "[100*36*5000]" } Block { BlockType TransferFcn Name "Katup Oto" Position [190, 131, 275, 169] Numerator "[0.7*10^7]" Denominator "[5*36*5000]" } Block { BlockType MATLABFcn Name "MATLAB Fcn" Position [420, 270, 480, 300] Orientation "left" MATLABFcn "batas_pompa" } Block { BlockType TransferFcn Name "Pompa1" Position [190, 206, 245, 244] Numerator "[8*10^3]" Denominator "[5*300]" } Block { BlockType Product Name "Product" Ports [2, 1] Position [305, 176, 350, 209] InputSameDT off } Block { BlockType TransferFcn Name "SENSOR" Position [705, 162, 745, 198] Numerator "[5]" Denominator "[300]" } Block { BlockType Scope Name "Scope" Ports [1] Position [170, 269, 200, 301] Orientation "left" Location [188, 355, 512, 594] Open on NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } DataFormat "StructureWithTime" } Block { BlockType Scope Name "Scope2" Ports [1] Position [415, 179, 445, 211] Location [95, 149, 419, 388] Open on NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } SaveName "ScopeData2" DataFormat "StructureWithTime" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [550, 170, 570, 190] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [3, 1] Position [320, 100, 340, 120] ShowName off IconShape "round" Inputs "--+" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType TransferFcn Name "Transfer Fcn" Position [80, 57, 140, 93] Denominator "[0.5 1]" } Block { BlockType TransferFcn Name "Transfer Fcn1" Position [90, 132, 150, 168] Denominator "[0.2 1]" } Block { BlockType TransferFcn Name "Transfer Fcn2" Position [95, 207, 155, 243] Denominator "[2 1]" } Block { BlockType TransferFcn Name "Transfer Fcn3" Position [300, 267, 360, 303] Orientation "left" Denominator "[0.8 1]" } Block { BlockType Outport Name "LEVEL" Position [790, 103, 820, 117] } Block { BlockType Outport Name "LT output" Position [780, 173, 810, 187] Port "2" } Line { SrcBlock "Batas Level 0 - 300 mm" SrcPort 1 Points [15, 0] Branch { Points [0, 0; 0, 70] Branch { Points [0, 0] DstBlock "Sum" DstPort 1 } Branch { Points [0, 105] DstBlock "MATLAB Fcn" DstPort 1 } } Branch { DstBlock "LEVEL" DstPort 1 } } Line { SrcBlock "SENSOR" SrcPort 1 DstBlock "LT output" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "1/tau" DstPort 1 } Line { SrcBlock "1/tau" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [0, 0; 5, 0] Branch { DstBlock "SENSOR" DstPort 1 } Branch { Points [0, 50; -125, 0] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "Katup Manual" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { SrcBlock "Katup Otomatis" SrcPort 1 DstBlock "Transfer Fcn1" DstPort 1 } Line { SrcBlock "Transfer Fcn" SrcPort 1 DstBlock "Katup Manual1" DstPort 1 } Line { SrcBlock "Transfer Fcn1" SrcPort 1 DstBlock "Katup Oto" DstPort 1 } Line { SrcBlock "Katup Manual1" SrcPort 1 Points [50, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Katup Oto" SrcPort 1 Points [10, 0; 0, -40] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 DstBlock "Batas Level 0 - 300 mm" DstPort 1 } Line { SrcBlock "MATLAB Fcn" SrcPort 1 DstBlock "Transfer Fcn3" DstPort 1 } Line { SrcBlock "Pompa" SrcPort 1 DstBlock "Transfer Fcn2" DstPort 1 } Line { SrcBlock "Transfer Fcn2" SrcPort 1 DstBlock "Pompa1" DstPort 1 } Line { SrcBlock "Pompa1" SrcPort 1 Points [25, 0; 0, -40] DstBlock "Product" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 Points [5, 0] Branch { Points [0, -60] DstBlock "Sum1" DstPort 3 } Branch { DstBlock "Scope2" DstPort 1 } } Line { SrcBlock "Transfer Fcn3" SrcPort 1 Points [-10, 0] Branch { DstBlock "Scope" DstPort 1 } Branch { Points [0, -85] DstBlock "Product" DstPort 2 } } Annotation { Name "Waktu Tunda Sensor" Position [621, 149] } } } Block { BlockType Scope Name "Scope" Ports [1] Position [445, 179, 475, 211] Location [322, 172, 646, 411] Open on NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } SaveName "ScopeData3" DataFormat "StructureWithTime" } Block { BlockType SubSystem Name "Sumber Isyarat MASUKAN" Ports [0, 3] Position [15, 189, 130, 271] TreatAsAtomicUnit off System { Name "Sumber Isyarat MASUKAN" Location [28, 144, 509, 427] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "156" Block { BlockType Step Name "Step" Position [205, 100, 235, 130] Time "4" After "5" SampleTime "0" } Block { BlockType Step Name "Step1" Position [205, 145, 235, 175] Time "8" After "-5" SampleTime "0" } Block { BlockType Step Name "Step2" Position [315, 175, 345, 205] Time "6" After "5" SampleTime "0" } Block { BlockType Step Name "Step3" Position [235, 25, 265, 55] Time "25" After "100" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [265, 105, 285, 125] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Outport Name "Katup Manual" Position [395, 33, 425, 47] } Block { BlockType Outport Name "katup Otomatis" Position [400, 133, 430, 147] Port "2" } Block { BlockType Outport Name "Pompa" Position [410, 183, 440, 197] Port "3" } Line { SrcBlock "Step3" SrcPort 1 DstBlock "Katup Manual" DstPort 1 } Line { SrcBlock "Step" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [45, 0; 0, 25] DstBlock "katup Otomatis" DstPort 1 } Line { SrcBlock "Step1" SrcPort 1 Points [35, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Step2" SrcPort 1 DstBlock "Pompa" DstPort 1 } } } Block { BlockType ToWorkspace Name "To Workspace" Position [195, 25, 255, 55] VariableName "time" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace1" Position [435, 80, 495, 110] VariableName "level" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Yang terukur oleh LT" Position [450, 250, 510, 280] VariableName "LT" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "pompa" Position [155, 295, 215, 325] VariableName "pompa" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "To Workspace" DstPort 1 } Line { SrcBlock "Sumber Isyarat MASUKAN" SrcPort 1 Points [20, 0; 0, -20] Branch { DstBlock "Kendalian LEVEL" DstPort 1 } Branch { Points [0, -95] DstBlock "Katup Manual" DstPort 1 } } Line { SrcBlock "Sumber Isyarat MASUKAN" SrcPort 2 Points [40, 0] Branch { DstBlock "Kendalian LEVEL" DstPort 2 } Branch { Points [0, -95] DstBlock "Katup Otomatis" DstPort 1 } } Line { SrcBlock "Kendalian LEVEL" SrcPort 1 Points [15, 0] Branch { DstBlock "Scope" DstPort 1 } Branch { Points [0, -100] DstBlock "To Workspace1" DstPort 1 } } Line { SrcBlock "Kendalian LEVEL" SrcPort 2 DstBlock "Yang terukur oleh LT" DstPort 1 } Line { SrcBlock "Sumber Isyarat MASUKAN" SrcPort 3 Points [5, 0] Branch { Points [30, 0; 0, 20] DstBlock "Kendalian LEVEL" DstPort 3 } Branch { DstBlock "pompa" DstPort 1 } } Annotation { Name "0 - 100%" Position [188, 176] } Annotation { Name "0 - 5 V" Position [188, 216] } Annotation { Name "0 - 5 V" Position [188, 261] } Annotation { Name "0 - 5 V" Position [423, 251] } Annotation { Name "0 - h mm" Position [416, 183] } } }