Model { Name "Arctan" Version 6.3 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.19" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "windows-1252" PostLoadFcn ",try, rti_mdl_postloadfcn(bdroot, 'UpdateModel', 24" "0, 'rti1103'); catch, disp(lasterr); end, " SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Thu Jan 22 13:59:11 2009" Creator "admin" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Ilski" ModifiedDateFormat "%" LastModifiedDate "Tue May 19 18:33:08 2009" ModelVersionFormat "1.%" ConfigurationManager "None" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" 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 off StrictBusMsg "Warning" ProdHWDeviceType "Specified" ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.1.0" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.1.0" StartTime "0.0" StopTime "20" AbsTol "auto" FixedStep "0.001" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" RelTol "1e-3" SolverMode "Auto" Solver "ode1" SolverName "ode1" ZeroCrossControl "UseLocalSettings" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.1.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Array { Type "Cell" Dimension 5 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "InitFltsAndDblsToZero" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } Version "1.1.0" BlockReduction off BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage off BufferReuse off EnforceIntegerDowncast on ExpressionFolding off FoldNonRolledExpr on LocalBlockOutputs off ParameterPooling on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on } Simulink.DebuggingCC { $ObjectID 5 Version "1.1.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "UseLocalSettings" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "error" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" } Simulink.HardwareCC { $ObjectID 6 Version "1.1.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Zero" ProdEndianess "BigEndian" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "Specified" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Zero" TargetEndianess "BigEndian" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.1.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Array { Type "Cell" Dimension 1 Cell "IncludeHyperlinkInReport" PropName "DisabledProps" } Version "1.1.0" SystemTargetFile "rti1005.tlc" GenCodeOnly off MakeCommand "make_rti" TemplateMakefile "rti1005.tmf" Description " dSPACE DS1005 Hardware Platform" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ProcessScript "rti1005_make_rtw_hook" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Array { Type "Cell" Dimension 9 Cell "IgnoreCustomStorageClasses" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" PropName "DisabledProps" } Version "1.1.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off PrefixModelToSubsysFcnNames on CustomSymbolStr "$R$N$M" MangleLength 1 DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off } Simulink.STFCustomTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Array { Type "Cell" Dimension 16 Cell "TimeScaleFactor" Cell "CCompilerOptimizationOpts" Cell "BoardName" Cell "NetworkClient" Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" PropName "DisabledProps" } Version "1.1.0" TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off IsPILTarget off ModelReferenceCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on SystemTargetFile "rti1005.tlc" DialogCategory 0 Array { Type "Handle" Dimension 1 Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 11 Array { Type "Cell" Dimension 12 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" PropName "DisabledProps" } Version "1.1.0" TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off IsPILTarget off ModelReferenceCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "rti_comm" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } CustomProperty { DataType "RTWOptions_EnumType_c__dspace_matlab_" "rti1103_tlc_rti1005_InitialSimState" EnumStrPairs { Value 0 String "RUN" Value 1 String "PAUSE" Value 2 String "STOP" } Name "InitialSimState" Value "RUN" } CustomProperty { DataType "RTWOptions_EnumType_c__dspace_matlab_" "rti1103_tlc_rti1005_ExecutionMode" EnumStrPairs { Value 0 String "real-time" Value 1 String "time-scaled" Value 2 String "as fast as possible" } Name "ExecutionMode" Value "real-time" } CustomProperty { DataType "string" Name "ExecutionModeNonUI" Value "RTSIM" } CustomProperty { DataType "string" Name "TimeScaleFactor" Value "1.0" } CustomProperty { DataType "string" Name "TimeScaleFactorNonUI" Value "OPTION_DISABLED" } CustomProperty { DataType "RTWOptions_EnumType_c__dspace_matlab_" "rti1103_tlc_rti1005_AssertionMode" EnumStrPairs { Value 0 String "OFF" Value 1 String "WARN" Value 2 String "STOP" } Name "AssertionMode" Value "OFF" } CustomProperty { DataType "slbool" Name "TAStimulusEngineEnable" Value off } CustomProperty { DataType "RTWOptions_EnumType_c__dspace_matlab_" "rti1103_tlc_rti1005_CCompilerOptimizationOptsPopup" EnumStrPairs { Value 0 String "Default (-O5 -D_INLINE)" Value 1 String "User-defined" } Name "CCompilerOptimizationOptsPopup" Value "Default (-O5 -D_INLINE)" } CustomProperty { DataType "string" Name "CCompilerOptimizationOptsNonUI" Value "USE_DEFAULT" } CustomProperty { DataType "slbool" Name "EnableDataSetStorage" Value off } CustomProperty { DataType "string" Name "EnableDataSetStorageNonUI" Value "OFF" } CustomProperty { DataType "slbool" Name "LoadAfterBuild" Value on } CustomProperty { DataType "slbool" Name "LoadToFlash" Value off } CustomProperty { DataType "string" Name "LoadApplNonUI" Value "ON" } CustomProperty { DataType "RTWOptions_EnumType_c__dspace_matlab_" "rti1103_tlc_rti1005_PlatformSelectionPopup" EnumStrPairs { Value 0 String "Auto" Value 1 String "User-defined (bus)" Value 2 String "User-defined (network)" } Name "PlatformSelectionPopup" Value "Auto" } CustomProperty { DataType "string" Name "BoardNameNonUI" Value "OPTION_DISABLED" } CustomProperty { DataType "string" Name "NetworkClientNonUI" Value "OPTION_DISABLED" } CustomProperty { DataType "slbool" Name "TRCMaskParameters" Value off } CustomProperty { DataType "slbool" Name "TRCGenerateLabels" Value on } CustomProperty { DataType "slbool" Name "TRCGenerateVirtualBlocks" Value on } CustomProperty { DataType "slbool" Name "TRCGenerateStates" Value off } CustomProperty { DataType "slbool" Name "TRCGenerateDerivatives" Value off } CustomProperty { DataType "slbool" Name "TRCApplySubsystemPermissions" Value off } CustomProperty { DataType "slbool" Name "TRCGenerateParamValues" Value off } } PropName "Components" } } PropName "Components" } Name "Configuration" SimulationMode "normal" CurrentDlgPage "Solver" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "arial" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType ActionPort InitializeStates "held" ActionType "unset" } Block { BlockType Clock DisplayTime off } Block { BlockType Constant Value "1" VectorParams1D on OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" SampleTime "inf" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" 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 SampleTime "-1" } Block { BlockType HitCross HitCrossingOffset "0" HitCrossingDirection "either" ShowOutputPort on ZeroCross on SampleTime "-1" } Block { BlockType If NumInputs "1" IfExpression "u1 > 0" ShowElse on ZeroCross on SampleTime "-1" } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Memory X0 "0" InheritSampleTime off LinearizeMemory off StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType Outport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Scope 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 "-1" } Block { BlockType Sin SineType "Time based" TimeSource "Use simulation time" Amplitude "1" Bias "0" Frequency "1" Phase "0" Samples "10" Offset "0" SampleTime "-1" VectorParams1D on } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" PermitHierarchicalResolution "All" SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" InputSameDT on OutDataTypeMode "Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" } Block { BlockType Trigonometry Operator "sin" OutputSignalType "auto" SampleTime "-1" } } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "arial" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "arial" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "Arctan" Location [2, 82, 1270, 776] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Scope Name "Scope2" Ports [3] Position [750, 358, 780, 392] Floating off Location [1277, 48, 2557, 1019] Open on NumInputPorts "3" List { ListType AxesTitles axes1 "%" axes2 "%" axes3 "%" } TimeRange "5.182119205298012" YMin "0.6317073170731706~-1~0" YMax "1~1~3.5" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Sin Name "Sine Wave\nFunction" Ports [0, 1] Position [225, 190, 255, 220] SineType "Time based" SampleTime "0" Port { PortNumber 1 Name "Sinus" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType SubSystem Name "Subsystem1" Ports [1, 2] Position [465, 218, 540, 347] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off Port { PortNumber 1 Name "atan\n" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "Subsystem1" Location [-21, 81, 1267, 892] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "enable" Position [110, 253, 140, 267] IconDisplay "Port number" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType Clock Name "Clock" Position [25, 210, 45, 230] Decimation "10" } Block { BlockType Constant Name "Constant" Position [655, 310, 685, 340] Orientation "up" Value "0.5*(1-0.0253)" } Block { BlockType Constant Name "Constant1" Position [415, 320, 445, 350] Orientation "up" Value "4*pi" } Block { BlockType Constant Name "Constant2" Position [775, 340, 805, 370] } Block { BlockType Gain Name "Gain" Position [580, 224, 625, 256] Gain "1/pi/(1-0.0253)" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" Position [330, 224, 375, 256] Gain "100" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" Position [720, 225, 750, 255] ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Memory Name "Memory1" Position [80, 205, 110, 235] } Block { BlockType Sin Name "Sine Wave\nFunction" Ports [0, 1] Position [805, 85, 835, 115] SineType "Time based" SampleTime "0" } Block { BlockType SubSystem Name "Subsystem2" Ports [2, 1] Position [190, 199, 270, 281] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Subsystem2" Location [281, 243, 988, 725] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "time" Position [25, 143, 55, 157] IconDisplay "Port number" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType Inport Name "enable" Position [25, 23, 55, 37] Port "2" IconDisplay "Port number" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType Scope Name "Scope3" Ports [3] Position [580, 268, 610, 302] Floating off Location [677, 34, 1275, 886] Open off NumInputPorts "3" List { ListType AxesTitles axes1 "%" axes2 "%" axes3 "%" } YMin "-5~-5~-5" YMax "5~5~5" SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "Subsystem3" Ports [2, 1] Position [175, 14, 240, 76] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Subsystem3" Location [400, 657, 1085, 1150] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [15, 150, 45, 165] Orientation "up" IconDisplay "Port number" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType Inport Name "In2" Position [140, 128, 170, 142] Port "2" IconDisplay "Port number" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType HitCross Name "Hit \nCrossing" Ports [1, 1] Position [55, 30, 85, 60] HitCrossingDirection "either" } Block { BlockType If Name "If" Ports [1, 2] Position [120, 26, 220, 64] IfExpression "u1 ==1" } Block { BlockType SubSystem Name "If Action\nSubsystem" Ports [1, 1, 0, 0, 0, 0, 0, 1] Position [205, 117, 275, 153] TreatAsAtomicUnit on MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "If Action\nSubsystem" Location [342, 471, 840, 771] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [75, 78, 105, 92] IconDisplay "Port number" } Block { BlockType ActionPort Name "Action Port" Position [170, 15, 229, 43] ActionType "then" } Block { BlockType Outport Name "Out1" Position [325, 78, 355, 92] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In1" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Memory Name "Memory" Position [330, 120, 360, 150] } Block { BlockType Outport Name "Out2" Position [415, 128, 445, 142] IconDisplay "Port number" BusOutputAsStruct off OutDataType "fixdt(1,16,0)" OutScaling "[]" } Line { SrcBlock "If Action\nSubsystem" SrcPort 1 DstBlock "Memory" DstPort 1 } Line { SrcBlock "If" SrcPort 1 Points [15, 0] DstBlock "If Action\nSubsystem" DstPort ifaction } Line { SrcBlock "In1" SrcPort 1 Points [0, -100] DstBlock "Hit \nCrossing" DstPort 1 } Line { SrcBlock "In2" SrcPort 1 DstBlock "If Action\nSubsystem" DstPort 1 } Line { SrcBlock "Hit \nCrossing" SrcPort 1 DstBlock "If" DstPort 1 } Line { SrcBlock "Memory" SrcPort 1 DstBlock "Out2" DstPort 1 } } } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [380, 200, 400, 220] ShowName off IconShape "round" Inputs "-|+" InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Out1" Position [460, 203, 490, 217] IconDisplay "Port number" BusOutputAsStruct off OutDataType "fixdt(1,16,0)" OutScaling "[]" } Line { SrcBlock "time" SrcPort 1 Points [80, 0] Branch { Points [0, -90] DstBlock "Subsystem3" DstPort 2 } Branch { Points [0, 110; 250, 0] Branch { DstBlock "Sum2" DstPort 2 } Branch { Labels [1, 0] Points [0, 25] DstBlock "Scope3" DstPort 2 } } } Line { SrcBlock "Subsystem3" SrcPort 1 Points [145, 0; 0, 120] Branch { DstBlock "Sum2" DstPort 1 } Branch { Points [130, 0; 0, 110] DstBlock "Scope3" DstPort 1 } } Line { SrcBlock "Sum2" SrcPort 1 Points [20, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, 85] DstBlock "Scope3" DstPort 3 } } Line { SrcBlock "enable" SrcPort 1 DstBlock "Subsystem3" DstPort 1 } } } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [420, 230, 440, 250] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [660, 230, 680, 250] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [810, 275, 830, 295] ShowName off IconShape "round" Inputs "|-+" InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch" Position [1170, 156, 1210, 194] Threshold "0.9" InputSameDT off SaturateOnIntegerOverflow off SampleTime "0" } Block { BlockType Trigonometry Name "Trigonometric\nFunction" Ports [1, 1] Position [500, 225, 530, 255] Operator "atan" } Block { BlockType Outport Name "Out1" Position [1255, 168, 1285, 182] IconDisplay "Port number" BusOutputAsStruct off OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType Outport Name "Out2" Position [310, 313, 340, 327] Port "2" IconDisplay "Port number" BusOutputAsStruct off OutDataType "fixdt(1,16,0)" OutScaling "[]" } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Trigonometric\nFunction" DstPort 1 } Line { SrcBlock "Trigonometric\nFunction" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Subsystem2" SrcPort 1 Points [20, 0] Branch { DstBlock "Out2" DstPort 1 } Branch { DstBlock "Gain1" DstPort 1 } } Line { SrcBlock "enable" SrcPort 1 DstBlock "Subsystem2" DstPort 2 } Line { SrcBlock "Clock" SrcPort 1 DstBlock "Memory1" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 Points [20, 0] Branch { Points [0, 45] DstBlock "Sum2" DstPort 1 } Branch { Points [0, -75; 140, 0] Branch { DstBlock "Switch" DstPort 1 } Branch { Points [0, 10] DstBlock "Switch" DstPort 2 } } } Line { SrcBlock "Constant2" SrcPort 1 Points [10, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Memory1" SrcPort 1 DstBlock "Subsystem2" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 Points [320, 0] DstBlock "Switch" DstPort 3 } Line { SrcBlock "Switch" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Line { Name "atan\n" Labels [0, 0] SrcBlock "Subsystem1" SrcPort 1 Points [100, 0; 0, 115] DstBlock "Scope2" DstPort 1 } Line { SrcBlock "Subsystem1" SrcPort 2 Points [80, 0; 0, 70] DstBlock "Scope2" DstPort 3 } Line { Name "Sinus" Labels [0, 0] SrcBlock "Sine Wave\nFunction" SrcPort 1 Points [80, 0; 0, 80] Branch { Points [0, 90] DstBlock "Scope2" DstPort 2 } Branch { Labels [0, 0] DstBlock "Subsystem1" DstPort 1 } } } } # Finite State Machines # # Stateflow Version 6.2 (R14SP2) dated Aug 4 2005, 10:13:39 # # Stateflow { machine { id 1 name "Arctan" created "22-Jan-2009 15:00:38" isLibrary 0 firstTarget 2 sfVersion 62014000 } target { id 2 name "sfun" description "Default Simulink S-Function Target." machine 1 linkNode [1 0 0] } }