Model { Name "enabsubs" Version 6.2 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.14" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "US-ASCII" 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 on BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Fri Sep 18 11:00:41 1998" Creator "The MathWorks Inc." UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "batserve" ModifiedDateFormat "%" LastModifiedDate "Sat Jan 22 19:08:46 2005" 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 "oneshot" 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 off ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock off BufferReuse on StrictBusMsg "None" ProdHWDeviceType "32-bit Generic" 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 "10" AbsTol "1e-6" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "0.1" MinStep "auto" RelTol "1e-3" SolverMode "SingleTasking" Solver "ode45" SolverName "ode45" 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 "[]" FinalStateName "xFinal" InitialState "[]" LimitDataPoints off MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on 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 off ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnforceIntegerDowncast on ExpressionFolding on FoldNonRolledExpr on LocalBlockOutputs on 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" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" SolverPrmCheckMsg "none" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" 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 "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown on 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 "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" TemplateMakefile "grt_default_tmf" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" 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.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 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_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 "ext_comm" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 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 "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { 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 EnablePort StatesWhenEnabling "held" ShowOutputPort off ZeroCross on } 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 Inport UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" 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" IgnoreLimit off ZeroCross on } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } 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 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 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 ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" FixptAsFi off } Block { BlockType UnitDelay X0 "0" SampleTime "1" StateMustResolveToSignalObject off RTWStateStorageClass "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 "enabsubs" Location [53, 99, 555, 657] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Scope Name "Continuous\nSignals" Ports [1] Position [445, 405, 475, 435] Location [556, 317, 880, 556] Open on NumInputPorts "1" TickLabels "on" List { ListType AxesTitles axes1 "%" } SaveToWorkspace on SaveName "sys2" DataFormat "Structure" } Block { BlockType Scope Name "Discrete \nSignals" Ports [1] Position [445, 150, 475, 180] Location [549, 28, 873, 268] Open on NumInputPorts "1" TickLabels "on" List { ListType AxesTitles axes1 "%" } SaveToWorkspace on SaveName "sys1" DataFormat "Structure" } Block { BlockType SubSystem Name "Enabled Subsystem With Continuous Held States" Ports [0, 2, 1] Position [100, 447, 275, 518] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Enabled Subsystem With Continuous Held States" Location [109, 63, 412, 293] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType EnablePort Name "Enable" Ports [] Position [255, 5, 275, 25] } Block { BlockType Constant Name "Constant3" Position [65, 55, 85, 75] } Block { BlockType Constant Name "Constant4" Position [65, 140, 85, 160] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [140, 48, 175, 82] } Block { BlockType Integrator Name "Integrator2" Ports [1, 1] Position [140, 133, 175, 167] } Block { BlockType Outport Name "Held\nCont.\nOutput" Position [235, 55, 255, 75] IconDisplay "Port number" InitialOutput "0" } Block { BlockType Outport Name "Zeroed\nCont.\nOutput" Position [235, 140, 255, 160] Port "2" IconDisplay "Port number" OutputWhenDisabled "reset" InitialOutput "0" } Line { SrcBlock "Constant3" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 DstBlock "Held\nCont.\nOutput" DstPort 1 } Line { SrcBlock "Constant4" SrcPort 1 DstBlock "Integrator2" DstPort 1 } Line { SrcBlock "Integrator2" SrcPort 1 DstBlock "Zeroed\nCont.\nOutput" DstPort 1 } } } Block { BlockType SubSystem Name "Enabled Subsystem With Continuous Reset States" Ports [0, 2, 1] Position [100, 317, 275, 388] NamePlacement "alternate" TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Enabled Subsystem With Continuous Reset State" "s" Location [39, 43, 331, 291] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType EnablePort Name "Enable" Ports [] Position [255, 5, 275, 25] StatesWhenEnabling "reset" } Block { BlockType Constant Name "Constant3" Position [60, 60, 80, 80] } Block { BlockType Constant Name "Constant4" Position [60, 145, 80, 165] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [135, 53, 170, 87] } Block { BlockType Integrator Name "Integrator2" Ports [1, 1] Position [135, 138, 170, 172] } Block { BlockType Outport Name "Held\nCont.\nOutput" Position [230, 60, 250, 80] IconDisplay "Port number" InitialOutput "0" } Block { BlockType Outport Name "Zeroed\nCont.\nOutput" Position [230, 145, 250, 165] Port "2" IconDisplay "Port number" OutputWhenDisabled "reset" InitialOutput "0" } Line { SrcBlock "Constant3" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 DstBlock "Held\nCont.\nOutput" DstPort 1 } Line { SrcBlock "Constant4" SrcPort 1 DstBlock "Integrator2" DstPort 1 } Line { SrcBlock "Integrator2" SrcPort 1 DstBlock "Zeroed\nCont.\nOutput" DstPort 1 } } } Block { BlockType SubSystem Name "Enabled Subsystem With Discrete Held States" Ports [0, 2, 1] Position [100, 192, 275, 263] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Enabled Subsystem With Discrete Held States" Location [306, 46, 606, 272] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType EnablePort Name "Enable" Ports [] Position [255, 5, 275, 25] } Block { BlockType Constant Name "Constant1" Position [45, 30, 65, 50] } Block { BlockType Constant Name "Constant2" Position [45, 120, 65, 140] } Block { BlockType SubSystem Name "Discrete-Time\nIntegrator1" Ports [1, 1] Position [115, 19, 155, 61] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Discrete-Time Integrator" MaskDescription "Discrete-Time Integrator:" MaskHelp "Implements a zeroth order discrete\\nintegr" "ation using a gain, a sum, and\\na unit delay. Inputs may be scalar\\nor vect" "or.\\n" MaskPromptString "Initial Condition:|Sample Time:" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskVarAliasString "," MaskInitialization "X0=@1;Ts=@2;" MaskDisplay "dpoly(Ts,[1 -1],'z')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "0|.1" MaskTabNameString "," System { Name "Discrete-Time\nIntegrator1" Location [385, 609, 758, 827] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [25, 70, 45, 90] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Gain Name "Gain" Position [80, 61, 110, 99] Gain "Ts" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [150, 63, 180, 127] } Block { BlockType UnitDelay Name "Unit Delay" Position [210, 85, 260, 105] X0 "X0" SampleTime "Ts" } Block { BlockType Outport Name "out_1" Position [320, 85, 340, 105] IconDisplay "Port number" InitialOutput "0" } Line { SrcBlock "Unit Delay" SrcPort 1 Points [20, 0] Branch { DstBlock "out_1" DstPort 1 } Branch { Points [0, 70; -165, 0; 0, -55] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Unit Delay" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType SubSystem Name "Discrete-Time\nIntegrator2" Ports [1, 1] Position [115, 109, 155, 151] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Discrete-Time Integrator" MaskDescription "Discrete-Time Integrator:" MaskHelp "Implements a zeroth order discrete\\nintegr" "ation using a gain, a sum, and\\na unit delay. Inputs may be scalar\\nor vect" "or.\\n" MaskPromptString "Initial Condition:|Sample Time:" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskVarAliasString "," MaskInitialization "X0=@1;Ts=@2;" MaskDisplay "dpoly(Ts,[1 -1],'z')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "0|.1" MaskTabNameString "," System { Name "Discrete-Time\nIntegrator2" Location [385, 609, 758, 827] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [25, 70, 45, 90] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Gain Name "Gain" Position [80, 61, 110, 99] Gain "Ts" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [150, 63, 180, 127] } Block { BlockType UnitDelay Name "Unit Delay" Position [210, 85, 260, 105] X0 "X0" SampleTime "Ts" } Block { BlockType Outport Name "out_1" Position [320, 85, 340, 105] IconDisplay "Port number" InitialOutput "0" } Line { SrcBlock "Unit Delay" SrcPort 1 Points [20, 0] Branch { Points [0, 70; -165, 0; 0, -55] DstBlock "Sum" DstPort 2 } Branch { DstBlock "out_1" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Unit Delay" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType Outport Name "Held\nDiscrete\nOutput" Position [215, 30, 235, 50] IconDisplay "Port number" InitialOutput "0" } Block { BlockType Outport Name "Zeroed\nDiscrete\nOutput" Position [215, 120, 235, 140] Port "2" IconDisplay "Port number" OutputWhenDisabled "reset" InitialOutput "0" } Line { SrcBlock "Discrete-Time\nIntegrator2" SrcPort 1 DstBlock "Zeroed\nDiscrete\nOutput" DstPort 1 } Line { SrcBlock "Constant2" SrcPort 1 DstBlock "Discrete-Time\nIntegrator2" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator1" SrcPort 1 DstBlock "Held\nDiscrete\nOutput" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Discrete-Time\nIntegrator1" DstPort 1 } } } Block { BlockType SubSystem Name "Enabled Subsystem With Discrete Reset States" Ports [0, 2, 1] Position [100, 62, 275, 133] NamePlacement "alternate" TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" System { Name "Enabled Subsystem With Discrete Reset States" Location [160, 44, 461, 260] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType EnablePort Name "Enable" Ports [] Position [255, 5, 275, 25] StatesWhenEnabling "reset" } Block { BlockType Constant Name "Constant1" Position [45, 30, 65, 50] } Block { BlockType Constant Name "Constant2" Position [45, 120, 65, 140] } Block { BlockType SubSystem Name "Discrete-Time\nIntegrator1" Ports [1, 1] Position [115, 19, 155, 61] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Discrete-Time Integrator" MaskDescription "Discrete-Time Integrator:" MaskHelp "Implements a zeroth order discrete\\nintegr" "ation using a gain, a sum, and\\na unit delay. Inputs may be scalar\\nor vect" "or.\\n" MaskPromptString "Initial Condition:|Sample Time:" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskVarAliasString "," MaskInitialization "X0=@1;Ts=@2;" MaskDisplay "dpoly(Ts,[1 -1],'z')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "0|.1" MaskTabNameString "," System { Name "Discrete-Time\nIntegrator1" Location [385, 609, 758, 827] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [25, 70, 45, 90] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Gain Name "Gain" Position [80, 61, 110, 99] Gain "Ts" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [150, 63, 180, 127] } Block { BlockType UnitDelay Name "Unit Delay" Position [210, 85, 260, 105] X0 "X0" SampleTime "Ts" } Block { BlockType Outport Name "out_1" Position [320, 85, 340, 105] IconDisplay "Port number" InitialOutput "0" } Line { SrcBlock "Unit Delay" SrcPort 1 Points [20, 0] Branch { Points [0, 70; -165, 0; 0, -55] DstBlock "Sum" DstPort 2 } Branch { DstBlock "out_1" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Unit Delay" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType SubSystem Name "Discrete-Time\nIntegrator2" Ports [1, 1] Position [115, 109, 155, 151] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskType "Discrete-Time Integrator" MaskDescription "Discrete-Time Integrator:" MaskHelp "Implements a zeroth order discrete\\nintegr" "ation using a gain, a sum, and\\na unit delay. Inputs may be scalar\\nor vect" "or.\\n" MaskPromptString "Initial Condition:|Sample Time:" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskVarAliasString "," MaskInitialization "X0=@1;Ts=@2;" MaskDisplay "dpoly(Ts,[1 -1],'z')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "0|.1" MaskTabNameString "," System { Name "Discrete-Time\nIntegrator2" Location [385, 609, 758, 827] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "in_1" Position [25, 70, 45, 90] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Gain Name "Gain" Position [80, 61, 110, 99] Gain "Ts" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [150, 63, 180, 127] } Block { BlockType UnitDelay Name "Unit Delay" Position [210, 85, 260, 105] X0 "X0" SampleTime "Ts" } Block { BlockType Outport Name "out_1" Position [320, 85, 340, 105] IconDisplay "Port number" InitialOutput "0" } Line { SrcBlock "Unit Delay" SrcPort 1 Points [20, 0] Branch { DstBlock "out_1" DstPort 1 } Branch { Points [0, 70; -165, 0; 0, -55] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Unit Delay" DstPort 1 } Line { SrcBlock "in_1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType Outport Name "Held\nDiscrete\nOutput" Position [215, 30, 235, 50] IconDisplay "Port number" InitialOutput "0" } Block { BlockType Outport Name "Zeroed\nDiscrete\nOutput" Position [215, 120, 235, 140] Port "2" IconDisplay "Port number" OutputWhenDisabled "reset" InitialOutput "0" } Line { SrcBlock "Discrete-Time\nIntegrator2" SrcPort 1 DstBlock "Zeroed\nDiscrete\nOutput" DstPort 1 } Line { SrcBlock "Constant2" SrcPort 1 DstBlock "Discrete-Time\nIntegrator2" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator1" SrcPort 1 DstBlock "Held\nDiscrete\nOutput" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Discrete-Time\nIntegrator1" DstPort 1 } } } Block { BlockType Mux Name "Held States" Ports [4, 1] Position [375, 310, 380, 525] DisplayOption "bar" } Block { BlockType Mux Name "Reset States" Ports [4, 1] Position [375, 48, 380, 277] DisplayOption "bar" } Block { BlockType Sin Name "Sine Wave" Ports [0, 1] Position [80, 143, 110, 167] ShowName off Frequency "1/2*pi" SampleTime "0.1" } Block { BlockType Sin Name "Sine Wave1" Ports [0, 1] Position [80, 403, 110, 427] ShowName off Frequency "1/2*pi" SampleTime "0" } Block { BlockType ToWorkspace Name "To Workspace" Position [235, 403, 295, 427] VariableName "contEnable" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "To Workspace2" Position [235, 142, 295, 168] VariableName "discEnable" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Line { SrcBlock "Enabled Subsystem With Discrete Held States" SrcPort 1 Points [60, 0; 0, -20] DstBlock "Reset States" DstPort 3 } Line { SrcBlock "Enabled Subsystem With Discrete Held States" SrcPort 2 DstBlock "Reset States" DstPort 4 } Line { SrcBlock "Enabled Subsystem With Discrete Reset States" SrcPort 1 DstBlock "Reset States" DstPort 1 } Line { SrcBlock "Enabled Subsystem With Discrete Reset States" SrcPort 2 Points [60, 0; 0, 20] DstBlock "Reset States" DstPort 2 } Line { SrcBlock "Sine Wave" SrcPort 1 Points [70, 0] Branch { DstBlock "Enabled Subsystem With Discrete Held States" DstPort enable } Branch { DstBlock "Enabled Subsystem With Discrete Reset States" DstPort enable } Branch { DstBlock "To Workspace2" DstPort 1 } } Line { SrcBlock "Reset States" SrcPort 1 DstBlock "Discrete \nSignals" DstPort 1 } Line { SrcBlock "Enabled Subsystem With Continuous Reset States" SrcPort 1 DstBlock "Held States" DstPort 1 } Line { SrcBlock "Enabled Subsystem With Continuous Reset States" SrcPort 2 Points [60, 0; 0, 20] DstBlock "Held States" DstPort 2 } Line { SrcBlock "Enabled Subsystem With Continuous Held States" SrcPort 1 Points [60, 0; 0, -20] DstBlock "Held States" DstPort 3 } Line { SrcBlock "Enabled Subsystem With Continuous Held States" SrcPort 2 DstBlock "Held States" DstPort 4 } Line { SrcBlock "Sine Wave1" SrcPort 1 Points [70, 0] Branch { DstBlock "To Workspace" DstPort 1 } Branch { DstBlock "Enabled Subsystem With Continuous Reset State" "s" DstPort enable } Branch { DstBlock "Enabled Subsystem With Continuous Held States" DstPort enable } } Line { SrcBlock "Held States" SrcPort 1 DstBlock "Continuous\nSignals" DstPort 1 } Annotation { Name "Enabled Subsystems in Simulink 2" Position [253, 18] FontName "Arial" FontSize 14 FontWeight "bold" } Annotation { Name "Discrete\nSystems" Position [40, 160] FontSize 12 } Annotation { Name "Continuous\nSystems" Position [46, 413] FontSize 12 } } }