Model { Name "simmotor" 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 "Tue Jan 10 11:22:41 2006" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "WinXp" ModifiedDateFormat "%" LastModifiedDate "Thu Feb 16 12:36:08 2006" 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 "ode4" SolverMode "Auto" StartTime "0.0" StopTime "0.02" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "0.000001" 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 Display Format "short" Decimation "10" Floating off SampleTime "-1" } 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 Mux Inputs "4" DisplayOption "none" } 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 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 "simmotor" Location [2, 93, 798, 576] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType ToWorkspace Name "Arus Jangkar" Position [525, 335, 585, 365] VariableName "Ia" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Display Name "Display" Ports [1] Position [655, 235, 745, 265] Decimation "1" } Block { BlockType Gain Name "Gain" Position [280, 184, 330, 216] Orientation "left" NamePlacement "alternate" Gain "0.903" } Block { BlockType Gain Name "Gain1" Position [280, 88, 335, 122] Gain "0.78" } Block { BlockType ToWorkspace Name "Harga RMS" Position [670, 295, 730, 325] VariableName "Iarms" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType SubSystem Name "RMSmeter" Ports [1, 1] Position [510, 229, 610, 271] TreatAsAtomicUnit off System { Name "RMSmeter" Location [222, 192, 728, 554] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [30, 103, 60, 117] } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [190, 175, 220, 205] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [185, 100, 215, 130] } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [265, 96, 270, 134] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType MATLABFcn Name "Perata Akar" Position [290, 100, 350, 130] MATLABFcn "PerataAkar" } Block { BlockType Product Name "Square" Ports [2, 1] Position [110, 96, 155, 129] InputSameDT off } Block { BlockType Step Name "Step" Position [120, 175, 150, 205] Time "0" SampleTime "0" } Block { BlockType ToWorkspace Name "TIMER" Position [300, 175, 360, 205] VariableName "time" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType TransferFcn Name "Transfer Fcn" Position [375, 97, 425, 133] Denominator "[0.01 1]" } Block { BlockType Outport Name "Out1" Position [455, 108, 485, 122] } Line { SrcBlock "Perata Akar" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { SrcBlock "Square" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Step" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [10, 0] Branch { Points [0, -65] DstBlock "Mux" DstPort 2 } Branch { DstBlock "TIMER" DstPort 1 } } Line { SrcBlock "Integrator1" SrcPort 1 Points [20, 0; 0, -10] DstBlock "Mux" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 Points [15, 0] Branch { Points [0, -5] DstBlock "Square" DstPort 1 } Branch { Points [0, 10] DstBlock "Square" DstPort 2 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Perata Akar" DstPort 1 } Line { SrcBlock "Transfer Fcn" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Scope Name "Scope" Ports [1] Position [605, 14, 635, 46] Location [188, 355, 512, 594] Open on NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } DataFormat "StructureWithTime" } Block { BlockType Scope Name "Scope1" Ports [1] Position [310, 14, 340, 46] Location [188, 355, 512, 594] Open on NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } SaveName "ScopeData1" DataFormat "StructureWithTime" } Block { BlockType Step Name "Step" Position [40, 90, 70, 120] Time "0.000000001" After "240" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [95, 85, 135, 125] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType TransferFcn Name "Transfer Fcn" Position [165, 86, 250, 124] Denominator "[0.0067 0.20]" } Block { BlockType TransferFcn Name "Transfer Fcn1" Position [355, 87, 445, 123] Denominator "[0.028 0.055]" } Line { SrcBlock "Step" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { SrcBlock "Transfer Fcn" SrcPort 1 Points [5, 0] Branch { DstBlock "Gain1" DstPort 1 } Branch { Points [0, -75] DstBlock "Scope1" DstPort 1 } Branch { Points [0, 145; 145, 0] Branch { DstBlock "RMSmeter" DstPort 1 } Branch { Points [0, 100] DstBlock "Arus Jangkar" DstPort 1 } } } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Transfer Fcn1" DstPort 1 } Line { SrcBlock "Transfer Fcn1" SrcPort 1 Points [0, 0] Branch { Points [5, 0; 0, 95] DstBlock "Gain" DstPort 1 } Branch { Points [0, -75] DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 Points [-160, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "RMSmeter" SrcPort 1 Points [0, 0; 10, 0] Branch { DstBlock "Display" DstPort 1 } Branch { Points [0, 60] DstBlock "Harga RMS" DstPort 1 } } Annotation { Position [194, 94] } } }