Model { Name "expendulo_R12B" 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 May 24 13:03:19 2004" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Administrador" ModifiedDateFormat "%" LastModifiedDate "Thu Mar 04 08:42:24 2004" 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 "ode23" SolverMode "Auto" StartTime "0.0" StopTime "10" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-8" 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 RTWOptions "-aEnforceIntegerDowncast=1 -aFoldNonRolledExpr=1 -a" "InlineInvariantSignals=1 -aInlineParameters=0 -aLocalBlockOutputs=1 -aRollThr" "eshold=5 -aZeroInternalMemoryAtStartup=1 -aZeroExternalMemoryAtStartup=1 -aIn" "itFltsAndDblsToZero=1 -aGenerateReport=0 -aGenCodeOnly=0 -aRTWVerbose=1 -aInc" "ludeHyperlinkInReport=0 -aLaunchReport=0 -aForceParamTrailComments=0 -aGenera" "teComments=1 -aIgnoreCustomStorageClasses=1 -aIncHierarchyInIds=0 -aMaxRTWIdL" "en=31 -aShowEliminatedStatements=0 -aPrefixModelToSubsysFcnNames=1 -aIncDataT" "ypeInIds=0 -aInsertBlockDesc=0 -aSimulinkBlockComments=1 -aInlinedPrmAccess=" "\"Literals\" -aSuppressErrorStatus=0 -aModelReferenceCompliant=1 -aSupportNo" "nInlinedSFcns=1 -aSupportContinuousTime=1 -aSupportComplex=1 -aSupportNonFini" "te=1 -aSupportAbsoluteTime=1 -aTargetFcnLib=\"ansi_tfl_tmw.mat\" -aMultiInsta" "nceERTCode=0 -aLogVarNameModifier=\"rt_\" -aIsPILTarget=0 -aCombineOutputUpda" "teFcns=0 -aGenerateASAP2=0 -aGenerateSampleERTMain=0 -aGenerateFullHeader=1 -" "aUtilityFuncGeneration=\"Auto\" -aIncludeFileDelimiter=\"Auto\" -aIncludeMdlT" "erminateFcn=1 -aPurelyIntegerCode=0 -aERTCustomFileBanners=0 -aRTWCAPIStates=" "0 -aRTWCAPIParams=0 -aRTWCAPISignals=0 -aMatFileLogging=1 -aGenFloatMathFcnCa" "lls=\"ANSI_C\" -aExtModeMexFile=\"ext_comm\" -aExtModeTransport=0 -aExtModeSt" "aticAllocSize=1000000 -aExtModeTesting=0 -aExtModeStaticAlloc=0 -aExtMode=0 " 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 Fcn Expr "sin(u[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 Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" ZeroCross on } Block { BlockType Mux Inputs "4" DisplayOption "none" } 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 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 } } 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 "expendulo_R12B" Location [2, 83, 936, 545] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "94" ReportName "simulink-default.rpt" Block { BlockType Fcn Name "\n" Position [735, 365, 825, 405] Orientation "left" NamePlacement "alternate" Expr "g/L*sin(u)" } Block { BlockType Scope Name " erro" Ports [1] Position [225, 159, 255, 191] Location [188, 365, 512, 604] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData2" DataFormat "StructureWithTime" } Block { BlockType Scope Name " v" Ports [1] Position [370, 164, 400, 196] Location [188, 365, 512, 604] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData4" DataFormat "StructureWithTime" } Block { BlockType Gain Name "Gai" Position [695, 228, 725, 262] Orientation "left" NamePlacement "alternate" ShowName off Gain "b/(m*L^2)" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [340, 265, 350, 325] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Scope teta" Ports [1] Position [910, 279, 940, 311] Location [195, 225, 848, 627] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } DataFormat "StructureWithTime" } Block { BlockType Scope Name "Scope w" Ports [1] Position [910, 209, 940, 241] Location [188, 365, 512, 604] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData1" DataFormat "StructureWithTime" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [640, 285, 660, 305] ShowName off IconShape "round" Inputs "-+-" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [150, 275, 170, 295] ShowName off IconShape "round" Inputs "|-+" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [295, 275, 315, 295] ShowName off IconShape "round" Inputs "|++" } Block { BlockType Integrator Name "in teta ponto out teta" Ports [1, 1] Position [815, 280, 845, 310] InitialCondition "pi/2" } Block { BlockType Integrator Name "in w ponto out w" Ports [1, 1] Position [710, 280, 740, 310] } Block { BlockType Gain Name "k1*erro" Position [220, 270, 250, 300] Gain "-K(1)" } Block { BlockType Gain Name "k2*w" Position [220, 360, 250, 390] Gain "-K(2)" } Block { BlockType Constant Name "posição desejada" Position [70, 270, 100, 300] Value "-pi/2" } Block { BlockType Scope Name "u" Ports [1] Position [635, 169, 665, 201] Location [188, 365, 512, 604] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData3" DataFormat "StructureWithTime" } Block { BlockType Fcn Name "u(v,teta)" Position [380, 269, 585, 321] Expr "u[1] + g/L*sin(u[2])" } Line { SrcBlock "Sum1" SrcPort 1 Points [15, 0] Branch { Points [5, 0; 0, -110] DstBlock " erro" DstPort 1 } Branch { DstBlock "k1*erro" DstPort 1 } } Line { SrcBlock "posição desejada" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 Points [5, 0] Branch { DstBlock "Mux" DstPort 1 } Branch { Points [0, -105] DstBlock " v" DstPort 1 } } Line { SrcBlock "in teta ponto out teta" SrcPort 1 Points [35, 0; 0, 10] Branch { Points [0, -10] DstBlock "Scope teta" DstPort 1 } Branch { Points [0, 80] Branch { DstBlock "\n" DstPort 1 } Branch { Points [0, 90; -560, 0; 0, -50] Branch { Points [-165, 0] DstBlock "Sum1" DstPort 2 } Branch { DstBlock "Mux" DstPort 2 } } } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "in w ponto out w" DstPort 1 } Line { SrcBlock "u(v,teta)" SrcPort 1 Points [20, 0] Branch { Points [5, 0; 0, -110] DstBlock "u" DstPort 1 } Branch { Points [15, 0; 0, -5] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "in w ponto out w" SrcPort 1 Points [40, 0] Branch { DstBlock "in teta ponto out teta" DstPort 1 } Branch { Points [0, -55; 0, -15] Branch { Labels [1, 0] DstBlock "Scope w" DstPort 1 } Branch { Points [-20, 0] Branch { Points [0, 20] DstBlock "Gai" DstPort 1 } Branch { Points [-585, 0; 0, 145; 25, 0] DstBlock "k2*w" DstPort 1 } } } } Line { Labels [1, 0] SrcBlock "Mux" SrcPort 1 DstBlock "u(v,teta)" DstPort 1 } Line { SrcBlock "k2*w" SrcPort 1 Points [50, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "k1*erro" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "\n" SrcPort 1 Points [-80, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Gai" SrcPort 1 Points [-40, 0] DstBlock "Sum" DstPort 1 } } }