diff --git a/@PVS_checker/pvs_check_for_imports.m b/@PVS_checker/pvs_check_for_imports.m index e917b8d3c398879773de53daa7665613adca162e..7db9fa7a6b99b0bfe987238e7aaafafbfcc633cf 100644 --- a/@PVS_checker/pvs_check_for_imports.m +++ b/@PVS_checker/pvs_check_for_imports.m @@ -10,8 +10,26 @@ % Author: Colin Eles elesc@mcmaster.ca % Organization: McMaster Centre for Software Certification function string = pvs_check_for_imports(object) + + + [string,found] = object.pvs_check_for_imports_g(object.data.Grid2,{}); [string2,found2] = object.pvs_check_for_imports_g(object.data.Grid1,found); + +% check for imports in the inputs field + + + +hashtable = {{'sqrt', 'reals@sqrt'} {'sin', 'trig@trig_basic'} {'cos', 'trig@trig_basic'} {'tan', 'trig@trig_basic'}}; +for k=1:size(hashtable,2) + if ~isempty(regexp(object.data.function_inputs,hashtable{k}(1),'once')) + if (~any(ismember(found,hashtable{k}(1)))) + string = [string 'IMPORTING ' char(hashtable{k}(2)) sprintf('\n')]; + found = [found hashtable{k}(1)]; + end + end + end + string = [string string2]; end diff --git a/Examples/PowerCond.mdl b/Examples/PowerCond.mdl new file mode 100644 index 0000000000000000000000000000000000000000..0a11f585926bb84f509326c1e6ec0b8a23b96880 --- /dev/null +++ b/Examples/PowerCond.mdl @@ -0,0 +1,1346 @@ +Model { + Name "PowerCond" + Version 7.5 + MdlSubVersion 0 + GraphicalInterface { + NumRootInports 0 + NumRootOutports 0 + ParameterArgumentNames "" + ComputedModelVersion "1.3" + NumModelReferences 0 + NumTestPointedSignals 0 + } + SavedCharacterEncoding "UTF-8" + SaveDefaultBlockParams on + ScopeRefreshTime 0.035000 + OverrideScopeRefreshTime on + DisableAllScopes off + DataTypeOverride "UseLocalSettings" + MinMaxOverflowLogging "UseLocalSettings" + MinMaxOverflowArchiveMode "Overwrite" + MaxMDLFileLineLength 120 + Created "Thu Aug 12 09:18:35 2010" + Creator "lawford" + UpdateHistory "UpdateHistoryNever" + ModifiedByFormat "%" + LastModifiedBy "lawford" + ModifiedDateFormat "%" + LastModifiedDate "Wed Sep 15 14:42:16 2010" + RTWModifiedTimeStamp 206462528 + ModelVersionFormat "1.%" + ConfigurationManager "None" + SampleTimeColors off + SampleTimeAnnotations off + LibraryLinkDisplay "none" + WideLines off + ShowLineDimensions off + ShowPortDataTypes off + ShowLoopsOnError on + IgnoreBidirectionalLines off + ShowStorageClass off + ShowTestPointIcons on + ShowSignalResolutionIcons on + ShowViewerIcons on + SortedOrder off + ExecutionContextIcon off + ShowLinearizationAnnotations on + BlockNameDataTip off + BlockParametersDataTip off + BlockDescriptionStringDataTip off + ToolBar on + StatusBar on + BrowserShowLibraryLinks off + BrowserLookUnderMasks off + SimulationMode "normal" + LinearizationMsg "none" + Profile off + ParamWorkspaceSource "MATLABWorkspace" + AccelSystemTargetFile "accel.tlc" + AccelTemplateMakefile "accel_default_tmf" + AccelMakeCommand "make_rtw" + TryForcingSFcnDF off + RecordCoverage off + CovPath "/" + CovSaveName "covdata" + CovMetricSettings "dw" + CovNameIncrementing off + CovHtmlReporting on + CovForceBlockReductionOff on + covSaveCumulativeToWorkspaceVar on + CovSaveSingleToWorkspaceVar on + CovCumulativeVarName "covCumulativeData" + CovCumulativeReport off + CovReportOnPause on + CovModelRefEnable "Off" + CovExternalEMLEnable 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 on + ShowModelReferenceBlockVersion off + ShowModelReferenceBlockIO off + Array { + Type "Handle" + Dimension 1 + Simulink.ConfigSet { + $ObjectID 1 + Version "1.10.0" + Array { + Type "Handle" + Dimension 8 + Simulink.SolverCC { + $ObjectID 2 + Version "1.10.0" + StartTime "0.0" + StopTime "10.0" + AbsTol "auto" + FixedStep "auto" + InitialStep "auto" + MaxNumMinSteps "-1" + MaxOrder 5 + ZcThreshold "auto" + ConsecutiveZCsStepRelTol "10*128*eps" + MaxConsecutiveZCs "1000" + ExtrapolationOrder 4 + NumberNewtonIterations 1 + MaxStep "auto" + MinStep "auto" + MaxConsecutiveMinStep "1" + RelTol "1e-3" + SolverMode "Auto" + Solver "ode45" + SolverName "ode45" + SolverJacobianMethodControl "auto" + ShapePreserveControl "DisableAll" + ZeroCrossControl "UseLocalSettings" + ZeroCrossAlgorithm "Nonadaptive" + AlgebraicLoopSolver "TrustRegion" + SolverResetMethod "Fast" + PositivePriorityOrder off + AutoInsertRateTranBlk off + SampleTimeConstraint "Unconstrained" + InsertRTBMode "Whenever possible" + } + Simulink.DataIOCC { + $ObjectID 3 + Version "1.10.0" + Decimation "1" + ExternalInput "[t, u]" + FinalStateName "xFinal" + InitialState "xInitial" + LimitDataPoints on + MaxDataPoints "1000" + LoadExternalInput off + LoadInitialState off + SaveFinalState off + SaveCompleteFinalSimState off + SaveFormat "Array" + SaveOutput on + SaveState off + SignalLogging on + DSMLogging on + InspectSignalLogs off + SaveTime on + ReturnWorkspaceOutputs off + StateSaveName "xout" + TimeSaveName "tout" + OutputSaveName "yout" + SignalLoggingName "logsout" + DSMLoggingName "dsmout" + OutputOption "RefineOutputTimes" + OutputTimes "[]" + ReturnWorkspaceOutputsName "out" + Refine "1" + } + Simulink.OptimizationCC { + $ObjectID 4 + Version "1.10.0" + Array { + Type "Cell" + Dimension 7 + Cell "BooleansAsBitfields" + Cell "PassReuseOutputArgsAs" + Cell "PassReuseOutputArgsThreshold" + Cell "ZeroExternalMemoryAtStartup" + Cell "ZeroInternalMemoryAtStartup" + Cell "OptimizeModelRefInitCode" + Cell "NoFixptDivByZeroProtection" + PropName "DisabledProps" + } + BlockReduction on + BooleanDataType on + ConditionallyExecuteInputs on + InlineParams off + UseIntDivNetSlope off + InlineInvariantSignals off + OptimizeBlockIOStorage on + BufferReuse on + EnhancedBackFolding off + StrengthReduction off + EnforceIntegerDowncast on + ExpressionFolding on + BooleansAsBitfields off + BitfieldContainerType "uint_T" + EnableMemcpy on + MemcpyThreshold 64 + PassReuseOutputArgsAs "Structure reference" + ExpressionDepthLimit 2147483647 + FoldNonRolledExpr on + LocalBlockOutputs on + RollThreshold 5 + SystemCodeInlineAuto off + StateBitsets off + DataBitsets off + UseTempVars off + ZeroExternalMemoryAtStartup on + ZeroInternalMemoryAtStartup on + InitFltsAndDblsToZero off + NoFixptDivByZeroProtection off + EfficientFloat2IntCast off + EfficientMapNaN2IntZero on + OptimizeModelRefInitCode off + LifeSpan "inf" + MaxStackSize "Inherit from target" + BufferReusableBoundary on + SimCompilerOptimization "Off" + AccelVerboseBuild off + } + Simulink.DebuggingCC { + $ObjectID 5 + Version "1.10.0" + RTPrefix "error" + ConsistencyChecking "none" + ArrayBoundsChecking "none" + SignalInfNanChecking "none" + SignalRangeChecking "none" + ReadBeforeWriteMsg "UseLocalSettings" + WriteAfterWriteMsg "UseLocalSettings" + WriteAfterReadMsg "UseLocalSettings" + AlgebraicLoopMsg "warning" + ArtificialAlgebraicLoopMsg "warning" + SaveWithDisabledLinksMsg "warning" + SaveWithParameterizedLinksMsg "warning" + CheckSSInitialOutputMsg on + UnderspecifiedInitializationDetection "Classic" + MergeDetectMultiDrivingBlocksExec "none" + CheckExecutionContextPreStartOutputMsg off + CheckExecutionContextRuntimeOutputMsg off + SignalResolutionControl "UseLocalSettings" + BlockPriorityViolationMsg "warning" + MinStepSizeMsg "warning" + TimeAdjustmentMsg "none" + MaxConsecutiveZCsMsg "error" + SolverPrmCheckMsg "warning" + InheritedTsInSrcMsg "warning" + DiscreteInheritContinuousMsg "warning" + MultiTaskDSMMsg "error" + MultiTaskCondExecSysMsg "error" + MultiTaskRateTransMsg "error" + SingleTaskRateTransMsg "none" + TasksWithSamePriorityMsg "warning" + SigSpecEnsureSampleTimeMsg "warning" + CheckMatrixSingularityMsg "none" + IntegerOverflowMsg "warning" + Int32ToFloatConvMsg "warning" + ParameterDowncastMsg "error" + ParameterOverflowMsg "error" + ParameterUnderflowMsg "none" + ParameterPrecisionLossMsg "warning" + ParameterTunabilityLossMsg "warning" + FixptConstUnderflowMsg "none" + FixptConstOverflowMsg "none" + FixptConstPrecisionLossMsg "none" + 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" + UnknownTsInhSupMsg "warning" + ModelReferenceDataLoggingMessage "warning" + ModelReferenceSymbolNameMessage "warning" + ModelReferenceExtraNoncontSigs "error" + StateNameClashWarn "warning" + SimStateInterfaceChecksumMismatchMsg "warning" + StrictBusMsg "ErrorLevel1" + BusNameAdapt "WarnAndRepair" + NonBusSignalsTreatedAsBus "none" + LoggingUnavailableSignals "error" + BlockIODiagnostic "none" + } + Simulink.HardwareCC { + $ObjectID 6 + Version "1.10.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 off + ProdEqTarget on + } + Simulink.ModelReferenceCC { + $ObjectID 7 + Version "1.10.0" + UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" + CheckModelReferenceTargetMessage "error" + EnableParallelModelReferenceBuilds off + ParallelModelReferenceMATLABWorkerInit "None" + ModelReferenceNumInstancesAllowed "Multi" + PropagateVarSize "Infer from blocks in model" + ModelReferencePassRootInputsByReference on + ModelReferenceMinAlgLoopOccurrences off + PropagateSignalLabelsOutOfModel off + SupportModelReferenceSimTargetCustomCode off + } + Simulink.SFSimCC { + $ObjectID 8 + Version "1.10.0" + SFSimEnableDebug on + SFSimOverflowDetection on + SFSimEcho on + SimBlas on + SimCtrlC on + SimExtrinsic on + SimIntegrity on + SimUseLocalCustomCode off + SimBuildMode "sf_incremental_build" + } + Simulink.RTWCC { + $BackupClass "Simulink.RTWCC" + $ObjectID 9 + Version "1.10.0" + Array { + Type "Cell" + Dimension 6 + Cell "IncludeHyperlinkInReport" + Cell "GenerateTraceInfo" + Cell "GenerateTraceReport" + Cell "GenerateTraceReportSl" + Cell "GenerateTraceReportSf" + Cell "GenerateTraceReportEml" + PropName "DisabledProps" + } + SystemTargetFile "grt.tlc" + GenCodeOnly off + MakeCommand "make_rtw" + GenerateMakefile on + 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 + RTWUseLocalCustomCode off + RTWUseSimCustomCode off + IncludeHyperlinkInReport off + LaunchReport off + TargetLang "C" + IncludeBusHierarchyInRTWFileBlockHierarchyMap off + IncludeERTFirstTime off + GenerateTraceInfo off + GenerateTraceReport off + GenerateTraceReportSl off + GenerateTraceReportSf off + GenerateTraceReportEml off + GenerateCodeInfo off + RTWCompilerOptimization "Off" + CheckMdlBeforeBuild "Off" + CustomRebuildMode "OnUpdate" + Array { + Type "Handle" + Dimension 2 + Simulink.CodeAppCC { + $ObjectID 10 + Version "1.10.0" + Array { + Type "Cell" + Dimension 19 + Cell "IgnoreCustomStorageClasses" + Cell "IgnoreTestpoints" + Cell "InsertBlockDesc" + Cell "SFDataObjDesc" + Cell "SimulinkDataObjDesc" + Cell "DefineNamingRule" + Cell "SignalNamingRule" + Cell "ParamNamingRule" + Cell "InlinedPrmAccess" + Cell "CustomSymbolStr" + Cell "CustomSymbolStrGlobalVar" + Cell "CustomSymbolStrType" + Cell "CustomSymbolStrField" + Cell "CustomSymbolStrFcn" + Cell "CustomSymbolStrFcnArg" + Cell "CustomSymbolStrBlkIO" + Cell "CustomSymbolStrTmpVar" + Cell "CustomSymbolStrMacro" + Cell "ReqsInCode" + PropName "DisabledProps" + } + ForceParamTrailComments off + GenerateComments on + IgnoreCustomStorageClasses on + IgnoreTestpoints off + IncHierarchyInIds off + MaxIdLength 31 + PreserveName off + PreserveNameWithParent off + ShowEliminatedStatement off + IncAutoGenComments off + SimulinkDataObjDesc off + SFDataObjDesc off + IncDataTypeInIds off + MangleLength 1 + CustomSymbolStrGlobalVar "$R$N$M" + CustomSymbolStrType "$N$R$M" + CustomSymbolStrField "$N$M" + CustomSymbolStrFcn "$R$N$M$F" + CustomSymbolStrFcnArg "rt$I$N$M" + CustomSymbolStrBlkIO "rtb_$N$M" + CustomSymbolStrTmpVar "$N$M" + CustomSymbolStrMacro "$R$N$M" + DefineNamingRule "None" + ParamNamingRule "None" + SignalNamingRule "None" + InsertBlockDesc off + SimulinkBlockComments on + EnableCustomComments off + InlinedPrmAccess "Literals" + ReqsInCode off + UseSimReservedNames off + } + Simulink.GRTTargetCC { + $BackupClass "Simulink.TargetCC" + $ObjectID 11 + Version "1.10.0" + Array { + Type "Cell" + Dimension 17 + Cell "GeneratePreprocessorConditionals" + Cell "IncludeMdlTerminateFcn" + Cell "CombineOutputUpdateFcns" + Cell "SuppressErrorStatus" + Cell "ERTCustomFileBanners" + Cell "GenerateSampleERTMain" + Cell "GenerateTestInterfaces" + Cell "ModelStepFunctionPrototypeControlCompliant" + Cell "CPPClassGenCompliant" + Cell "MultiInstanceERTCode" + Cell "PurelyIntegerCode" + Cell "SupportNonFinite" + Cell "SupportComplex" + Cell "SupportAbsoluteTime" + Cell "SupportContinuousTime" + Cell "SupportNonInlinedSFcns" + Cell "PortableWordSizes" + PropName "DisabledProps" + } + TargetFcnLib "ansi_tfl_table_tmw.mat" + TargetLibSuffix "" + TargetPreCompLibLocation "" + TargetFunctionLibrary "ANSI_C" + UtilityFuncGeneration "Auto" + ERTMultiwordTypeDef "System defined" + ERTCodeCoverageTool "None" + ERTMultiwordLength 256 + MultiwordLength 2048 + GenerateFullHeader on + GenerateSampleERTMain off + GenerateTestInterfaces off + IsPILTarget off + ModelReferenceCompliant on + ParMdlRefBuildCompliant on + CompOptLevelCompliant on + IncludeMdlTerminateFcn on + GeneratePreprocessorConditionals "Disable all" + CombineOutputUpdateFcns off + SuppressErrorStatus off + ERTFirstTimeCompliant off + IncludeFileDelimiter "Auto" + ERTCustomFileBanners off + SupportAbsoluteTime on + LogVarNameModifier "rt_" + MatFileLogging on + MultiInstanceERTCode off + SupportNonFinite on + SupportComplex on + PurelyIntegerCode off + SupportContinuousTime on + SupportNonInlinedSFcns on + SupportVariableSizeSignals off + EnableShiftOperators on + ParenthesesLevel "Nominal" + PortableWordSizes off + ModelStepFunctionPrototypeControlCompliant off + CPPClassGenCompliant off + AutosarCompliant off + UseMalloc off + ExtMode off + ExtModeStaticAlloc off + ExtModeTesting off + ExtModeStaticAllocSize 1000000 + ExtModeTransport 0 + ExtModeMexFile "ext_comm" + ExtModeIntrfLevel "Level1" + RTWCAPISignals off + RTWCAPIParams off + RTWCAPIStates off + GenerateASAP2 off + } + PropName "Components" + } + } + PropName "Components" + } + Name "Configuration" + CurrentDlgPage "Solver" + ConfigPrmDlgPosition " [ 200, 197, 1080, 827 ] " + } + PropName "ConfigurationSets" + } + Simulink.ConfigSet { + $PropName "ActiveConfigurationSet" + $ObjectID 1 + } + BlockDefaults { + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + NamePlacement "normal" + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + ShowName on + BlockRotation 0 + BlockMirror off + } + AnnotationDefaults { + HorizontalAlignment "center" + VerticalAlignment "middle" + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + UseDisplayTextAsClickCallback off + } + LineDefaults { + FontName "Helvetica" + FontSize 9 + FontWeight "normal" + FontAngle "normal" + } + BlockParameterDefaults { + Block { + BlockType Demux + Outputs "4" + DisplayOption "none" + BusSelectionMode off + } + Block { + BlockType Inport + Port "1" + UseBusObject off + BusObject "BusObject" + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + OutMin "[]" + OutMax "[]" + DataType "auto" + OutDataType "fixdt(1,16,0)" + OutScaling "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + SignalType "auto" + SamplingMode "auto" + LatchByDelayingOutsideSignal off + LatchInputForFeedbackSignals off + Interpolate on + } + Block { + BlockType Outport + Port "1" + UseBusObject off + BusObject "BusObject" + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + OutMin "[]" + OutMax "[]" + DataType "auto" + OutDataType "fixdt(1,16,0)" + OutScaling "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + SignalType "auto" + SamplingMode "auto" + SourceOfInitialOutputValue "Dialog" + OutputWhenDisabled "held" + InitialOutput "[]" + } + Block { + BlockType "S-Function" + FunctionName "system" + SFunctionModules "''" + PortCounts "[]" + SFunctionDeploymentMode off + } + Block { + BlockType SubSystem + ShowPortLabels "FromPortIcon" + Permissions "ReadWrite" + PermitHierarchicalResolution "All" + TreatAsAtomicUnit off + CheckFcnCallInpInsideContextMsg off + SystemSampleTime "-1" + RTWFcnNameOpts "Auto" + RTWFileNameOpts "Auto" + RTWMemSecFuncInitTerm "Inherit from model" + RTWMemSecFuncExecute "Inherit from model" + RTWMemSecDataConstants "Inherit from model" + RTWMemSecDataInternal "Inherit from model" + RTWMemSecDataParameters "Inherit from model" + SimViewingDevice off + DataTypeOverride "UseLocalSettings" + MinMaxOverflowLogging "UseLocalSettings" + } + Block { + BlockType Terminator + } + Block { + BlockType UnitDelay + X0 "0" + SampleTime "1" + StateMustResolveToSignalObject off + RTWStateStorageClass "Auto" + } + } + System { + Name "PowerCond" + Location [611, 198, 1191, 458] + Open on + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + ReportName "simulink-default.rpt" + SIDHighWatermark 9 + Block { + BlockType UnitDelay + Name "Unit Delay" + SID 9 + Position [120, 148, 155, 182] + BlockMirror on + SampleTime "-1" + } + Block { + BlockType SubSystem + Name "f_PowerCond" + SID 1 + Ports [4, 1] + Position [55, 43, 220, 112] + LibraryVersion "1.11" + UserDataPersistent on + UserData "DataTag0" + CopyFcn "TTdiag Copy" + DeleteFcn "TTdiag Delete" + OpenFcn "TTdiag Open Simulink" + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskDescription "Table Block" + MaskDisplay "port_label('input',1,'Power');port_label('input',2,'Kin');port_label('input',3,'Kout');port_l" + "abel('input',4,'Prev');port_label('output',1,'output');text(0.5, 0.9, 'Tabular Expression', 'horizontalAlignment" + "', 'center')\ncolor('red')\ntext(0.5, 0.1, 'Not Checked', 'horizontalAlignment', 'center')" + MaskIconFrame on + MaskIconOpaque on + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "normalized" + System { + Name "f_PowerCond" + Location [433, 447, 931, 747] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + Block { + BlockType Inport + Name "Power" + SID 4 + Position [35, 38, 65, 52] + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "Kin" + SID 5 + Position [35, 38, 65, 52] + Port "2" + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "Kout" + SID 6 + Position [35, 38, 65, 52] + Port "3" + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "Prev" + SID 7 + Position [35, 38, 65, 52] + Port "4" + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType SubSystem + Name "code" + SID 3 + Ports [4, 1] + Position [250, 51, 320, 99] + LibraryVersion "1.31" + PermitHierarchicalResolution "ExplicitOnly" + TreatAsAtomicUnit on + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskType "Stateflow" + MaskDescription "Embedded MATLAB block" + MaskDisplay "disp('f_PowerCond');" + MaskSelfModifiable on + MaskIconFrame on + MaskIconOpaque off + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "autoscale" + System { + Name "code" + Location [257, 457, 812, 717] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + SIDHighWatermark 20 + SIDPrevWatermark 13 + Block { + BlockType Inport + Name "Power" + SID 1 + Position [20, 101, 40, 119] + IconDisplay "Port number" + OutDataType "sfix(16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "Kin" + SID 18 + Position [20, 136, 40, 154] + Port "2" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "Kout" + SID 19 + Position [20, 171, 40, 189] + Port "3" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "Prev" + SID 20 + Position [20, 206, 40, 224] + Port "4" + IconDisplay "Port number" + } + Block { + BlockType Demux + Name " Demux " + SID 15 + Ports [1, 1] + Position [270, 205, 320, 245] + Outputs "1" + } + Block { + BlockType "S-Function" + Name " SFunction " + SID 14 + Tag "Stateflow S-Function PowerCond 2" + Ports [4, 2] + Position [180, 102, 230, 203] + FunctionName "sf_sfun" + PortCounts "[4 2]" + EnableBusSupport off + Port { + PortNumber 2 + Name "output" + RTWStorageClass "Auto" + DataLoggingNameMode "SignalName" + } + } + Block { + BlockType Terminator + Name " Terminator " + SID 17 + Position [460, 216, 480, 234] + } + Block { + BlockType Outport + Name "output" + SID 5 + Position [460, 101, 480, 119] + IconDisplay "Port number" + OutDataType "sfix(16)" + OutScaling "2^0" + } + Line { + SrcBlock " SFunction " + SrcPort 1 + DstBlock " Demux " + DstPort 1 + } + Line { + SrcBlock "Power" + SrcPort 1 + DstBlock " SFunction " + DstPort 1 + } + Line { + SrcBlock "Kin" + SrcPort 1 + DstBlock " SFunction " + DstPort 2 + } + Line { + SrcBlock "Kout" + SrcPort 1 + DstBlock " SFunction " + DstPort 3 + } + Line { + SrcBlock "Prev" + SrcPort 1 + DstBlock " SFunction " + DstPort 4 + } + Line { + Name "output" + Labels [0, 0] + SrcBlock " SFunction " + SrcPort 2 + DstBlock "output" + DstPort 1 + } + Line { + SrcBlock " Demux " + SrcPort 1 + DstBlock " Terminator " + DstPort 1 + } + } + } + Block { + BlockType Outport + Name "output" + SID 8 + Position [35, 53, 65, 67] + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Line { + SrcBlock "Power" + SrcPort 1 + DstBlock "code" + DstPort 1 + } + Line { + SrcBlock "Kin" + SrcPort 1 + DstBlock "code" + DstPort 2 + } + Line { + SrcBlock "Kout" + SrcPort 1 + DstBlock "code" + DstPort 3 + } + Line { + SrcBlock "Prev" + SrcPort 1 + DstBlock "code" + DstPort 4 + } + Line { + SrcBlock "code" + SrcPort 1 + DstBlock "output" + DstPort 1 + } + } + } + Line { + SrcBlock "f_PowerCond" + SrcPort 1 + Points [10, 0; 0, 85] + DstBlock "Unit Delay" + DstPort 1 + } + Line { + SrcBlock "Unit Delay" + SrcPort 1 + Points [-85, 0; 0, -65] + DstBlock "f_PowerCond" + DstPort 4 + } + } +} +MatData { + NumRecords 1 + DataRecord { + Tag DataTag0 + Data " %)30 . > 8 ( $0 ! $ ! !-0T]3 0 $ $1A=&$. 2 8 ( #0 " + " % \" 8 ! 0 & & -T\" 0 $ ! !0 X #P*@ !@ @ ) 4" + " ( 0 , J ! ( # *@ %)30 . (\"H 8 ( @ % \" $ ! 0 " + " % 0 !0 $ % 34-/4P . V\"D 8 ( $0 ! $ ! !-0T]3 0 T !&:6QE5W)A<'!E" + "'0 8V5L;%]I;F1E> !P87)E;G1?9W)I9 !C96QL'1?;V9F'0 4D-E;&P 9G5N8W1I" + ";VY?;F%M90!F=6YC=&EO;E]I;G!U=', $ $ ? 4 # 0 \"H " + " A 0 \"L B 0 \"P C 0 \"T 2 0 \"X % P $ O (0 $ P (@ $" + " Q (P $ R $@ $ S " + " #@ . . 8 ( !@ % \" $ " + " ! 0 ) \" 4 %) #@ $ & \" 0 !0 @ ! \"@ $ $ H " + " !0;W=E'1?=VED=&@ &-O;F1I=&EO;E]T97AT7VAE:6=H= !C;VYD:71I;VY?=&5X=%]X 8V]N9&ET:6" + "]N7W1E>'1?>0 &-O;F1I=&EO;E]T97AT7V]F9G-E= !G'0 8V]L;W( X P !@ @ & " + " 4 ( ! D #@ # & \" 8 !0 @ $ " + " \"0 . , 8 ( !@ % \" 0 ) X P !@ @ & " + " 4 ( ! D #@ # & \" 8 !0 @ $ " + "\"0 . \" , 8 ( @ % \" $ ! 0 % 0 $ $ \"@ 1W)I9# " + " $=R:60Q !'" + LastModifiedBy "lawford" + ModifiedDateFormat "%" + LastModifiedDate "Wed Dec 22 14:26:48 2010" + RTWModifiedTimeStamp 214928792 + ModelVersionFormat "1.%" + ConfigurationManager "None" + SampleTimeColors off + SampleTimeAnnotations off + LibraryLinkDisplay "none" + WideLines off + ShowLineDimensions off + ShowPortDataTypes off + ShowLoopsOnError on + IgnoreBidirectionalLines off + ShowStorageClass off + ShowTestPointIcons on + ShowSignalResolutionIcons on + ShowViewerIcons on + SortedOrder off + ExecutionContextIcon off + ShowLinearizationAnnotations on + BlockNameDataTip off + BlockParametersDataTip off + BlockDescriptionStringDataTip off + ToolBar on + StatusBar on + BrowserShowLibraryLinks off + BrowserLookUnderMasks off + SimulationMode "normal" + LinearizationMsg "none" + Profile off + ParamWorkspaceSource "MATLABWorkspace" + AccelSystemTargetFile "accel.tlc" + AccelTemplateMakefile "accel_default_tmf" + AccelMakeCommand "make_rtw" + TryForcingSFcnDF off + RecordCoverage off + CovPath "/" + CovSaveName "covdata" + CovMetricSettings "dw" + CovNameIncrementing off + CovHtmlReporting on + CovForceBlockReductionOff on + covSaveCumulativeToWorkspaceVar on + CovSaveSingleToWorkspaceVar on + CovCumulativeVarName "covCumulativeData" + CovCumulativeReport off + CovReportOnPause on + CovModelRefEnable "Off" + CovExternalEMLEnable 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 on + ShowModelReferenceBlockVersion off + ShowModelReferenceBlockIO off + Array { + Type "Handle" + Dimension 1 + Simulink.ConfigSet { + $ObjectID 1 + Version "1.10.0" + Array { + Type "Handle" + Dimension 8 + Simulink.SolverCC { + $ObjectID 2 + Version "1.10.0" + StartTime "0.0" + StopTime "10.0" + AbsTol "auto" + FixedStep "auto" + InitialStep "auto" + MaxNumMinSteps "-1" + MaxOrder 5 + ZcThreshold "auto" + ConsecutiveZCsStepRelTol "10*128*eps" + MaxConsecutiveZCs "1000" + ExtrapolationOrder 4 + NumberNewtonIterations 1 + MaxStep "auto" + MinStep "auto" + MaxConsecutiveMinStep "1" + RelTol "1e-3" + SolverMode "Auto" + ConcurrentTasks off + Solver "ode45" + SolverName "ode45" + SolverJacobianMethodControl "auto" + ShapePreserveControl "DisableAll" + ZeroCrossControl "UseLocalSettings" + ZeroCrossAlgorithm "Nonadaptive" + AlgebraicLoopSolver "TrustRegion" + SolverResetMethod "Fast" + PositivePriorityOrder off + AutoInsertRateTranBlk off + SampleTimeConstraint "Unconstrained" + InsertRTBMode "Whenever possible" + } + Simulink.DataIOCC { + $ObjectID 3 + Version "1.10.0" + Decimation "1" + ExternalInput "[t, u]" + FinalStateName "xFinal" + InitialState "xInitial" + LimitDataPoints on + MaxDataPoints "1000" + LoadExternalInput off + LoadInitialState off + SaveFinalState off + SaveCompleteFinalSimState off + SaveFormat "Array" + SaveOutput on + SaveState off + SignalLogging on + DSMLogging on + InspectSignalLogs off + SaveTime on + ReturnWorkspaceOutputs off + StateSaveName "xout" + TimeSaveName "tout" + OutputSaveName "yout" + SignalLoggingName "logsout" + DSMLoggingName "dsmout" + OutputOption "RefineOutputTimes" + OutputTimes "[]" + ReturnWorkspaceOutputsName "out" + Refine "1" + } + Simulink.OptimizationCC { + $ObjectID 4 + Version "1.10.0" + Array { + Type "Cell" + Dimension 8 + Cell "BooleansAsBitfields" + Cell "PassReuseOutputArgsAs" + Cell "PassReuseOutputArgsThreshold" + Cell "ZeroExternalMemoryAtStartup" + Cell "ZeroInternalMemoryAtStartup" + Cell "OptimizeModelRefInitCode" + Cell "NoFixptDivByZeroProtection" + Cell "UseSpecifiedMinMax" + PropName "DisabledProps" + } + BlockReduction on + BooleanDataType on + ConditionallyExecuteInputs on + InlineParams off + UseIntDivNetSlope off + UseSpecifiedMinMax off + InlineInvariantSignals off + OptimizeBlockIOStorage on + BufferReuse on + EnhancedBackFolding off + StrengthReduction off + ExpressionFolding on + BooleansAsBitfields off + BitfieldContainerType "uint_T" + EnableMemcpy on + MemcpyThreshold 64 + PassReuseOutputArgsAs "Structure reference" + ExpressionDepthLimit 2147483647 + FoldNonRolledExpr on + LocalBlockOutputs on + RollThreshold 5 + SystemCodeInlineAuto off + StateBitsets off + DataBitsets off + UseTempVars off + ZeroExternalMemoryAtStartup on + ZeroInternalMemoryAtStartup on + InitFltsAndDblsToZero off + NoFixptDivByZeroProtection off + EfficientFloat2IntCast off + EfficientMapNaN2IntZero on + OptimizeModelRefInitCode off + LifeSpan "inf" + MaxStackSize "Inherit from target" + BufferReusableBoundary on + SimCompilerOptimization "Off" + AccelVerboseBuild off + } + Simulink.DebuggingCC { + $ObjectID 5 + Version "1.10.0" + RTPrefix "error" + ConsistencyChecking "none" + ArrayBoundsChecking "none" + SignalInfNanChecking "none" + SignalRangeChecking "none" + ReadBeforeWriteMsg "UseLocalSettings" + WriteAfterWriteMsg "UseLocalSettings" + WriteAfterReadMsg "UseLocalSettings" + AlgebraicLoopMsg "warning" + ArtificialAlgebraicLoopMsg "warning" + SaveWithDisabledLinksMsg "warning" + SaveWithParameterizedLinksMsg "warning" + CheckSSInitialOutputMsg on + UnderspecifiedInitializationDetection "Classic" + MergeDetectMultiDrivingBlocksExec "none" + CheckExecutionContextPreStartOutputMsg off + CheckExecutionContextRuntimeOutputMsg off + SignalResolutionControl "UseLocalSettings" + BlockPriorityViolationMsg "warning" + MinStepSizeMsg "warning" + TimeAdjustmentMsg "none" + MaxConsecutiveZCsMsg "error" + MaskedZcDiagnostic "warning" + IgnoredZcDiagnostic "warning" + SolverPrmCheckMsg "warning" + InheritedTsInSrcMsg "warning" + DiscreteInheritContinuousMsg "warning" + MultiTaskDSMMsg "error" + MultiTaskCondExecSysMsg "error" + MultiTaskRateTransMsg "error" + SingleTaskRateTransMsg "none" + TasksWithSamePriorityMsg "warning" + SigSpecEnsureSampleTimeMsg "warning" + CheckMatrixSingularityMsg "none" + IntegerOverflowMsg "warning" + Int32ToFloatConvMsg "warning" + ParameterDowncastMsg "error" + ParameterOverflowMsg "error" + ParameterUnderflowMsg "none" + ParameterPrecisionLossMsg "warning" + ParameterTunabilityLossMsg "warning" + FixptConstUnderflowMsg "none" + FixptConstOverflowMsg "none" + FixptConstPrecisionLossMsg "none" + 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" + ModelReferenceMultiInstanceNormalModeStructChecksumCheck "error" + ModelReferenceVersionMismatchMessage "none" + ModelReferenceIOMismatchMessage "none" + ModelReferenceCSMismatchMessage "none" + UnknownTsInhSupMsg "warning" + ModelReferenceDataLoggingMessage "warning" + ModelReferenceSymbolNameMessage "warning" + ModelReferenceExtraNoncontSigs "error" + StateNameClashWarn "warning" + SimStateInterfaceChecksumMismatchMsg "warning" + InitInArrayFormatMsg "warning" + StrictBusMsg "ErrorLevel1" + BusNameAdapt "WarnAndRepair" + NonBusSignalsTreatedAsBus "none" + LoggingUnavailableSignals "error" + BlockIODiagnostic "none" + SFUnusedDataAndEventsDiag "warning" + SFUnexpectedBacktrackingDiag "warning" + SFInvalidInputDataAccessInChartInitDiag "warning" + SFNoUnconditionalDefaultTransitionDiag "warning" + SFTransitionOutsideNaturalParentDiag "warning" + } + Simulink.HardwareCC { + $ObjectID 6 + Version "1.10.0" + ProdBitPerChar 8 + ProdBitPerShort 16 + ProdBitPerInt 32 + ProdBitPerLong 32 + ProdBitPerFloat 32 + ProdBitPerDouble 64 + ProdBitPerPointer 32 + ProdLargestAtomicInteger "Char" + ProdLargestAtomicFloat "None" + ProdIntDivRoundTo "Undefined" + ProdEndianess "Unspecified" + ProdWordSize 32 + ProdShiftRightIntArith on + ProdHWDeviceType "32-bit Generic" + TargetBitPerChar 8 + TargetBitPerShort 16 + TargetBitPerInt 32 + TargetBitPerLong 32 + TargetBitPerFloat 32 + TargetBitPerDouble 64 + TargetBitPerPointer 32 + TargetLargestAtomicInteger "Char" + TargetLargestAtomicFloat "None" + TargetShiftRightIntArith on + TargetIntDivRoundTo "Undefined" + TargetEndianess "Unspecified" + TargetWordSize 32 + TargetTypeEmulationWarnSuppressLevel 0 + TargetPreprocMaxBitsSint 32 + TargetPreprocMaxBitsUint 32 + TargetHWDeviceType "Specified" + TargetUnknown off + ProdEqTarget on + } + Simulink.ModelReferenceCC { + $ObjectID 7 + Version "1.10.0" + UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" + CheckModelReferenceTargetMessage "error" + EnableParallelModelReferenceBuilds off + ParallelModelReferenceErrorOnInvalidPool on + ParallelModelReferenceMATLABWorkerInit "None" + ModelReferenceNumInstancesAllowed "Multi" + PropagateVarSize "Infer from blocks in model" + ModelReferencePassRootInputsByReference on + ModelReferenceMinAlgLoopOccurrences off + PropagateSignalLabelsOutOfModel off + SupportModelReferenceSimTargetCustomCode off + } + Simulink.SFSimCC { + $ObjectID 8 + Version "1.10.0" + SFSimEnableDebug on + SFSimOverflowDetection on + SFSimEcho on + SimBlas on + SimCtrlC on + SimExtrinsic on + SimIntegrity on + SimUseLocalCustomCode off + SimParseCustomCode on + SimBuildMode "sf_incremental_build" + } + Simulink.RTWCC { + $BackupClass "Simulink.RTWCC" + $ObjectID 9 + Version "1.10.0" + Array { + Type "Cell" + Dimension 7 + Cell "IncludeHyperlinkInReport" + Cell "GenerateTraceInfo" + Cell "GenerateTraceReport" + Cell "GenerateTraceReportSl" + Cell "GenerateTraceReportSf" + Cell "GenerateTraceReportEml" + Cell "GenerateSLWebview" + PropName "DisabledProps" + } + SystemTargetFile "grt.tlc" + GenCodeOnly off + MakeCommand "make_rtw" + GenerateMakefile on + 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 + RTWUseLocalCustomCode off + RTWUseSimCustomCode off + IncludeHyperlinkInReport off + LaunchReport off + TargetLang "C" + IncludeBusHierarchyInRTWFileBlockHierarchyMap off + IncludeERTFirstTime off + GenerateTraceInfo off + GenerateTraceReport off + GenerateTraceReportSl off + GenerateTraceReportSf off + GenerateTraceReportEml off + GenerateCodeInfo off + GenerateSLWebview off + RTWCompilerOptimization "Off" + CheckMdlBeforeBuild "Off" + CustomRebuildMode "OnUpdate" + Array { + Type "Handle" + Dimension 2 + Simulink.CodeAppCC { + $ObjectID 10 + Version "1.10.0" + Array { + Type "Cell" + Dimension 21 + Cell "IgnoreCustomStorageClasses" + Cell "IgnoreTestpoints" + Cell "InsertBlockDesc" + Cell "InsertPolySpaceComments" + Cell "SFDataObjDesc" + Cell "MATLABFcnDesc" + Cell "SimulinkDataObjDesc" + Cell "DefineNamingRule" + Cell "SignalNamingRule" + Cell "ParamNamingRule" + Cell "InlinedPrmAccess" + Cell "CustomSymbolStr" + Cell "CustomSymbolStrGlobalVar" + Cell "CustomSymbolStrType" + Cell "CustomSymbolStrField" + Cell "CustomSymbolStrFcn" + Cell "CustomSymbolStrFcnArg" + Cell "CustomSymbolStrBlkIO" + Cell "CustomSymbolStrTmpVar" + Cell "CustomSymbolStrMacro" + Cell "ReqsInCode" + PropName "DisabledProps" + } + ForceParamTrailComments off + GenerateComments on + IgnoreCustomStorageClasses on + IgnoreTestpoints off + IncHierarchyInIds off + MaxIdLength 31 + PreserveName off + PreserveNameWithParent off + ShowEliminatedStatement off + IncAutoGenComments off + SimulinkDataObjDesc off + SFDataObjDesc off + MATLABFcnDesc off + IncDataTypeInIds off + MangleLength 1 + CustomSymbolStrGlobalVar "$R$N$M" + CustomSymbolStrType "$N$R$M" + CustomSymbolStrField "$N$M" + CustomSymbolStrFcn "$R$N$M$F" + CustomSymbolStrFcnArg "rt$I$N$M" + CustomSymbolStrBlkIO "rtb_$N$M" + CustomSymbolStrTmpVar "$N$M" + CustomSymbolStrMacro "$R$N$M" + DefineNamingRule "None" + ParamNamingRule "None" + SignalNamingRule "None" + InsertBlockDesc off + InsertPolySpaceComments off + SimulinkBlockComments on + MATLABSourceComments off + EnableCustomComments off + InlinedPrmAccess "Literals" + ReqsInCode off + UseSimReservedNames off + } + Simulink.GRTTargetCC { + $BackupClass "Simulink.TargetCC" + $ObjectID 11 + Version "1.10.0" + Array { + Type "Cell" + Dimension 16 + Cell "GeneratePreprocessorConditionals" + Cell "IncludeMdlTerminateFcn" + Cell "CombineOutputUpdateFcns" + Cell "SuppressErrorStatus" + Cell "ERTCustomFileBanners" + Cell "GenerateSampleERTMain" + Cell "GenerateTestInterfaces" + Cell "ModelStepFunctionPrototypeControlCompliant" + Cell "CPPClassGenCompliant" + Cell "MultiInstanceERTCode" + Cell "PurelyIntegerCode" + Cell "SupportComplex" + Cell "SupportAbsoluteTime" + Cell "SupportContinuousTime" + Cell "SupportNonInlinedSFcns" + Cell "PortableWordSizes" + PropName "DisabledProps" + } + TargetFcnLib "ansi_tfl_table_tmw.mat" + TargetLibSuffix "" + TargetPreCompLibLocation "" + TargetFunctionLibrary "ANSI_C" + UtilityFuncGeneration "Auto" + ERTMultiwordTypeDef "System defined" + ERTCodeCoverageTool "None" + ERTMultiwordLength 256 + MultiwordLength 2048 + GenerateFullHeader on + GenerateSampleERTMain off + GenerateTestInterfaces off + IsPILTarget off + ModelReferenceCompliant on + ParMdlRefBuildCompliant on + CompOptLevelCompliant on + IncludeMdlTerminateFcn on + GeneratePreprocessorConditionals "Disable all" + CombineOutputUpdateFcns off + CombineSignalStateStructs off + SuppressErrorStatus off + ERTFirstTimeCompliant off + IncludeFileDelimiter "Auto" + ERTCustomFileBanners off + SupportAbsoluteTime on + LogVarNameModifier "rt_" + MatFileLogging on + MultiInstanceERTCode off + SupportNonFinite on + SupportComplex on + PurelyIntegerCode off + SupportContinuousTime on + SupportNonInlinedSFcns on + SupportVariableSizeSignals off + EnableShiftOperators on + ParenthesesLevel "Nominal" + PortableWordSizes off + ModelStepFunctionPrototypeControlCompliant off + CPPClassGenCompliant off + AutosarCompliant off + UseMalloc off + ExtMode off + ExtModeStaticAlloc off + ExtModeTesting off + ExtModeStaticAllocSize 1000000 + ExtModeTransport 0 + ExtModeMexFile "ext_comm" + ExtModeIntrfLevel "Level1" + RTWCAPISignals off + RTWCAPIParams off + RTWCAPIStates off + GenerateASAP2 off + } + PropName "Components" + } + } + PropName "Components" + } + Name "Configuration" + CurrentDlgPage "Solver" + ConfigPrmDlgPosition " [ 200, 197, 1080, 827 ] " + } + PropName "ConfigurationSets" + } + Simulink.ConfigSet { + $PropName "ActiveConfigurationSet" + $ObjectID 1 + } + BlockDefaults { + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + NamePlacement "normal" + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + ShowName on + BlockRotation 0 + BlockMirror off + } + AnnotationDefaults { + HorizontalAlignment "center" + VerticalAlignment "middle" + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + UseDisplayTextAsClickCallback off + } + LineDefaults { + FontName "Helvetica" + FontSize 9 + FontWeight "normal" + FontAngle "normal" + } + BlockParameterDefaults { + Block { + BlockType Demux + Outputs "4" + DisplayOption "none" + BusSelectionMode off + } + Block { + BlockType Inport + Port "1" + OutMin "[]" + OutMax "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + SignalType "auto" + SamplingMode "auto" + LatchByDelayingOutsideSignal off + LatchInputForFeedbackSignals off + Interpolate on + } + Block { + BlockType Outport + Port "1" + OutMin "[]" + OutMax "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + SignalType "auto" + SamplingMode "auto" + SourceOfInitialOutputValue "Dialog" + OutputWhenDisabled "held" + InitialOutput "[]" + } + Block { + BlockType "S-Function" + FunctionName "system" + SFunctionModules "''" + PortCounts "[]" + SFunctionDeploymentMode off + } + Block { + BlockType SubSystem + ShowPortLabels "FromPortIcon" + Permissions "ReadWrite" + PermitHierarchicalResolution "All" + TreatAsAtomicUnit off + CheckFcnCallInpInsideContextMsg off + SystemSampleTime "-1" + RTWFcnNameOpts "Auto" + RTWFileNameOpts "Auto" + RTWMemSecFuncInitTerm "Inherit from model" + RTWMemSecFuncExecute "Inherit from model" + RTWMemSecDataConstants "Inherit from model" + RTWMemSecDataInternal "Inherit from model" + RTWMemSecDataParameters "Inherit from model" + SimViewingDevice off + DataTypeOverride "UseLocalSettings" + DataTypeOverrideAppliesTo "AllNumericTypes" + MinMaxOverflowLogging "UseLocalSettings" + Variant off + GeneratePreprocessorConditionals off + } + Block { + BlockType Terminator + } + } + System { + Name "ReadabilityExample" + Location [70, 200, 650, 460] + Open on + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + ReportName "simulink-default.rpt" + SIDHighWatermark "6" + Block { + BlockType SubSystem + Name "f" + SID "1" + Ports [2, 1] + Position [105, 64, 270, 131] + LibraryVersion "1.12" + UserDataPersistent on + UserData "DataTag0" + CopyFcn "TTdiag Copy" + DeleteFcn "TTdiag Delete" + OpenFcn "TTdiag Open Simulink" + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskDescription "Table Block" + MaskDisplay "port_label('input',1,'x');port_label('input',2,'y');port_label('output',1,'output');text(0.5," + " 0.9, 'Tabular Expression', 'horizontalAlignment', 'center')\ncolor('red')\ntext(0.5, 0.1, 'Not Checked', 'horiz" + "ontalAlignment', 'center')" + MaskIconFrame on + MaskIconOpaque on + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "normalized" + System { + Name "f" + Location [433, 447, 931, 747] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + Block { + BlockType Inport + Name "x" + SID "4" + Position [35, 38, 65, 52] + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "y" + SID "5" + Position [35, 38, 65, 52] + Port "2" + IconDisplay "Port number" + } + Block { + BlockType SubSystem + Name "code" + SID "3" + Ports [2, 1] + Position [250, 49, 320, 96] + LibraryVersion "1.31" + PermitHierarchicalResolution "ExplicitOnly" + TreatAsAtomicUnit on + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskType "Stateflow" + MaskDescription "Embedded MATLAB block" + MaskSelfModifiable on + MaskDisplay "disp('f');" + MaskIconFrame on + MaskIconOpaque off + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "autoscale" + System { + Name "code" + Location [257, 457, 812, 717] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + SIDHighWatermark "19" + Block { + BlockType Inport + Name "x" + SID "3::1" + Position [20, 101, 40, 119] + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "y" + SID "3::18" + Position [20, 136, 40, 154] + Port "2" + IconDisplay "Port number" + } + Block { + BlockType Demux + Name " Demux " + SID "3::15" + Ports [1, 1] + Position [270, 160, 320, 200] + Outputs "1" + } + Block { + BlockType "S-Function" + Name " SFunction " + SID "3::14" + Tag "Stateflow S-Function ReadabilityExample 2" + Ports [2, 2] + Position [180, 100, 230, 160] + FunctionName "sf_sfun" + PortCounts "[2 2]" + EnableBusSupport off + Port { + PortNumber 2 + Name "output" + RTWStorageClass "Auto" + DataLoggingNameMode "SignalName" + } + } + Block { + BlockType Terminator + Name " Terminator " + SID "3::17" + Position [460, 171, 480, 189] + } + Block { + BlockType Outport + Name "output" + SID "3::19" + Position [460, 101, 480, 119] + IconDisplay "Port number" + } + Line { + SrcBlock " SFunction " + SrcPort 1 + DstBlock " Demux " + DstPort 1 + } + Line { + SrcBlock "x" + SrcPort 1 + DstBlock " SFunction " + DstPort 1 + } + Line { + SrcBlock "y" + SrcPort 1 + DstBlock " SFunction " + DstPort 2 + } + Line { + Name "output" + Labels [0, 0] + SrcBlock " SFunction " + SrcPort 2 + DstBlock "output" + DstPort 1 + } + Line { + SrcBlock " Demux " + SrcPort 1 + DstBlock " Terminator " + DstPort 1 + } + } + } + Block { + BlockType Outport + Name "output" + SID "6" + Position [35, 53, 65, 67] + IconDisplay "Port number" + } + Line { + SrcBlock "x" + SrcPort 1 + DstBlock "code" + DstPort 1 + } + Line { + SrcBlock "y" + SrcPort 1 + DstBlock "code" + DstPort 2 + } + Line { + SrcBlock "code" + SrcPort 1 + DstBlock "output" + DstPort 1 + } + } + } + } +} +MatData { + NumRecords 1 + DataRecord { + Tag DataTag0 + Data " %)30 . > 8 ( $0 ! $ ! !-0T]3 0 $ $1A=&$. 2 8 ( #0 " + " % \" 8 ! 0 & & -T\" 0 $ ! !0 X !@- !@ @ ) 4" + " ( 0 # T ! ( P- %)30 . D#, 8 ( @ % \" $ ! 0 " + " % 0 !0 $ % 34-/4P . 2#, 8 ( $0 ! $ ! !-0T]3 0 T !&:6QE5W)A<'!E 0 $ #@ ) & \" D !0 @ " + "#0\" 0 $ @ - ( \" + -@! X @ . ( +@# !0\" T @ 1W)I9# 0V5L;', 0V5L;#$ 8" + "V]N9 !C;VYD7W1E>'0 8V5L;%]I;F1E> !P87)E;G1?9W)I9 !C96QL'1?;V9F'0 4D-E;&P 9G5N8W1I;" + "VY?;F%M90!F=6YC=&EO;E]I;G!U=', #P],0X X !@ @ & 4 ( 0 $ ! D ( " + " \\#\\. . 8 ( !@ % \" $ ! 0 ) \" $ _)Y #@ & & \"" + " $ !0 @ ! 0 $ #@ # & \" 0 !0 @ ! P $ $ " + " # '@^,0 . . 8 ( !@ % \" $ ! 0 ) \" ! #@ $@ & \"" + " T !0 @ & 0 $ !@ !@ #= @ $ ! !0 $ . . 8 ( !@ " + " % \" $ ! 0 ) \" / _#@ $@ & \" 8 !0 @ ! P" + " $ \"0 !@ #P/P / _ \\#\\. 4 8 ( #0 % \" < ! " + " 0 & ' -T\" 0 ( $ !@ ( #@ #@ & \" 8 !0 @ ! " + " 0 $ \"0 @ 0 X X !@ @ & 4 ( 0 $ ! D ( " + " \\#\\. 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ \" " + " P X !( !@ @ - 4 ( !@ $ ! 8 8 W0( ! 0 4 ! " + "#@ #@ & \" 8 !0 @ ! 0 $ \"0 @ #P/PX !( !@ @ & " + " 4 ( 0 , ! D 8 \\#\\ #P/P / _#@ $@ & \" T " + " !0 @ & 0 $ !@ !@ #= @ $ ! ! ( . . 8 ( !@ % \"" + " $ ! 0 ) \" $ U)Y #@ # & \" 0 !0 @ ! P $ $" + " # 'D\\, . . 8 ( !@ % \" $ ! 0 ) \" / _#@ #@ & " + "\" 8 !0 @ ! 0 $ \"0 @ ! 2?0 X !@ !@ @ ! 4 ( " + " 0 $ ! X P !@ @ $ 4 ( 0 0 ! ! ! !Y/3TP#@ #@ & \"" + " 8 !0 @ ! 0 $ \"0 @ 0 X !( !@ @ - 4 ( !@" + " $ ! 8 8 W0( ! 0 @ ! #@ #@ & \" 8 !0 @ ! 0 " + " $ \"0 @ #P/PX X !@ @ & 4 ( 0 $ ! D ( " + " \\#\\. . 8 ( !@ % \" $ ! 0 ) \" $ \")] #@ #@ & \"" + " 8 !0 @ ! 0 $ \"0 @ #P/PX !( !@ @ & 4 ( 0" + " , ! D 8 #'FGO3AH[S\\-3B(CT[+O/WUIEMW3-.T_#@ #@ & \" 8 !0 @ ! 0" + " $ \"0 @ ! !2?0 X !@ !@ @ ! 4 ( 0 $ ! X P !@ " + " @ $ 4 ( 0 , ! ! P!Y/C #@ #@ & \" 8 !0 @ ! 0 " + " $ \"0 @ (0 X !( !@ @ - 4 ( !@ $ ! 8 8 W" + "0( ! 0 @ ! #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ #P/" + "PX X !@ @ & 4 ( 0 $ ! D ( \\#\\. . 8 ( !@ " + " % \" $ ! 0 ) \" $ &)] #@ #@ & \" 8 !0 @ ! 0 " + " $ \"0 @ #P/PX !( !@ @ & 4 ( 0 , ! D 8 #'FGO" + "3AH[S\\-3B(CT[+O/WUIEMW3-.T_#@ % & \" T !0 @ ( 0 $ !@ \" #= @ " + " $ # !P D * @ X X !@ @ & 4 ( 0 $ ! D ( " + " \"$ . . 8 ( !@ % \" $ ! 0 ) \" ! #@ $@ & \" " + " T !0 @ & 0 $ !@ !@ #= @ $ ! @ , . . 8 ( !@ " + " % \" $ ! 0 ) \" $ W)Y #@ #@ & \" 8 !0 @ ! 0 " + " $ \"0 @ ! .\">0 X !( !@ @ - 4 ( !@ $ ! 8 8 W" + "0( ! 0 @ ! #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ #P/" + "PX X !@ @ & 4 ( 0 $ ! D ( \\#\\. . 8 ( !@ " + " % \" $ ! 0 ) \" $ V)Y #@ #@ & \" 8 !0 @ ! 0 " + " $ \"0 @ #P/PX !( !@ @ & 4 ( 0 , ! D 8 #'FGO" + "3AH[S\\-3B(CT[+O/WUIEMW3-.T_#@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ " + " $ ! !P ( . . 8 ( !@ % \" $ ! 0 ) \" $ \\)Y #@ " + " # & \" 0 !0 @ ! P $ $ # '@M>0 . 2 8 ( !@ % \" " + " $ # 0 ) & / _ \\#\\ #P/PX !( !@ @ - 4 ( !@ " + " $ ! 8 8 W0( ! 0 8 \" #@ $@ & \" T !0 @ & 0 " + " $ !@ !@ #= @ $ ! !P ( . . 8 ( !@ % \" $ ! 0 " + " ) \" $ )] #@ & & \" $ !0 @ ! 0 $ #@ # & \" " + " 0 !0 @ ! P $ $ # '@K>0 . 2 8 ( !@ % \" $ # 0 " + " ) & / _ \\#\\ #P/PX !( !@ @ - 4 ( !@ $ ! " + " 8 8 W0( ! 0 0 \" #@ $@ & \" T !0 @ & 0 $ !@ " + "!@ #= @ $ ! \"0 ( . . 8 ( !@ % \" $ ! 0 ) \" " + " $ #)] #@ & & \" $ !0 @ ! 0 $ #@ # & \" 0 !0 " + " @ ! P $ $ # '@J>0 . 2 8 ( !@ % \" $ # 0 ) & " + " / _ \\#\\ #P/PX !( !@ @ - 4 ( !@ $ ! 8 8 W" + "0( ! 0 8 \" #@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ " + " $ ! \"0 ( . . 8 ( !@ % \" $ ! 0 ) \" $ $)] #@ " + " & & \" $ !0 @ ! 0 $ #@ # & \" 0 !0 @ ! 0 " + " $ $ ! '@ . 2 8 ( !@ % \" $ # 0 ) & / _ " + " \\#\\ #P/PX !( !@ @ - 4 ( !@ $ ! 8 8 W0( ! 0 " + " 0 \" #@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! \"@ " + " ( . . 8 ( !@ % \" $ ! 0 ) \" $ ')] #@ & & \" " + " $ !0 @ ! 0 $ #@ # & \" 0 !0 @ ! P $ $ #" + " '@O>0 . 2 8 ( !@ % \" $ # 0 ) & / _ \\#\\ #" + "P/PX !( !@ @ - 4 ( !@ $ ! 8 8 W0( ! 0 8 \" #@ " + " $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! \"@ ( . . " + " 8 ( !@ % \" $ ! 0 ) \" $ ()] #@ & & \" $ !0 " + " @ ! 0 $ #@ # & \" 0 !0 @ ! 0 $ $ ! 'D . 2 " + " 8 ( !@ % \" $ # 0 ) & / _ \\#\\ #P/PX !@ !@ " + " @ - 4 ( \"P $ ! 8 L W0( ! !@ , + # T . #P " + " 0 #@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! !0 " + " $ . 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ ( 0 " + " X !( !@ @ - 4 ( !@ $ ! 8 8 W0( ! 0 ( # #@ $@" + " & \" T !0 @ & 0 $ !@ !@ #= @ $ ! !0 $ . 2 8 " + " ( #0 % \" 8 ! 0 & & -T\" 0 $ ( 0 X P !@ @ " + " $ 4 ( 0 $ ! ! 0!F #@ # & \" 0 !0 @ ! P $ " + " $ # '@L>0 . 4 $ 8 ( @ % \" $ ! 0 % 0 !P $ < '0 8V5L;%]I;F1E" + "> '!A'1?> &-O;F1I=&EO;E]T97AT7WD !C;VYD:71I;VY?=&5X=%]O9F9S970 9W" + ")I9%]P=7-H7W=I9'1H X P !@ @ & 4 ( ! D #@ # &" + " \" 8 !0 @ $ \"0 . , 8 ( !@ % \" " + " 0 ) X X !@ @ & 4 ( 0 $ ! D ( . " + " , 8 ( !@ % \" 0 ) X X !@ @ & 4 ( " + " 0 $ ! D ( . . 8 ( !@ % \" $ ! 0 ) " + " \" #@ # & \" 8 !0 @ $ \"0 . . 8 ( " + " !@ % \" $ ! 0 ) \" #@ # & \" 8 !0 @ " + " $ \"0 . . 8 ( !@ % \" $ ! 0 ) \" " + " &E #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ !.0 X X !@ @ &" + " 4 ( 0 $ ! D ( )$ . . 8 ( !@ % \" $ ! " + " 0 ) \" \"1 #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ " + " T0 X X !@ @ & 4 ( 0 $ ! D ( /D . ^ 8 ( " + " @ % \" $ ! 0 % 0 !@ $ 2 0V5L;', 1W)I9#$ 1W)I9#( #@ # & " + " \" 8 !0 @ $ \"0 . , 8 ( !@ % \" " + " 0 ) X P !@ @ & 4 ( ! D #@ ) ! & " + " \" ( !0 @ ! 0 $ !0 $ P ! / $-E;&PQ $-E;&PR ')E1)\n output = x+y;\n end\nelseif(y==0)\n if(x<=1)\n output = x*y;\n elseif(x>1)\n output = x;\n e" + "nd\nelseif(y>0)\n if(x<=1)\n output = x/y;\n elseif(x>1)\n output = y;\n end\nend\n" + editorLayout "100 M4x1[205 227 1080 733]" + } + } + junction { + id 4 + position [23.5747 49.5747 7] + chart 2 + linkNode [2 0 0] + subviewer 2 + ssIdNumber 3 + type CONNECTIVE_JUNCTION + } + transition { + id 5 + labelString "{eML_blk_kernel();}" + labelPosition [32.125 19.875 102.544 14.964] + fontSize 12 + src { + intersection [0 0 1 0 23.5747 14.625 0 0] + } + dst { + id 4 + intersection [7 0 -1 -1 23.5747 42.5747 0 0] + } + midPoint [23.5747 24.9468] + chart 2 + linkNode [2 0 0] + dataLimits [23.575 23.575 14.625 34.575] + subviewer 2 + drawStyle SMART + executionOrder 1 + ssIdNumber 2 + } + data { + id 6 + ssIdNumber 4 + name "x" + linkNode [2 0 7] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + } + complexity SF_COMPLEX_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 7 + ssIdNumber 5 + name "y" + linkNode [2 6 8] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_NO + } + dataType "Inherit: Same as Simulink" + } + data { + id 8 + ssIdNumber 6 + name "output" + linkNode [2 7 0] + scope OUTPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_NO + } + dataType "Inherit: Same as Simulink" + } + instance { + id 9 + name "f/code" + machine 1 + chart 2 + } + target { + id 10 + name "sfun" + description "Default Simulink S-Function Target." + machine 1 + linkNode [1 0 0] + } +} diff --git a/Examples/debug2.mdl b/Examples/debug2.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1df69e844aff3a857781a312c3781b7140d7d78c --- /dev/null +++ b/Examples/debug2.mdl @@ -0,0 +1,1287 @@ +Model { + Name "debug2" + Version 7.5 + MdlSubVersion 0 + GraphicalInterface { + NumRootInports 0 + NumRootOutports 0 + ParameterArgumentNames "" + ComputedModelVersion "1.2" + NumModelReferences 0 + NumTestPointedSignals 0 + } + SavedCharacterEncoding "UTF-8" + SaveDefaultBlockParams on + ScopeRefreshTime 0.035000 + OverrideScopeRefreshTime on + DisableAllScopes off + DataTypeOverride "UseLocalSettings" + MinMaxOverflowLogging "UseLocalSettings" + MinMaxOverflowArchiveMode "Overwrite" + MaxMDLFileLineLength 120 + Created "Fri Oct 29 10:07:13 2010" + Creator "lawford" + UpdateHistory "UpdateHistoryNever" + ModifiedByFormat "%" + LastModifiedBy "lawford" + ModifiedDateFormat "%" + LastModifiedDate "Fri Oct 29 10:22:20 2010" + RTWModifiedTimeStamp 210248460 + ModelVersionFormat "1.%" + ConfigurationManager "None" + SampleTimeColors off + SampleTimeAnnotations off + LibraryLinkDisplay "none" + WideLines off + ShowLineDimensions off + ShowPortDataTypes off + ShowLoopsOnError on + IgnoreBidirectionalLines off + ShowStorageClass off + ShowTestPointIcons on + ShowSignalResolutionIcons on + ShowViewerIcons on + SortedOrder off + ExecutionContextIcon off + ShowLinearizationAnnotations on + BlockNameDataTip off + BlockParametersDataTip off + BlockDescriptionStringDataTip off + ToolBar on + StatusBar on + BrowserShowLibraryLinks off + BrowserLookUnderMasks off + SimulationMode "normal" + LinearizationMsg "none" + Profile off + ParamWorkspaceSource "MATLABWorkspace" + AccelSystemTargetFile "accel.tlc" + AccelTemplateMakefile "accel_default_tmf" + AccelMakeCommand "make_rtw" + TryForcingSFcnDF off + RecordCoverage off + CovPath "/" + CovSaveName "covdata" + CovMetricSettings "dw" + CovNameIncrementing off + CovHtmlReporting on + CovForceBlockReductionOff on + covSaveCumulativeToWorkspaceVar on + CovSaveSingleToWorkspaceVar on + CovCumulativeVarName "covCumulativeData" + CovCumulativeReport off + CovReportOnPause on + CovModelRefEnable "Off" + CovExternalEMLEnable 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 on + ShowModelReferenceBlockVersion off + ShowModelReferenceBlockIO off + Array { + Type "Handle" + Dimension 1 + Simulink.ConfigSet { + $ObjectID 1 + Version "1.10.0" + Array { + Type "Handle" + Dimension 8 + Simulink.SolverCC { + $ObjectID 2 + Version "1.10.0" + StartTime "0.0" + StopTime "10.0" + AbsTol "auto" + FixedStep "auto" + InitialStep "auto" + MaxNumMinSteps "-1" + MaxOrder 5 + ZcThreshold "auto" + ConsecutiveZCsStepRelTol "10*128*eps" + MaxConsecutiveZCs "1000" + ExtrapolationOrder 4 + NumberNewtonIterations 1 + MaxStep "auto" + MinStep "auto" + MaxConsecutiveMinStep "1" + RelTol "1e-3" + SolverMode "Auto" + Solver "ode45" + SolverName "ode45" + SolverJacobianMethodControl "auto" + ShapePreserveControl "DisableAll" + ZeroCrossControl "UseLocalSettings" + ZeroCrossAlgorithm "Nonadaptive" + AlgebraicLoopSolver "TrustRegion" + SolverResetMethod "Fast" + PositivePriorityOrder off + AutoInsertRateTranBlk off + SampleTimeConstraint "Unconstrained" + InsertRTBMode "Whenever possible" + } + Simulink.DataIOCC { + $ObjectID 3 + Version "1.10.0" + Decimation "1" + ExternalInput "[t, u]" + FinalStateName "xFinal" + InitialState "xInitial" + LimitDataPoints on + MaxDataPoints "1000" + LoadExternalInput off + LoadInitialState off + SaveFinalState off + SaveCompleteFinalSimState off + SaveFormat "Array" + SaveOutput on + SaveState off + SignalLogging on + DSMLogging on + InspectSignalLogs off + SaveTime on + ReturnWorkspaceOutputs off + StateSaveName "xout" + TimeSaveName "tout" + OutputSaveName "yout" + SignalLoggingName "logsout" + DSMLoggingName "dsmout" + OutputOption "RefineOutputTimes" + OutputTimes "[]" + ReturnWorkspaceOutputsName "out" + Refine "1" + } + Simulink.OptimizationCC { + $ObjectID 4 + Version "1.10.0" + Array { + Type "Cell" + Dimension 7 + Cell "BooleansAsBitfields" + Cell "PassReuseOutputArgsAs" + Cell "PassReuseOutputArgsThreshold" + Cell "ZeroExternalMemoryAtStartup" + Cell "ZeroInternalMemoryAtStartup" + Cell "OptimizeModelRefInitCode" + Cell "NoFixptDivByZeroProtection" + PropName "DisabledProps" + } + BlockReduction on + BooleanDataType on + ConditionallyExecuteInputs on + InlineParams off + UseIntDivNetSlope off + InlineInvariantSignals off + OptimizeBlockIOStorage on + BufferReuse on + EnhancedBackFolding off + StrengthReduction off + EnforceIntegerDowncast on + ExpressionFolding on + BooleansAsBitfields off + BitfieldContainerType "uint_T" + EnableMemcpy on + MemcpyThreshold 64 + PassReuseOutputArgsAs "Structure reference" + ExpressionDepthLimit 2147483647 + FoldNonRolledExpr on + LocalBlockOutputs on + RollThreshold 5 + SystemCodeInlineAuto off + StateBitsets off + DataBitsets off + UseTempVars off + ZeroExternalMemoryAtStartup on + ZeroInternalMemoryAtStartup on + InitFltsAndDblsToZero off + NoFixptDivByZeroProtection off + EfficientFloat2IntCast off + EfficientMapNaN2IntZero on + OptimizeModelRefInitCode off + LifeSpan "inf" + MaxStackSize "Inherit from target" + BufferReusableBoundary on + SimCompilerOptimization "Off" + AccelVerboseBuild off + } + Simulink.DebuggingCC { + $ObjectID 5 + Version "1.10.0" + RTPrefix "error" + ConsistencyChecking "none" + ArrayBoundsChecking "none" + SignalInfNanChecking "none" + SignalRangeChecking "none" + ReadBeforeWriteMsg "UseLocalSettings" + WriteAfterWriteMsg "UseLocalSettings" + WriteAfterReadMsg "UseLocalSettings" + AlgebraicLoopMsg "warning" + ArtificialAlgebraicLoopMsg "warning" + SaveWithDisabledLinksMsg "warning" + SaveWithParameterizedLinksMsg "warning" + CheckSSInitialOutputMsg on + UnderspecifiedInitializationDetection "Classic" + MergeDetectMultiDrivingBlocksExec "none" + CheckExecutionContextPreStartOutputMsg off + CheckExecutionContextRuntimeOutputMsg off + SignalResolutionControl "UseLocalSettings" + BlockPriorityViolationMsg "warning" + MinStepSizeMsg "warning" + TimeAdjustmentMsg "none" + MaxConsecutiveZCsMsg "error" + SolverPrmCheckMsg "warning" + InheritedTsInSrcMsg "warning" + DiscreteInheritContinuousMsg "warning" + MultiTaskDSMMsg "error" + MultiTaskCondExecSysMsg "error" + MultiTaskRateTransMsg "error" + SingleTaskRateTransMsg "none" + TasksWithSamePriorityMsg "warning" + SigSpecEnsureSampleTimeMsg "warning" + CheckMatrixSingularityMsg "none" + IntegerOverflowMsg "warning" + Int32ToFloatConvMsg "warning" + ParameterDowncastMsg "error" + ParameterOverflowMsg "error" + ParameterUnderflowMsg "none" + ParameterPrecisionLossMsg "warning" + ParameterTunabilityLossMsg "warning" + FixptConstUnderflowMsg "none" + FixptConstOverflowMsg "none" + FixptConstPrecisionLossMsg "none" + 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" + UnknownTsInhSupMsg "warning" + ModelReferenceDataLoggingMessage "warning" + ModelReferenceSymbolNameMessage "warning" + ModelReferenceExtraNoncontSigs "error" + StateNameClashWarn "warning" + SimStateInterfaceChecksumMismatchMsg "warning" + StrictBusMsg "ErrorLevel1" + BusNameAdapt "WarnAndRepair" + NonBusSignalsTreatedAsBus "none" + LoggingUnavailableSignals "error" + BlockIODiagnostic "none" + } + Simulink.HardwareCC { + $ObjectID 6 + Version "1.10.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 off + ProdEqTarget on + } + Simulink.ModelReferenceCC { + $ObjectID 7 + Version "1.10.0" + UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" + CheckModelReferenceTargetMessage "error" + EnableParallelModelReferenceBuilds off + ParallelModelReferenceMATLABWorkerInit "None" + ModelReferenceNumInstancesAllowed "Multi" + PropagateVarSize "Infer from blocks in model" + ModelReferencePassRootInputsByReference on + ModelReferenceMinAlgLoopOccurrences off + PropagateSignalLabelsOutOfModel off + SupportModelReferenceSimTargetCustomCode off + } + Simulink.SFSimCC { + $ObjectID 8 + Version "1.10.0" + SFSimEnableDebug on + SFSimOverflowDetection on + SFSimEcho on + SimBlas on + SimCtrlC on + SimExtrinsic on + SimIntegrity on + SimUseLocalCustomCode off + SimBuildMode "sf_incremental_build" + } + Simulink.RTWCC { + $BackupClass "Simulink.RTWCC" + $ObjectID 9 + Version "1.10.0" + Array { + Type "Cell" + Dimension 6 + Cell "IncludeHyperlinkInReport" + Cell "GenerateTraceInfo" + Cell "GenerateTraceReport" + Cell "GenerateTraceReportSl" + Cell "GenerateTraceReportSf" + Cell "GenerateTraceReportEml" + PropName "DisabledProps" + } + SystemTargetFile "grt.tlc" + GenCodeOnly off + MakeCommand "make_rtw" + GenerateMakefile on + 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 + RTWUseLocalCustomCode off + RTWUseSimCustomCode off + IncludeHyperlinkInReport off + LaunchReport off + TargetLang "C" + IncludeBusHierarchyInRTWFileBlockHierarchyMap off + IncludeERTFirstTime off + GenerateTraceInfo off + GenerateTraceReport off + GenerateTraceReportSl off + GenerateTraceReportSf off + GenerateTraceReportEml off + GenerateCodeInfo off + RTWCompilerOptimization "Off" + CheckMdlBeforeBuild "Off" + CustomRebuildMode "OnUpdate" + Array { + Type "Handle" + Dimension 2 + Simulink.CodeAppCC { + $ObjectID 10 + Version "1.10.0" + Array { + Type "Cell" + Dimension 19 + Cell "IgnoreCustomStorageClasses" + Cell "IgnoreTestpoints" + Cell "InsertBlockDesc" + Cell "SFDataObjDesc" + Cell "SimulinkDataObjDesc" + Cell "DefineNamingRule" + Cell "SignalNamingRule" + Cell "ParamNamingRule" + Cell "InlinedPrmAccess" + Cell "CustomSymbolStr" + Cell "CustomSymbolStrGlobalVar" + Cell "CustomSymbolStrType" + Cell "CustomSymbolStrField" + Cell "CustomSymbolStrFcn" + Cell "CustomSymbolStrFcnArg" + Cell "CustomSymbolStrBlkIO" + Cell "CustomSymbolStrTmpVar" + Cell "CustomSymbolStrMacro" + Cell "ReqsInCode" + PropName "DisabledProps" + } + ForceParamTrailComments off + GenerateComments on + IgnoreCustomStorageClasses on + IgnoreTestpoints off + IncHierarchyInIds off + MaxIdLength 31 + PreserveName off + PreserveNameWithParent off + ShowEliminatedStatement off + IncAutoGenComments off + SimulinkDataObjDesc off + SFDataObjDesc off + IncDataTypeInIds off + MangleLength 1 + CustomSymbolStrGlobalVar "$R$N$M" + CustomSymbolStrType "$N$R$M" + CustomSymbolStrField "$N$M" + CustomSymbolStrFcn "$R$N$M$F" + CustomSymbolStrFcnArg "rt$I$N$M" + CustomSymbolStrBlkIO "rtb_$N$M" + CustomSymbolStrTmpVar "$N$M" + CustomSymbolStrMacro "$R$N$M" + DefineNamingRule "None" + ParamNamingRule "None" + SignalNamingRule "None" + InsertBlockDesc off + SimulinkBlockComments on + EnableCustomComments off + InlinedPrmAccess "Literals" + ReqsInCode off + UseSimReservedNames off + } + Simulink.GRTTargetCC { + $BackupClass "Simulink.TargetCC" + $ObjectID 11 + Version "1.10.0" + Array { + Type "Cell" + Dimension 17 + Cell "GeneratePreprocessorConditionals" + Cell "IncludeMdlTerminateFcn" + Cell "CombineOutputUpdateFcns" + Cell "SuppressErrorStatus" + Cell "ERTCustomFileBanners" + Cell "GenerateSampleERTMain" + Cell "GenerateTestInterfaces" + Cell "ModelStepFunctionPrototypeControlCompliant" + Cell "CPPClassGenCompliant" + Cell "MultiInstanceERTCode" + Cell "PurelyIntegerCode" + Cell "SupportNonFinite" + Cell "SupportComplex" + Cell "SupportAbsoluteTime" + Cell "SupportContinuousTime" + Cell "SupportNonInlinedSFcns" + Cell "PortableWordSizes" + PropName "DisabledProps" + } + TargetFcnLib "ansi_tfl_table_tmw.mat" + TargetLibSuffix "" + TargetPreCompLibLocation "" + TargetFunctionLibrary "ANSI_C" + UtilityFuncGeneration "Auto" + ERTMultiwordTypeDef "System defined" + ERTCodeCoverageTool "None" + ERTMultiwordLength 256 + MultiwordLength 2048 + GenerateFullHeader on + GenerateSampleERTMain off + GenerateTestInterfaces off + IsPILTarget off + ModelReferenceCompliant on + ParMdlRefBuildCompliant on + CompOptLevelCompliant on + IncludeMdlTerminateFcn on + GeneratePreprocessorConditionals "Disable all" + CombineOutputUpdateFcns off + SuppressErrorStatus off + ERTFirstTimeCompliant off + IncludeFileDelimiter "Auto" + ERTCustomFileBanners off + SupportAbsoluteTime on + LogVarNameModifier "rt_" + MatFileLogging on + MultiInstanceERTCode off + SupportNonFinite on + SupportComplex on + PurelyIntegerCode off + SupportContinuousTime on + SupportNonInlinedSFcns on + SupportVariableSizeSignals off + EnableShiftOperators on + ParenthesesLevel "Nominal" + PortableWordSizes off + ModelStepFunctionPrototypeControlCompliant off + CPPClassGenCompliant off + AutosarCompliant off + UseMalloc off + ExtMode off + ExtModeStaticAlloc off + ExtModeTesting off + ExtModeStaticAllocSize 1000000 + ExtModeTransport 0 + ExtModeMexFile "ext_comm" + ExtModeIntrfLevel "Level1" + RTWCAPISignals off + RTWCAPIParams off + RTWCAPIStates off + GenerateASAP2 off + } + PropName "Components" + } + } + PropName "Components" + } + Name "Configuration" + CurrentDlgPage "Solver" + ConfigPrmDlgPosition " [ 200, 197, 1080, 827 ] " + } + PropName "ConfigurationSets" + } + Simulink.ConfigSet { + $PropName "ActiveConfigurationSet" + $ObjectID 1 + } + BlockDefaults { + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + NamePlacement "normal" + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + ShowName on + BlockRotation 0 + BlockMirror off + } + AnnotationDefaults { + HorizontalAlignment "center" + VerticalAlignment "middle" + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + UseDisplayTextAsClickCallback off + } + LineDefaults { + FontName "Helvetica" + FontSize 9 + FontWeight "normal" + FontAngle "normal" + } + BlockParameterDefaults { + Block { + BlockType Demux + Outputs "4" + DisplayOption "none" + BusSelectionMode off + } + Block { + BlockType Inport + Port "1" + UseBusObject off + BusObject "BusObject" + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + OutMin "[]" + OutMax "[]" + DataType "auto" + OutDataType "fixdt(1,16,0)" + OutScaling "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + SignalType "auto" + SamplingMode "auto" + LatchByDelayingOutsideSignal off + LatchInputForFeedbackSignals off + Interpolate on + } + Block { + BlockType Outport + Port "1" + UseBusObject off + BusObject "BusObject" + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + OutMin "[]" + OutMax "[]" + DataType "auto" + OutDataType "fixdt(1,16,0)" + OutScaling "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + SignalType "auto" + SamplingMode "auto" + SourceOfInitialOutputValue "Dialog" + OutputWhenDisabled "held" + InitialOutput "[]" + } + Block { + BlockType "S-Function" + FunctionName "system" + SFunctionModules "''" + PortCounts "[]" + SFunctionDeploymentMode off + } + Block { + BlockType SubSystem + ShowPortLabels "FromPortIcon" + Permissions "ReadWrite" + PermitHierarchicalResolution "All" + TreatAsAtomicUnit off + CheckFcnCallInpInsideContextMsg off + SystemSampleTime "-1" + RTWFcnNameOpts "Auto" + RTWFileNameOpts "Auto" + RTWMemSecFuncInitTerm "Inherit from model" + RTWMemSecFuncExecute "Inherit from model" + RTWMemSecDataConstants "Inherit from model" + RTWMemSecDataInternal "Inherit from model" + RTWMemSecDataParameters "Inherit from model" + SimViewingDevice off + DataTypeOverride "UseLocalSettings" + MinMaxOverflowLogging "UseLocalSettings" + } + Block { + BlockType Terminator + } + } + System { + Name "debug2" + Location [598, 147, 1178, 407] + Open on + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + ReportName "simulink-default.rpt" + SIDHighWatermark 6 + Block { + BlockType SubSystem + Name "f_output" + SID 1 + Ports [2, 1] + Position [115, 59, 280, 126] + LibraryVersion "1.12" + UserDataPersistent on + UserData "DataTag0" + CopyFcn "TTdiag Copy" + DeleteFcn "TTdiag Delete" + OpenFcn "TTdiag Open Simulink" + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskDescription "Table Block" + MaskDisplay "port_label('input',1,'x');port_label('input',2,'y');port_label('output',1,'output');text(0.5," + " 0.9, 'Tabular Expression', 'horizontalAlignment', 'center')\ncolor('red')\ntext(0.5, 0.1, 'Not Checked', 'horiz" + "ontalAlignment', 'center')" + MaskIconFrame on + MaskIconOpaque on + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "normalized" + System { + Name "f_output" + Location [433, 447, 931, 747] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + Block { + BlockType Inport + Name "x" + SID 4 + Position [35, 38, 65, 52] + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "y" + SID 5 + Position [35, 38, 65, 52] + Port "2" + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType SubSystem + Name "code" + SID 3 + Ports [2, 1] + Position [250, 49, 320, 96] + LibraryVersion "1.31" + PermitHierarchicalResolution "ExplicitOnly" + TreatAsAtomicUnit on + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskType "Stateflow" + MaskDescription "Embedded MATLAB block" + MaskDisplay "disp('f_output');" + MaskSelfModifiable on + MaskIconFrame on + MaskIconOpaque off + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "autoscale" + System { + Name "code" + Location [257, 457, 812, 717] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + SIDHighWatermark 19 + SIDPrevWatermark 13 + Block { + BlockType Inport + Name "x" + SID 1 + Position [20, 101, 40, 119] + IconDisplay "Port number" + OutDataType "sfix(16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "y" + SID 18 + Position [20, 136, 40, 154] + Port "2" + IconDisplay "Port number" + } + Block { + BlockType Demux + Name " Demux " + SID 15 + Ports [1, 1] + Position [270, 160, 320, 200] + Outputs "1" + } + Block { + BlockType "S-Function" + Name " SFunction " + SID 14 + Tag "Stateflow S-Function debug2 2" + Ports [2, 2] + Position [180, 100, 230, 160] + FunctionName "sf_sfun" + PortCounts "[2 2]" + EnableBusSupport off + Port { + PortNumber 2 + Name "output" + RTWStorageClass "Auto" + DataLoggingNameMode "SignalName" + } + } + Block { + BlockType Terminator + Name " Terminator " + SID 17 + Position [460, 171, 480, 189] + } + Block { + BlockType Outport + Name "output" + SID 19 + Position [460, 101, 480, 119] + IconDisplay "Port number" + } + Line { + SrcBlock " SFunction " + SrcPort 1 + DstBlock " Demux " + DstPort 1 + } + Line { + SrcBlock "x" + SrcPort 1 + DstBlock " SFunction " + DstPort 1 + } + Line { + SrcBlock "y" + SrcPort 1 + DstBlock " SFunction " + DstPort 2 + } + Line { + Name "output" + Labels [0, 0] + SrcBlock " SFunction " + SrcPort 2 + DstBlock "output" + DstPort 1 + } + Line { + SrcBlock " Demux " + SrcPort 1 + DstBlock " Terminator " + DstPort 1 + } + } + } + Block { + BlockType Outport + Name "output" + SID 6 + Position [35, 53, 65, 67] + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Line { + SrcBlock "x" + SrcPort 1 + DstBlock "code" + DstPort 1 + } + Line { + SrcBlock "y" + SrcPort 1 + DstBlock "code" + DstPort 2 + } + Line { + SrcBlock "code" + SrcPort 1 + DstBlock "output" + DstPort 1 + } + } + } + } +} +MatData { + NumRecords 1 + DataRecord { + Tag DataTag0 + Data " %)30 . > 8 ( $0 ! $ ! !-0T]3 0 $ $1A=&$. 2 8 ( #0 " + " % \" 8 ! 0 & & -T\" 0 $ ! !0 X \"00@ !@ @ ) " + "4 ( 0 &!\" ! ( !@0@ %)30 . P$$ 8 ( @ % \" $ ! 0 " + " % 0 !0 $ % 34-/4P . >$$ 8 ( $0 ! $ ! !-0T]3 0 T !&:6QE5W)A<'!E" + " L 1W)I9# 0V5L;', 0V5L;#" + "$ 8V]N9 !C;VYD7W1E>'0 8V5L;%]I;F1E> !P87)E;G1?9W)I9 !C96QL'1?;V9F'0 4D-E;&P 9G5N8W" + "1I;VY?;F%M90!F=6YC=&EO;E]I;G!U=', 0 X P !@ @ $ " + " 4 ( 0 , ! ! P!X/'D #@ #@ & \" 8 !0 @ ! 0 $ " + "\"0 @ #P/PX X !@ @ & 4 ( 0 $ ! D ( @ #$GD . 8" + " 8 ( 0 % \" $ ! 0 . , 8 ( ! % \" $ $ " + "0 0 0 >#T]>0X X !@ @ & 4 ( 0 $ ! D ( $ . 2 " + " 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ % 0 X X !@ " + " @ & 4 ( 0 $ ! D ( \\#\\. 2 8 ( !@ % \" " + " $ # 0 ) & / _ \\#\\ #P/PX X !@ @ & 4 ( 0" + " $ ! D ( &@GT . 8 8 ( 0 % \" $ ! 0 . , " + " 8 ( ! % \" $ # 0 0 , >#YY X X !@ @ & 4 ( 0 " + " $ ! D ( \"$ . 2 8 ( #0 % \" 8 ! 0 & & " + " -T\" 0 $ % 0 X X !@ @ & 4 ( 0 $ ! D ( " + " \\#\\. 2 8 ( !@ % \" $ # 0 ) & / _ \\#\\ " + "#P/PX !0 !@ @ - 4 ( \" $ ! 8 @ W0( ! P 0 & !P " + " ( . . 8 ( !@ % \" $ ! 0 ) \" A #@ #@ & \" " + " 8 !0 @ ! 0 $ \"0 @ #P/PX !( !@ @ - 4 ( !@ " + " $ ! 8 8 W0( ! 0 ( # #@ $@ & \" T !0 @ & 0 " + " $ !@ !@ #= @ $ ! !0 $ . . 8 ( !@ % \" $ ! 0 " + " ) \" / _#@ $@ & \" 8 !0 @ ! P $ \"0 !@ #P" + "/P / _ \\#\\. 2 8 ( #0 % \" 8 ! 0 & & -T\" 0" + " $ $ @ X X !@ @ & 4 ( 0 $ ! D ( @ \"#PP X X !@ @ & 4 ( 0 " + " $ ! D ( \\#\\. 2 8 ( #0 % \" 8 ! 0 & & " + " -T\" 0 $ * @ X X !@ @ & 4 ( 0 $ ! D ( " + "H #8GT . 8 8 ( 0 % \" $ ! 0 . , 8 ( ! % \" " + " $ $ 0 0 0 >3XQ-0X X !@ @ & 4 ( 0 $ ! D ( " + " \\#\\. 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ + 0 " + " X X !@ @ & 4 ( 0 $ ! D ( \\#\\. . 8 ( !@ " + " % \" $ ! 0 ) \" / _#@ #@ & \" 8 !0 @ ! 0 " + " $ \"0 @ \"@ -R?0 X X !@ @ & 4 ( 0 $ ! D ( " + " \\#\\. 2 8 ( !@ % \" $ # 0 ) & &K7A&4Q#^\\_R .ZH>#F[#\\S5EG\"" + "IZ_M/PX X !@ @ & 4 ( 0 $ ! D ( H #@GT . : 8 ( 0" + " % \" $ ! 0 . . 8 ( ! % \" $ % 0 0 !0" + " 'D\\/3$U #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ 0 X !( !" + "@ @ - 4 ( !@ $ ! 8 8 W0( ! 0 L ! #@ #@ & \" " + " 8 !0 @ ! 0 $ \"0 @ #P/PX X !@ @ & 4 ( 0 " + " $ ! D ( \\#\\. . 8 ( !@ % \" $ ! 0 ) \"" + " * Y)] #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ #P/PX !( !" + "@ @ & 4 ( 0 , ! D 8 :M>$93$/[S_( [JAX.;L/S-66<*GK^T_#@ % & \" " + " T !0 @ ' 0 $ !@ !P #= @ $ \" # T \" X X !@" + " @ & 4 ( 0 $ ! D ( $ . . 8 ( !@ % \" " + " $ ! 0 ) \" ! #@ $@ & \" T !0 @ & 0 $ !@ " + " !@ #= @ $ ! @ , . . 8 ( !@ % \" $ ! 0 ) \" " + " ( Z)] #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ \" .R?0 X !( !@" + " @ - 4 ( !@ $ ! 8 8 W0( ! 0 L ! #@ #@ & \" " + " 8 !0 @ ! 0 $ \"0 @ \" -2?0 X !@ !@ @ ! 4 ( 0 " + " $ ! X P !@ @ $ 4 ( 0 0 ! ! ! !X/CTP#@ #@ & \" " + " 8 !0 @ ! 0 $ \"0 @ 0 X !( !@ @ - 4 ( !@ " + " $ ! 8 8 W0( ! 0 D ! #@ #@ & \" 8 !0 @ ! 0 " + "$ \"0 @ #P/PX X !@ @ & 4 ( 0 $ ! D ( " + " $ . . 8 ( !@ % \" $ ! 0 ) \" ( V)] #@ $@ & \" " + "8 !0 @ ! P $ \"0 !@ ,>:>].&CO/PU.(B/3LN\\_?6F6W=,T[3\\. 4 8 ( #0 " + " % \" < ! 0 & ' -T\" 0 ( ( \"@ ( #@ #@ & \" " + " 8 !0 @ ! 0 $ \"0 @ 0 X X !@ @ & 4 ( 0 " + " $ ! D ( $ . 2 8 ( #0 % \" 8 ! 0 & & " + " -T\" 0 $ \" P X X !@ @ & 4 ( 0 $ ! D ( @" + " \"DGD . . 8 ( !@ % \" $ ! 0 ) \" ( J)Y #@ $@ & \" " + " T !0 @ & 0 $ !@ !@ #= @ $ ! \"0 $ . . 8 ( !@ " + " % \" $ ! 0 ) \" ! #@ #@ & \" 8 !0 @ ! 0 " + " $ \"0 @ #P/PX X !@ @ & 4 ( 0 $ ! D ( " + "@ \"@GD . . 8 ( !@ % \" $ ! 0 ) \" / _#@ $@ & \" " + " 8 !0 @ ! P $ \"0 !@ ,>:>].&CO/PU.(B/3LN\\_?6F6W=,T[3\\. 2 8 ( #" + "0 % \" 8 ! 0 & & -T\" 0 $ ( @ X X !@ @ & " + " 4 ( 0 $ ! D ( @ \"XGD . , 8 ( ! % \" $ ! " + "0 0 $ ,0 X !( !@ @ & 4 ( 0 , ! D 8 \\#\\ " + " #P/P / _#@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! !@" + " ( . 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ ( @" + " X X !@ @ & 4 ( 0 $ ! D ( @ #(GD . 8 8 ( 0 " + " % \" $ ! 0 . , 8 ( ! % \" $ ! 0 0 $ ,@ " + " X !( !@ @ & 4 ( 0 , ! D 8 \\#\\ #P/P / _#@ " + " $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! !P ( . 2 " + " 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ ( @ X X !@ " + " @ & 4 ( 0 $ ! D ( P \"DGT . 8 8 ( 0 % \" " + " $ ! 0 . , 8 ( ! % \" $ ! 0 0 $ ,P X !( !@ " + "@ & 4 ( 0 , ! D 8 \\#\\ #P/P / _#@ $@ & \" " + " T !0 @ & 0 $ !@ !@ #= @ $ ! ! ( . 2 8 ( #0 " + " % \" 8 ! 0 & & -T\" 0 $ , @ X X !@ @ & 4" + " ( 0 $ ! D ( @ #PGT . 8 8 ( 0 % \" $ ! 0 " + " . , 8 ( ! % \" $ ! 0 0 $ - X !( !@ @ & 4 " + " ( 0 , ! D 8 \\#\\ #P/P / _#@ $@ & \" T !0 @ " + " & 0 $ !@ !@ #= @ $ ! !@ ( . 2 8 ( #0 % \" 8 " + " ! 0 & & -T\" 0 $ , @ X X !@ @ & 4 ( 0 $ " + " ! D ( @ #TGT . 8 8 ( 0 % \" $ ! 0 . , 8 " + "( ! % \" $ ! 0 0 $ -0 X !( !@ @ & 4 ( 0 , !" + " D 8 \\#\\ #P/P / _#@ $@ & \" T !0 @ & 0 $ " + " !@ !@ #= @ $ ! !P ( . 2 8 ( #0 % \" 8 ! 0 &" + " & -T\" 0 $ , @ X X !@ @ & 4 ( 0 $ ! D ( " + " @ #XGT . 8 8 ( 0 % \" $ ! 0 . , 8 ( ! % " + " \" $ ! 0 0 $ -@ X !( !@ @ & 4 ( 0 , ! D 8 " + " \\#\\ #P/P / _#@ $@ & \" T !0 @ & 0 $ !@ !@ " + "#= @ $ ! ! ( . 2 8 ( #0 % \" 8 ! 0 & & -T\" " + " 0 $ - @ X X !@ @ & 4 ( 0 $ ! D ( @ #\\GT . " + " 8 8 ( 0 % \" $ ! 0 . , 8 ( ! % \" $ ! " + " 0 0 $ -P X !( !@ @ & 4 ( 0 , ! D 8 \\#\\ " + " #P/P / _#@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! " + "!@ ( . 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ - " + " @ X X !@ @ & 4 ( 0 $ ! D ( $ H$ . 8 8 ( 0" + " % \" $ ! 0 . , 8 ( ! % \" $ ! 0 0 $ . " + " X !( !@ @ & 4 ( 0 , ! D 8 \\#\\ #P/P / _#@" + " $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! !P ( . 2 " + " 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ - @ X X !@ " + " @ & 4 ( 0 $ ! D ( $ \"H$ . 8 8 ( 0 % \" " + " $ ! 0 . , 8 ( ! % \" $ ! 0 0 $ .0 X !( !@ " + " @ & 4 ( 0 , ! D 8 \\#\\ #P/P / _#@ &@ & \" " + " T !0 @ . 0 $ !@ #@ #= @ $ ) P X / $ !$ 2 $P " + "!0 5 ! X !( !@ @ - 4 ( !@ $ ! 8 8 W0( ! 0 4" + " ! #@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! \"0 $" + " . 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ \" P " + "X !( !@ @ - 4 ( !@ $ ! 8 8 W0( ! 0 4 ! #@ $@ " + " & \" T !0 @ & 0 $ !@ !@ #= @ $ ! \"0 $ . . 8 " + " ( ! % \" $ ( 0 0 \" &9?;W5T<'5T#@ $ & \" 0 !0 @" + " ! \"@ $ $ H !X+\" @>3IR96%L #@ % ! & \" ( !0 @ ! 0 " + "$ !0 $ < ! ' '-E= !I;G!U=', 8V]U;G0 ')A;F=E #@ #@ & \" 8 !0 @" + " ! 0 $ \"0 @ #P/PX P !@ @ & 4 ( ! D " + " #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ $\"/0 X X !@ @" + " & 4 ( 0 $ ! D ( 64 . . 8 ( !@ % \" $ " + " ! 0 ) \" #@ #@ & \" 8 !0 @ ! 0 $ \"0 @" + " #P/PX X !@ @ & 4 ( 0 $ ! D ( \\#\\. . 8" + " ( !@ % \" $ ! 0 ) \" #@ % . & \" $ !0 " + "@ & 0 $ #@ #@ & \" ( !0 @ ! $ !0 $ $ ! X" + " #( @ !@ @ \" 4 ( 0 $ ! 4 ! / 0 (< !P87)E;G1?8V5L; !P87)E;G1?" + "9W)I9 !C96QL

" + "'1?=VED=&@ &-O;F1I=&EO;E]T97AT7VAE:6=H= !C;VYD:71I;VY?=&5X=%]X 8V]N9&ET:6]N7W1E>'1?>0 &-O;F1I=&EO;E]" + "T97AT7V]F9G-E= !G'0 8V]L;W( X P !@ @ & 4 ( ! " + " D #@ # & \" 8 !0 @ $ \"0 . , 8 ( " + " !@ % \" 0 ) X P !@ @ & 4 ( ! " + " D #@ # & \" 8 !0 @ $ \"0 . \" , 8 ( " + " @ % \" $ ! 0 % 0 $ $ \"@ 1W)I9# $=R:60Q !'y)\n output = 3;\n end\nelseif(x>=0)\n if(y>15)\n if(xy)\n output = 6;\n end\n elseif(y<=15)\n " + " if(xy)\n output = 9;\n end\n" + " end\nend\n" + editorLayout "100 M4x1[205 227 1080 733]" + } + } + junction { + id 4 + position [23.5747 49.5747 7] + chart 2 + linkNode [2 0 0] + subviewer 2 + ssIdNumber 3 + type CONNECTIVE_JUNCTION + } + transition { + id 5 + labelString "{eML_blk_kernel();}" + labelPosition [32.125 19.875 102.544 14.964] + fontSize 12 + src { + intersection [0 0 1 0 23.5747 14.625 0 0] + } + dst { + id 4 + intersection [7 0 -1 -1 23.5747 42.5747 0 0] + } + midPoint [23.5747 24.9468] + chart 2 + linkNode [2 0 0] + dataLimits [23.575 23.575 14.625 34.575] + subviewer 2 + drawStyle SMART + executionOrder 1 + ssIdNumber 2 + } + data { + id 6 + ssIdNumber 4 + name "x" + linkNode [2 0 7] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + } + complexity SF_COMPLEX_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 7 + ssIdNumber 5 + name "y" + linkNode [2 6 8] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_NO + } + dataType "Inherit: Same as Simulink" + } + data { + id 8 + ssIdNumber 6 + name "output" + linkNode [2 7 0] + scope OUTPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_NO + } + dataType "Inherit: Same as Simulink" + } + instance { + id 9 + name "f_output/code" + machine 1 + chart 2 + } + target { + id 10 + name "sfun" + description "Default Simulink S-Function Target." + machine 1 + linkNode [1 0 0] + } +} diff --git a/Examples/dork.mdl b/Examples/dork.mdl new file mode 100644 index 0000000000000000000000000000000000000000..071454457e9f04adfda475e853ff254af45b832f --- /dev/null +++ b/Examples/dork.mdl @@ -0,0 +1,1349 @@ +Model { + Name "dork" + Version 7.5 + MdlSubVersion 0 + GraphicalInterface { + NumRootInports 0 + NumRootOutports 0 + ParameterArgumentNames "" + ComputedModelVersion "1.1" + NumModelReferences 0 + NumTestPointedSignals 0 + } + SavedCharacterEncoding "UTF-8" + SaveDefaultBlockParams on + ScopeRefreshTime 0.035000 + OverrideScopeRefreshTime on + DisableAllScopes off + DataTypeOverride "UseLocalSettings" + MinMaxOverflowLogging "UseLocalSettings" + MinMaxOverflowArchiveMode "Overwrite" + MaxMDLFileLineLength 120 + Created "Thu Aug 12 09:18:35 2010" + Creator "lawford" + UpdateHistory "UpdateHistoryNever" + ModifiedByFormat "%" + LastModifiedBy "lawford" + ModifiedDateFormat "%" + LastModifiedDate "Thu Aug 12 10:54:05 2010" + RTWModifiedTimeStamp 203511114 + ModelVersionFormat "1.%" + ConfigurationManager "None" + SampleTimeColors off + SampleTimeAnnotations off + LibraryLinkDisplay "none" + WideLines off + ShowLineDimensions off + ShowPortDataTypes off + ShowLoopsOnError on + IgnoreBidirectionalLines off + ShowStorageClass off + ShowTestPointIcons on + ShowSignalResolutionIcons on + ShowViewerIcons on + SortedOrder off + ExecutionContextIcon off + ShowLinearizationAnnotations on + BlockNameDataTip off + BlockParametersDataTip off + BlockDescriptionStringDataTip off + ToolBar on + StatusBar on + BrowserShowLibraryLinks off + BrowserLookUnderMasks off + SimulationMode "normal" + LinearizationMsg "none" + Profile off + ParamWorkspaceSource "MATLABWorkspace" + AccelSystemTargetFile "accel.tlc" + AccelTemplateMakefile "accel_default_tmf" + AccelMakeCommand "make_rtw" + TryForcingSFcnDF off + RecordCoverage off + CovPath "/" + CovSaveName "covdata" + CovMetricSettings "dw" + CovNameIncrementing off + CovHtmlReporting on + CovForceBlockReductionOff on + covSaveCumulativeToWorkspaceVar on + CovSaveSingleToWorkspaceVar on + CovCumulativeVarName "covCumulativeData" + CovCumulativeReport off + CovReportOnPause on + CovModelRefEnable "Off" + CovExternalEMLEnable 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 on + ShowModelReferenceBlockVersion off + ShowModelReferenceBlockIO off + Array { + Type "Handle" + Dimension 1 + Simulink.ConfigSet { + $ObjectID 1 + Version "1.10.0" + Array { + Type "Handle" + Dimension 8 + Simulink.SolverCC { + $ObjectID 2 + Version "1.10.0" + StartTime "0.0" + StopTime "10.0" + AbsTol "auto" + FixedStep "auto" + InitialStep "auto" + MaxNumMinSteps "-1" + MaxOrder 5 + ZcThreshold "auto" + ConsecutiveZCsStepRelTol "10*128*eps" + MaxConsecutiveZCs "1000" + ExtrapolationOrder 4 + NumberNewtonIterations 1 + MaxStep "auto" + MinStep "auto" + MaxConsecutiveMinStep "1" + RelTol "1e-3" + SolverMode "Auto" + Solver "ode45" + SolverName "ode45" + SolverJacobianMethodControl "auto" + ShapePreserveControl "DisableAll" + ZeroCrossControl "UseLocalSettings" + ZeroCrossAlgorithm "Nonadaptive" + AlgebraicLoopSolver "TrustRegion" + SolverResetMethod "Fast" + PositivePriorityOrder off + AutoInsertRateTranBlk off + SampleTimeConstraint "Unconstrained" + InsertRTBMode "Whenever possible" + } + Simulink.DataIOCC { + $ObjectID 3 + Version "1.10.0" + Decimation "1" + ExternalInput "[t, u]" + FinalStateName "xFinal" + InitialState "xInitial" + LimitDataPoints on + MaxDataPoints "1000" + LoadExternalInput off + LoadInitialState off + SaveFinalState off + SaveCompleteFinalSimState off + SaveFormat "Array" + SaveOutput on + SaveState off + SignalLogging on + DSMLogging on + InspectSignalLogs off + SaveTime on + ReturnWorkspaceOutputs off + StateSaveName "xout" + TimeSaveName "tout" + OutputSaveName "yout" + SignalLoggingName "logsout" + DSMLoggingName "dsmout" + OutputOption "RefineOutputTimes" + OutputTimes "[]" + ReturnWorkspaceOutputsName "out" + Refine "1" + } + Simulink.OptimizationCC { + $ObjectID 4 + Version "1.10.0" + Array { + Type "Cell" + Dimension 7 + Cell "BooleansAsBitfields" + Cell "PassReuseOutputArgsAs" + Cell "PassReuseOutputArgsThreshold" + Cell "ZeroExternalMemoryAtStartup" + Cell "ZeroInternalMemoryAtStartup" + Cell "OptimizeModelRefInitCode" + Cell "NoFixptDivByZeroProtection" + PropName "DisabledProps" + } + BlockReduction on + BooleanDataType on + ConditionallyExecuteInputs on + InlineParams off + UseIntDivNetSlope off + InlineInvariantSignals off + OptimizeBlockIOStorage on + BufferReuse on + EnhancedBackFolding off + StrengthReduction off + EnforceIntegerDowncast on + ExpressionFolding on + BooleansAsBitfields off + BitfieldContainerType "uint_T" + EnableMemcpy on + MemcpyThreshold 64 + PassReuseOutputArgsAs "Structure reference" + ExpressionDepthLimit 2147483647 + FoldNonRolledExpr on + LocalBlockOutputs on + RollThreshold 5 + SystemCodeInlineAuto off + StateBitsets off + DataBitsets off + UseTempVars off + ZeroExternalMemoryAtStartup on + ZeroInternalMemoryAtStartup on + InitFltsAndDblsToZero off + NoFixptDivByZeroProtection off + EfficientFloat2IntCast off + EfficientMapNaN2IntZero on + OptimizeModelRefInitCode off + LifeSpan "inf" + MaxStackSize "Inherit from target" + BufferReusableBoundary on + SimCompilerOptimization "Off" + AccelVerboseBuild off + } + Simulink.DebuggingCC { + $ObjectID 5 + Version "1.10.0" + RTPrefix "error" + ConsistencyChecking "none" + ArrayBoundsChecking "none" + SignalInfNanChecking "none" + SignalRangeChecking "none" + ReadBeforeWriteMsg "UseLocalSettings" + WriteAfterWriteMsg "UseLocalSettings" + WriteAfterReadMsg "UseLocalSettings" + AlgebraicLoopMsg "warning" + ArtificialAlgebraicLoopMsg "warning" + SaveWithDisabledLinksMsg "warning" + SaveWithParameterizedLinksMsg "warning" + CheckSSInitialOutputMsg on + UnderspecifiedInitializationDetection "Classic" + MergeDetectMultiDrivingBlocksExec "none" + CheckExecutionContextPreStartOutputMsg off + CheckExecutionContextRuntimeOutputMsg off + SignalResolutionControl "UseLocalSettings" + BlockPriorityViolationMsg "warning" + MinStepSizeMsg "warning" + TimeAdjustmentMsg "none" + MaxConsecutiveZCsMsg "error" + SolverPrmCheckMsg "warning" + InheritedTsInSrcMsg "warning" + DiscreteInheritContinuousMsg "warning" + MultiTaskDSMMsg "error" + MultiTaskCondExecSysMsg "error" + MultiTaskRateTransMsg "error" + SingleTaskRateTransMsg "none" + TasksWithSamePriorityMsg "warning" + SigSpecEnsureSampleTimeMsg "warning" + CheckMatrixSingularityMsg "none" + IntegerOverflowMsg "warning" + Int32ToFloatConvMsg "warning" + ParameterDowncastMsg "error" + ParameterOverflowMsg "error" + ParameterUnderflowMsg "none" + ParameterPrecisionLossMsg "warning" + ParameterTunabilityLossMsg "warning" + FixptConstUnderflowMsg "none" + FixptConstOverflowMsg "none" + FixptConstPrecisionLossMsg "none" + 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" + UnknownTsInhSupMsg "warning" + ModelReferenceDataLoggingMessage "warning" + ModelReferenceSymbolNameMessage "warning" + ModelReferenceExtraNoncontSigs "error" + StateNameClashWarn "warning" + SimStateInterfaceChecksumMismatchMsg "warning" + StrictBusMsg "ErrorLevel1" + BusNameAdapt "WarnAndRepair" + NonBusSignalsTreatedAsBus "none" + LoggingUnavailableSignals "error" + BlockIODiagnostic "none" + } + Simulink.HardwareCC { + $ObjectID 6 + Version "1.10.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 off + ProdEqTarget on + } + Simulink.ModelReferenceCC { + $ObjectID 7 + Version "1.10.0" + UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" + CheckModelReferenceTargetMessage "error" + EnableParallelModelReferenceBuilds off + ParallelModelReferenceMATLABWorkerInit "None" + ModelReferenceNumInstancesAllowed "Multi" + PropagateVarSize "Infer from blocks in model" + ModelReferencePassRootInputsByReference on + ModelReferenceMinAlgLoopOccurrences off + PropagateSignalLabelsOutOfModel off + SupportModelReferenceSimTargetCustomCode off + } + Simulink.SFSimCC { + $ObjectID 8 + Version "1.10.0" + SFSimEnableDebug on + SFSimOverflowDetection on + SFSimEcho on + SimBlas on + SimCtrlC on + SimExtrinsic on + SimIntegrity on + SimUseLocalCustomCode off + SimBuildMode "sf_incremental_build" + } + Simulink.RTWCC { + $BackupClass "Simulink.RTWCC" + $ObjectID 9 + Version "1.10.0" + Array { + Type "Cell" + Dimension 6 + Cell "IncludeHyperlinkInReport" + Cell "GenerateTraceInfo" + Cell "GenerateTraceReport" + Cell "GenerateTraceReportSl" + Cell "GenerateTraceReportSf" + Cell "GenerateTraceReportEml" + PropName "DisabledProps" + } + SystemTargetFile "grt.tlc" + GenCodeOnly off + MakeCommand "make_rtw" + GenerateMakefile on + 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 + RTWUseLocalCustomCode off + RTWUseSimCustomCode off + IncludeHyperlinkInReport off + LaunchReport off + TargetLang "C" + IncludeBusHierarchyInRTWFileBlockHierarchyMap off + IncludeERTFirstTime off + GenerateTraceInfo off + GenerateTraceReport off + GenerateTraceReportSl off + GenerateTraceReportSf off + GenerateTraceReportEml off + GenerateCodeInfo off + RTWCompilerOptimization "Off" + CheckMdlBeforeBuild "Off" + CustomRebuildMode "OnUpdate" + Array { + Type "Handle" + Dimension 2 + Simulink.CodeAppCC { + $ObjectID 10 + Version "1.10.0" + Array { + Type "Cell" + Dimension 19 + Cell "IgnoreCustomStorageClasses" + Cell "IgnoreTestpoints" + Cell "InsertBlockDesc" + Cell "SFDataObjDesc" + Cell "SimulinkDataObjDesc" + Cell "DefineNamingRule" + Cell "SignalNamingRule" + Cell "ParamNamingRule" + Cell "InlinedPrmAccess" + Cell "CustomSymbolStr" + Cell "CustomSymbolStrGlobalVar" + Cell "CustomSymbolStrType" + Cell "CustomSymbolStrField" + Cell "CustomSymbolStrFcn" + Cell "CustomSymbolStrFcnArg" + Cell "CustomSymbolStrBlkIO" + Cell "CustomSymbolStrTmpVar" + Cell "CustomSymbolStrMacro" + Cell "ReqsInCode" + PropName "DisabledProps" + } + ForceParamTrailComments off + GenerateComments on + IgnoreCustomStorageClasses on + IgnoreTestpoints off + IncHierarchyInIds off + MaxIdLength 31 + PreserveName off + PreserveNameWithParent off + ShowEliminatedStatement off + IncAutoGenComments off + SimulinkDataObjDesc off + SFDataObjDesc off + IncDataTypeInIds off + MangleLength 1 + CustomSymbolStrGlobalVar "$R$N$M" + CustomSymbolStrType "$N$R$M" + CustomSymbolStrField "$N$M" + CustomSymbolStrFcn "$R$N$M$F" + CustomSymbolStrFcnArg "rt$I$N$M" + CustomSymbolStrBlkIO "rtb_$N$M" + CustomSymbolStrTmpVar "$N$M" + CustomSymbolStrMacro "$R$N$M" + DefineNamingRule "None" + ParamNamingRule "None" + SignalNamingRule "None" + InsertBlockDesc off + SimulinkBlockComments on + EnableCustomComments off + InlinedPrmAccess "Literals" + ReqsInCode off + UseSimReservedNames off + } + Simulink.GRTTargetCC { + $BackupClass "Simulink.TargetCC" + $ObjectID 11 + Version "1.10.0" + Array { + Type "Cell" + Dimension 17 + Cell "GeneratePreprocessorConditionals" + Cell "IncludeMdlTerminateFcn" + Cell "CombineOutputUpdateFcns" + Cell "SuppressErrorStatus" + Cell "ERTCustomFileBanners" + Cell "GenerateSampleERTMain" + Cell "GenerateTestInterfaces" + Cell "ModelStepFunctionPrototypeControlCompliant" + Cell "CPPClassGenCompliant" + Cell "MultiInstanceERTCode" + Cell "PurelyIntegerCode" + Cell "SupportNonFinite" + Cell "SupportComplex" + Cell "SupportAbsoluteTime" + Cell "SupportContinuousTime" + Cell "SupportNonInlinedSFcns" + Cell "PortableWordSizes" + PropName "DisabledProps" + } + TargetFcnLib "ansi_tfl_table_tmw.mat" + TargetLibSuffix "" + TargetPreCompLibLocation "" + TargetFunctionLibrary "ANSI_C" + UtilityFuncGeneration "Auto" + ERTMultiwordTypeDef "System defined" + ERTCodeCoverageTool "None" + ERTMultiwordLength 256 + MultiwordLength 2048 + GenerateFullHeader on + GenerateSampleERTMain off + GenerateTestInterfaces off + IsPILTarget off + ModelReferenceCompliant on + ParMdlRefBuildCompliant on + CompOptLevelCompliant on + IncludeMdlTerminateFcn on + GeneratePreprocessorConditionals "Disable all" + CombineOutputUpdateFcns off + SuppressErrorStatus off + ERTFirstTimeCompliant off + IncludeFileDelimiter "Auto" + ERTCustomFileBanners off + SupportAbsoluteTime on + LogVarNameModifier "rt_" + MatFileLogging on + MultiInstanceERTCode off + SupportNonFinite on + SupportComplex on + PurelyIntegerCode off + SupportContinuousTime on + SupportNonInlinedSFcns on + SupportVariableSizeSignals off + EnableShiftOperators on + ParenthesesLevel "Nominal" + PortableWordSizes off + ModelStepFunctionPrototypeControlCompliant off + CPPClassGenCompliant off + AutosarCompliant off + UseMalloc off + ExtMode off + ExtModeStaticAlloc off + ExtModeTesting off + ExtModeStaticAllocSize 1000000 + ExtModeTransport 0 + ExtModeMexFile "ext_comm" + ExtModeIntrfLevel "Level1" + RTWCAPISignals off + RTWCAPIParams off + RTWCAPIStates off + GenerateASAP2 off + } + PropName "Components" + } + } + PropName "Components" + } + Name "Configuration" + CurrentDlgPage "Solver" + ConfigPrmDlgPosition " [ 200, 197, 1080, 827 ] " + } + PropName "ConfigurationSets" + } + Simulink.ConfigSet { + $PropName "ActiveConfigurationSet" + $ObjectID 1 + } + BlockDefaults { + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + NamePlacement "normal" + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + ShowName on + BlockRotation 0 + BlockMirror off + } + AnnotationDefaults { + HorizontalAlignment "center" + VerticalAlignment "middle" + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + UseDisplayTextAsClickCallback off + } + LineDefaults { + FontName "Helvetica" + FontSize 9 + FontWeight "normal" + FontAngle "normal" + } + BlockParameterDefaults { + Block { + BlockType Demux + Outputs "4" + DisplayOption "none" + BusSelectionMode off + } + Block { + BlockType Inport + Port "1" + UseBusObject off + BusObject "BusObject" + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + OutMin "[]" + OutMax "[]" + DataType "auto" + OutDataType "fixdt(1,16,0)" + OutScaling "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + SignalType "auto" + SamplingMode "auto" + LatchByDelayingOutsideSignal off + LatchInputForFeedbackSignals off + Interpolate on + } + Block { + BlockType Outport + Port "1" + UseBusObject off + BusObject "BusObject" + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + OutMin "[]" + OutMax "[]" + DataType "auto" + OutDataType "fixdt(1,16,0)" + OutScaling "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + SignalType "auto" + SamplingMode "auto" + SourceOfInitialOutputValue "Dialog" + OutputWhenDisabled "held" + InitialOutput "[]" + } + Block { + BlockType "S-Function" + FunctionName "system" + SFunctionModules "''" + PortCounts "[]" + SFunctionDeploymentMode off + } + Block { + BlockType SubSystem + ShowPortLabels "FromPortIcon" + Permissions "ReadWrite" + PermitHierarchicalResolution "All" + TreatAsAtomicUnit off + CheckFcnCallInpInsideContextMsg off + SystemSampleTime "-1" + RTWFcnNameOpts "Auto" + RTWFileNameOpts "Auto" + RTWMemSecFuncInitTerm "Inherit from model" + RTWMemSecFuncExecute "Inherit from model" + RTWMemSecDataConstants "Inherit from model" + RTWMemSecDataInternal "Inherit from model" + RTWMemSecDataParameters "Inherit from model" + SimViewingDevice off + DataTypeOverride "UseLocalSettings" + MinMaxOverflowLogging "UseLocalSettings" + } + Block { + BlockType Terminator + } + Block { + BlockType UnitDelay + X0 "0" + SampleTime "1" + StateMustResolveToSignalObject off + RTWStateStorageClass "Auto" + } + } + System { + Name "dork" + Location [611, 198, 1191, 458] + Open on + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + ReportName "simulink-default.rpt" + SIDHighWatermark 9 + Block { + BlockType UnitDelay + Name "Unit Delay" + SID 9 + Position [120, 148, 155, 182] + BlockMirror on + SampleTime "-1" + } + Block { + BlockType SubSystem + Name "f_PowerCond" + SID 1 + Ports [4, 1] + Position [55, 43, 220, 112] + LibraryVersion "1.11" + UserDataPersistent on + UserData "DataTag0" + CopyFcn "TTdiag Copy" + DeleteFcn "TTdiag Delete" + OpenFcn "TTdiag Open Simulink" + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskDescription "Table Block" + MaskDisplay "port_label('input',1,'Power');port_label('input',2,'Kin');port_label('input',3,'Kout');port_l" + "abel('input',4,'Prev');text(0.5, 0.6, 'Tabular Expression', 'horizontalAlignment', 'center')\ncolor('green')\nte" + "xt(0.5, 0.4, 'Checked', 'horizontalAlignment', 'center')" + MaskIconFrame on + MaskIconOpaque on + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "normalized" + System { + Name "f_PowerCond" + Location [433, 447, 931, 747] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + Block { + BlockType Inport + Name "Power" + SID 4 + Position [35, 38, 65, 52] + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "Kin" + SID 5 + Position [35, 38, 65, 52] + Port "2" + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "Kout" + SID 6 + Position [35, 38, 65, 52] + Port "3" + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "Prev" + SID 7 + Position [35, 38, 65, 52] + Port "4" + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType SubSystem + Name "code" + SID 3 + Ports [4, 1] + Position [250, 51, 320, 99] + LibraryVersion "1.31" + PermitHierarchicalResolution "ExplicitOnly" + TreatAsAtomicUnit on + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskType "Stateflow" + MaskDescription "Embedded MATLAB block" + MaskDisplay "disp('f_PowerCond');" + MaskSelfModifiable on + MaskIconFrame on + MaskIconOpaque off + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "autoscale" + System { + Name "code" + Location [257, 457, 812, 717] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + SIDHighWatermark 20 + SIDPrevWatermark 13 + Block { + BlockType Inport + Name "Power" + SID 1 + Position [20, 101, 40, 119] + IconDisplay "Port number" + OutDataType "sfix(16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "Kin" + SID 18 + Position [20, 136, 40, 154] + Port "2" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "Kout" + SID 19 + Position [20, 171, 40, 189] + Port "3" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "Prev" + SID 20 + Position [20, 206, 40, 224] + Port "4" + IconDisplay "Port number" + } + Block { + BlockType Demux + Name " Demux " + SID 15 + Ports [1, 1] + Position [270, 205, 320, 245] + Outputs "1" + } + Block { + BlockType "S-Function" + Name " SFunction " + SID 14 + Tag "Stateflow S-Function dork 2" + Ports [4, 2] + Position [180, 102, 230, 203] + FunctionName "sf_sfun" + PortCounts "[4 2]" + EnableBusSupport off + Port { + PortNumber 2 + Name "output" + RTWStorageClass "Auto" + DataLoggingNameMode "SignalName" + } + } + Block { + BlockType Terminator + Name " Terminator " + SID 17 + Position [460, 216, 480, 234] + } + Block { + BlockType Outport + Name "output" + SID 5 + Position [460, 101, 480, 119] + IconDisplay "Port number" + OutDataType "sfix(16)" + OutScaling "2^0" + } + Line { + SrcBlock " SFunction " + SrcPort 1 + DstBlock " Demux " + DstPort 1 + } + Line { + SrcBlock "Power" + SrcPort 1 + DstBlock " SFunction " + DstPort 1 + } + Line { + SrcBlock "Kin" + SrcPort 1 + DstBlock " SFunction " + DstPort 2 + } + Line { + SrcBlock "Kout" + SrcPort 1 + DstBlock " SFunction " + DstPort 3 + } + Line { + SrcBlock "Prev" + SrcPort 1 + DstBlock " SFunction " + DstPort 4 + } + Line { + Name "output" + Labels [0, 0] + SrcBlock " SFunction " + SrcPort 2 + DstBlock "output" + DstPort 1 + } + Line { + SrcBlock " Demux " + SrcPort 1 + DstBlock " Terminator " + DstPort 1 + } + } + } + Block { + BlockType Outport + Name "output" + SID 8 + Position [35, 53, 65, 67] + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Line { + SrcBlock "Power" + SrcPort 1 + DstBlock "code" + DstPort 1 + } + Line { + SrcBlock "Kin" + SrcPort 1 + DstBlock "code" + DstPort 2 + } + Line { + SrcBlock "Kout" + SrcPort 1 + DstBlock "code" + DstPort 3 + } + Line { + SrcBlock "Prev" + SrcPort 1 + DstBlock "code" + DstPort 4 + } + Line { + SrcBlock "code" + SrcPort 1 + DstBlock "output" + DstPort 1 + } + } + } + Line { + SrcBlock "f_PowerCond" + SrcPort 1 + Points [10, 0; 0, 85] + DstBlock "Unit Delay" + DstPort 1 + } + Line { + SrcBlock "Unit Delay" + SrcPort 1 + Points [-85, 0; 0, -65] + DstBlock "f_PowerCond" + DstPort 4 + } + } +} +MatData { + NumRecords 1 + DataRecord { + Tag DataTag0 + Data " %)30 . > 8 ( $0 ! $ ! !-0T]3 0 $ $1A=&$. 2 8 ( #0 " + " % \" 8 ! 0 & & -T\" 0 $ ! !0 X H*P !@ @ ) 4" + " ( 0 /@J ! ( #X*@ %)30 . 6\"H 8 ( @ % \" $ ! 0 " + " % 0 !0 $ % 34-/4P . $\"H 8 ( $0 ! $ ! !-0T]3 0 T !&:6QE5W)A<'!E" + "'0 8V5L;%]I;F1E> !P87)E;G1?9W)I9 !C96QL'1?;V9F'0 4D-E;&P 9G5N8W1" + "I;VY?;F%M90!F=6YC=&EO;E]I;G!U=', W)[S\\. 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ ( @ " + " X X !@ @ & 4 ( 0 $ ! D ( , #ZH$ . . 8 ( ! " + " % \" $ % 0 0 !0 &9A;'-E #@ $@ & \" 8 !0 @ ! P " + " $ \"0 !@ #P/P / _ \\#\\. 2 8 ( #0 % \" 8 ! 0 " + " & & -T\" 0 $ & @ X !( !@ @ - 4 ( !@ $ ! " + " 8 8 W0( ! 0 @ \" #@ #@ & \" 8 !0 @ ! 0 $ \"0 " + " @ P /R@0 X !@ !@ @ ! 4 ( 0 $ ! X P !@ @ $ " + " 4 ( 0 0 ! ! ! !0#IR96%L?'@\\2VEN?2Q0'1?:&5I9VAT &-O;F1I=&EO;E]T97AT7W@ !C;VYD:71I;VY?=&5X=%]Y 8V]N9&ET:6]N7W1E>'1?;V9F 8 ( $0 ! $ ! !-0T]3 0 $ $1A=&$. 2 8 ( #0 " + " % \" 8 ! 0 & & -T\" 0 $ ! !0 X \" 30 !@ @ ) " + "4 ( 0 %!- ! ( !030 %)30 . L$P 8 ( @ % \" $ ! 0 " + " % 0 !0 $ % 34-/4P . :$P 8 ( $0 ! $ ! !-0T]3 0 T !&:6QE5W)A<'!E<" + "E]? #@ \"A, & \" $ !0 @ \"A 0 $ #@ & - & \" D !0 @" + " P#0 0 $ @ # - \" + -@! X @ . ( ) $ !H# , T 1W)I9# 0V5L;', 0V5L;#$ " + "8V]N9 !C;VYD7W1E>'0 8V5L;%]I;F1E> !P87)E;G1?9W)I9 !C96QL'1?;V9F'0 4D-E;&P 9G5N8W1I" + ";VY?;F%M90!F=6YC=&EO;E]I;G!U=', W\\5SX[#\\FU2-$_CKO/PX X !@ @ & 4 ( 0 $ ! " + " D ( L $PH$ . 8 8 ( 0 % \" $ ! 0 . , 8 ( ! " + " % \" $ # 0 0 , 8CPP X X !@ @ & 4 ( 0 $ ! D" + " ( $ . 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 $" + " / 0 X X !@ @ & 4 ( 0 $ ! D ( \\#\\. . 8" + " ( !@ % \" $ ! 0 ) \" / _#@ #@ & \" 8 !0 " + "@ ! 0 $ \"0 @ # 3*@0 X X !@ @ & 4 ( 0 $ ! D" + " ( \\#\\. 2 8 ( !@ % \" $ # 0 ) & \"IU#%_DJ^\\_;> W" + "\\5SX[#\\FU2-$_CKO/PX !0 !@ @ - 4 ( !P $ ! 8 < W0( ! @ " + " ! 1 @ . . 8 ( !@ % \" $ ! 0 ) \" ! #@ " + " #@ & \" 8 !0 @ ! 0 $ \"0 @ 0 X !( !@ @ - " + " 4 ( !@ $ ! 8 8 W0( ! 0 ( # #@ #@ & \" 8 !0 " + " @ ! 0 $ \"0 @ \" 32@0 X X !@ @ & 4 ( 0 $ ! " + " D ( < $VH$ . 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 " + " $ / 0 X X !@ @ & 4 ( 0 $ ! D ( L ,DH$ . > 8" + " ( 0 % \" $ ! 0 . 2 8 ( ! % \" $ 1 0 " + " 0 $0 \"AB7C(I(\"T@-\"IA*F,@/B P X X !@ @ & 4 ( 0 $ ! " + "D ( $ . 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 " + "$ , 0 X X !@ @ & 4 ( 0 $ ! D ( \\#\\. . " + "8 ( !@ % \" $ ! 0 ) \" 1 #@ #@ & \" 8 !0 " + " @ ! 0 $ \"0 @ \"P B:@0 X !( !@ @ & 4 ( 0 , ! " + " D 8 ZBT$8]F=[3]D$M!2%-[O/_;[Q /.8>T_#@ % & \" T !0 @ ' 0 $ !@ !" + "P #= @ $ \" #0 X \" X X !@ @ & 4 ( 0 $ ! " + "D ( $ . . 8 ( !@ % \" $ ! 0 ) \" ! #@ $" + "@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! @ , . . 8" + " ( !@ % \" $ ! 0 ) \" ) \"**! #@ #@ & \" 8 !0 " + " @ ! 0 $ \"0 @ \"0 BJ@0 X !( !@ @ - 4 ( !@ $ ! " + " 8 8 W0( ! 0 P ! #@ #@ & \" 8 !0 @ ! 0 $ \"0 " + " @ 2(!/0 X !H !@ @ ! 4 ( 0 $ ! X X !@ @ $ 4" + " ( 0 8 ! ! & 82!^/2 P . . 8 ( !@ % \" $ ! 0 " + " ) \" ! #@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ " + " ! \"@ $ . . 8 ( !@ % \" $ ! 0 ) \" / _#@ #@" + " & \" 8 !0 @ ! 0 $ \"0 @ 00 X X !@ @ & 4" + " ( 0 $ ! D ( 8 $S#:HNT_0^TL%7/@[S^!0?TS:F3N/PX !0 !@ @ - 4 ( !P $ ! 8 " + " < W0( ! @ D + @ . . 8 ( !@ % \" $ ! 0 " + ") \" ! #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ 0 X " + "!( !@ @ - 4 ( !@ $ ! 8 8 W0( ! 0 ( # #@ #@ &" + " \" 8 !0 @ ! 0 $ \"0 @ 1 !)0 X X !@ @ & 4 (" + " 0 $ ! D ( #R 24 . 2 8 ( #0 % \" 8 ! 0 & " + " & -T\" 0 $ * 0 X X !@ @ & 4 ( 0 $ ! D ( " + " \\#\\. . 8 ( !@ % \" $ ! 0 ) \" /@_#@ #@ &" + " \" 8 !0 @ ! 0 $ \"0 @ 1(!(0 X !( !@ @ & 4 (" + " 0 , ! D 8 Y29[,-JB[3]#[2P5<^#O/X%!_3-J9.X_#@ $@ & \" T !0 @ & " + " 0 $ !@ !@ #= @ $ ! \"0 ( . 2 8 ( #0 % \" 8 ! " + " 0 & & -T\" 0 $ ' @ X X !@ @ & 4 ( 0 $ ! " + " D ( $ . . 8 ( !@ % \" $ ! 0 ) \" /" + " _#@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! @ , . " + " . 8 ( !@ % \" $ ! 0 ) \" * !4)] #@ #@ & \" 8 " + " !0 @ ! 0 $ \"0 @ 52?0 X !( !@ @ - 4 ( !@ $ ! " + " 8 8 W0( ! 0 @ ! #@ #@ & \" 8 !0 @ ! 0 $ " + "\"0 @ 0 X X !@ @ & 4 ( 0 $ ! D ( \\#\\. " + " . 8 ( !@ % \" $ ! 0 ) \" !0@$Q #@ #@ & \" 8 " + " !0 @ ! 0 $ \"0 @ #P/PX !( !@ @ & 4 ( 0 , ! " + " D 8 ,TN'CMH5[3\\NOJGB497ONX_#@ $@ & \" T !0 @ & 0 $ " + " !@ !@ #= @ $ ! !P ( . . 8 ( !@ % \" $ ! 0 ) " + "\" , !6)] #@ & & \" $ !0 @ ! 0 $ #@ # & \" 0 " + " !0 @ ! ! $ $ $ \"UC+V(. 2 8 ( !@ % \" $ # 0 ) " + " & / _ \\#\\ #P/PX !( !@ @ - 4 ( !@ $ ! 8 8 " + " W0( ! 0 0 \" #@ $@ & \" T !0 @ & 0 $ !@ !@ #" + "= @ $ ! #0 ( . . 8 ( !@ % \" $ ! 0 ) \" ) \"+*" + "! #@ &@ & \" $ !0 @ ! 0 $ #@ #@ & \" 0 !0 @ ! " + " !@ $ $ 8 M8B\\R*F$ X !( !@ @ & 4 ( 0 , ! D 8 " + " \\#\\ #P/P / _#@ $@ & \" T !0 @ & 0 $ !@ !@ " + "#= @ $ ! ! ( . 2 8 ( #0 % \" 8 ! 0 & & -T\" " + " 0 $ 0 @ X X !@ @ & 4 ( 0 $ ! D ( < $XH$ . " + "@ 8 ( 0 % \" $ ! 0 . 4 8 ( ! % \" $ > " + " 0 0 '@ \"@M8B M('-Q *\"UB(\"L@#IR96%L?\"AA/3 @/3X@>\" O/2 P*2!!3D0@*&$@+ST@,\" ]/B H>%XR*2 M(#0J82IC(#X](# I?0 . 4 $ 8 " + "( @ % \" $ ! 0 % 0 !P $ < '0 8V5L;%]I;F1E> '!A'1?> &-O;F1I=&EO;E]T97AT7WD !C;VYD:71I;VY?=&5X=%]O9F9S970 9W)I9%]P=7-H7W=I9'1H X " + " P !@ @ & 4 ( ! D #@ # & \" 8 !0 @ " + " $ \"0 . , 8 ( !@ % \" 0 ) X " + "X !@ @ & 4 ( 0 $ ! D ( . , 8 ( !@ % " + " \" 0 ) X X !@ @ & 4 ( 0 $ ! D ( " + " . . 8 ( !@ % \" $ ! 0 ) \" #@ # & " + " \" 8 !0 @ $ \"0 . . 8 ( !@ % \" $ ! " + " 0 ) \" #@ # & \" 8 !0 @ $ \"0 ." + " . 8 ( !@ % \" $ ! 0 ) \" &E #@ #@ & \" 8 " + " !0 @ ! 0 $ \"0 @ !.0 X X !@ @ & 4 ( 0 $ !" + " D ( )$ . . 8 ( !@ % \" $ ! 0 ) \" " + " \"1 #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ T0 X X !@ @ " + "& 4 ( 0 $ ! D ( /D . ^ 8 ( @ % \" $ !" + " 0 % 0 !@ $ 2 0V5L;', 1W)I9#$ 1W)I9#( #@ # & \" 8 !0 @ " + " $ \"0 . , 8 ( !@ % \" 0 ) X P " + " !@ @ & 4 ( ! D #@ ) ! & \" ( !0 @ ! " + " 0 $ !0 $ P ! / $-E;&PQ $-E;&PR ')E 0)\n if(b>=0)\n x1 = (-b - sqrt(b^2 - 4*a*c)) / 2*a;\n x2 = c / (a* ((-b -" + " sqrt(b^2 - 4*a*c)) / 2*a));\n elseif(b<0)\n x1 = (-b + sqrt(b^2 - 4*a*c)) / 2*a;\n x2 = c / (a* ((" + "-b + sqrt(b^2 - 4*a*c)) / 2*a));\n end\n end\nend\n" + editorLayout "100 M4x1[205 227 1080 733]" + } + } + junction { + id 4 + position [23.5747 49.5747 7] + chart 2 + linkNode [2 0 0] + subviewer 2 + ssIdNumber 3 + type CONNECTIVE_JUNCTION + } + transition { + id 5 + labelString "{eML_blk_kernel();}" + labelPosition [32.125 19.875 102.544 14.964] + fontSize 12 + src { + intersection [0 0 1 0 23.5747 14.625 0 0] + } + dst { + id 4 + intersection [7 0 -1 -1 23.5747 42.5747 0 0] + } + midPoint [23.5747 24.9468] + chart 2 + linkNode [2 0 0] + dataLimits [23.575 23.575 14.625 34.575] + subviewer 2 + drawStyle SMART + executionOrder 1 + ssIdNumber 2 + } + data { + id 6 + ssIdNumber 4 + name "c" + linkNode [2 0 7] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + } + complexity SF_COMPLEX_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 7 + ssIdNumber 5 + name "x1" + linkNode [2 6 8] + scope OUTPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_NO + } + dataType "Inherit: Same as Simulink" + } + data { + id 8 + ssIdNumber 6 + name "a" + linkNode [2 7 9] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 9 + ssIdNumber 7 + name "b" + linkNode [2 8 10] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 10 + ssIdNumber 8 + name "x2" + linkNode [2 9 0] + scope OUTPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_NO + } + dataType "Inherit: Same as Simulink" + } + instance { + id 11 + name "quad_fcn/code" + machine 1 + chart 2 + } + target { + id 12 + name "sfun" + description "Default Simulink S-Function Target." + machine 1 + linkNode [1 0 0] + } +} diff --git a/Examples/sample_model.mdl b/Examples/sample_model.mdl new file mode 100644 index 0000000000000000000000000000000000000000..b7ff1711e4db927a9dc072309ac0a6b10397557e --- /dev/null +++ b/Examples/sample_model.mdl @@ -0,0 +1,1271 @@ +Model { + Name "sample_model" + Version 7.5 + MdlSubVersion 0 + GraphicalInterface { + NumRootInports 0 + NumRootOutports 0 + ParameterArgumentNames "" + ComputedModelVersion "1.2" + NumModelReferences 0 + NumTestPointedSignals 0 + } + SavedCharacterEncoding "ISO-8859-1" + SaveDefaultBlockParams on + ScopeRefreshTime 0.035000 + OverrideScopeRefreshTime on + DisableAllScopes off + DataTypeOverride "UseLocalSettings" + MinMaxOverflowLogging "UseLocalSettings" + MinMaxOverflowArchiveMode "Overwrite" + MaxMDLFileLineLength 120 + Created "Wed Sep 29 11:41:13 2010" + Creator "colin" + UpdateHistory "UpdateHistoryNever" + ModifiedByFormat "%" + LastModifiedBy "colin" + ModifiedDateFormat "%" + LastModifiedDate "Wed Sep 29 11:47:12 2010" + RTWModifiedTimeStamp 207661525 + ModelVersionFormat "1.%" + ConfigurationManager "none" + SampleTimeColors off + SampleTimeAnnotations off + LibraryLinkDisplay "none" + WideLines off + ShowLineDimensions off + ShowPortDataTypes off + ShowLoopsOnError on + IgnoreBidirectionalLines off + ShowStorageClass off + ShowTestPointIcons on + ShowSignalResolutionIcons on + ShowViewerIcons on + SortedOrder off + ExecutionContextIcon off + ShowLinearizationAnnotations on + BlockNameDataTip off + BlockParametersDataTip off + BlockDescriptionStringDataTip off + ToolBar on + StatusBar on + BrowserShowLibraryLinks off + BrowserLookUnderMasks off + SimulationMode "normal" + LinearizationMsg "none" + Profile off + ParamWorkspaceSource "MATLABWorkspace" + AccelSystemTargetFile "accel.tlc" + AccelTemplateMakefile "accel_default_tmf" + AccelMakeCommand "make_rtw" + TryForcingSFcnDF off + RecordCoverage off + CovPath "/" + CovSaveName "covdata" + CovMetricSettings "dw" + CovNameIncrementing off + CovHtmlReporting on + CovForceBlockReductionOff on + covSaveCumulativeToWorkspaceVar on + CovSaveSingleToWorkspaceVar on + CovCumulativeVarName "covCumulativeData" + CovCumulativeReport off + CovReportOnPause on + CovModelRefEnable "Off" + CovExternalEMLEnable 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 on + ShowModelReferenceBlockVersion off + ShowModelReferenceBlockIO off + Array { + Type "Handle" + Dimension 1 + Simulink.ConfigSet { + $ObjectID 1 + Version "1.10.0" + Array { + Type "Handle" + Dimension 8 + Simulink.SolverCC { + $ObjectID 2 + Version "1.10.0" + StartTime "0.0" + StopTime "10.0" + AbsTol "auto" + FixedStep "auto" + InitialStep "auto" + MaxNumMinSteps "-1" + MaxOrder 5 + ZcThreshold "auto" + ConsecutiveZCsStepRelTol "10*128*eps" + MaxConsecutiveZCs "1000" + ExtrapolationOrder 4 + NumberNewtonIterations 1 + MaxStep "auto" + MinStep "auto" + MaxConsecutiveMinStep "1" + RelTol "1e-3" + SolverMode "Auto" + Solver "ode45" + SolverName "ode45" + SolverJacobianMethodControl "auto" + ShapePreserveControl "DisableAll" + ZeroCrossControl "UseLocalSettings" + ZeroCrossAlgorithm "Nonadaptive" + AlgebraicLoopSolver "TrustRegion" + SolverResetMethod "Fast" + PositivePriorityOrder off + AutoInsertRateTranBlk off + SampleTimeConstraint "Unconstrained" + InsertRTBMode "Whenever possible" + } + Simulink.DataIOCC { + $ObjectID 3 + Version "1.10.0" + Decimation "1" + ExternalInput "[t, u]" + FinalStateName "xFinal" + InitialState "xInitial" + LimitDataPoints on + MaxDataPoints "1000" + LoadExternalInput off + LoadInitialState off + SaveFinalState off + SaveCompleteFinalSimState off + SaveFormat "Array" + SaveOutput on + SaveState off + SignalLogging on + DSMLogging on + InspectSignalLogs off + SaveTime on + ReturnWorkspaceOutputs off + StateSaveName "xout" + TimeSaveName "tout" + OutputSaveName "yout" + SignalLoggingName "logsout" + DSMLoggingName "dsmout" + OutputOption "RefineOutputTimes" + OutputTimes "[]" + ReturnWorkspaceOutputsName "out" + Refine "1" + } + Simulink.OptimizationCC { + $ObjectID 4 + Version "1.10.0" + Array { + Type "Cell" + Dimension 7 + Cell "BooleansAsBitfields" + Cell "PassReuseOutputArgsAs" + Cell "PassReuseOutputArgsThreshold" + Cell "ZeroExternalMemoryAtStartup" + Cell "ZeroInternalMemoryAtStartup" + Cell "OptimizeModelRefInitCode" + Cell "NoFixptDivByZeroProtection" + PropName "DisabledProps" + } + BlockReduction on + BooleanDataType on + ConditionallyExecuteInputs on + InlineParams off + UseIntDivNetSlope off + InlineInvariantSignals off + OptimizeBlockIOStorage on + BufferReuse on + EnhancedBackFolding off + StrengthReduction off + EnforceIntegerDowncast on + ExpressionFolding on + BooleansAsBitfields off + BitfieldContainerType "uint_T" + EnableMemcpy on + MemcpyThreshold 64 + PassReuseOutputArgsAs "Structure reference" + ExpressionDepthLimit 2147483647 + FoldNonRolledExpr on + LocalBlockOutputs on + RollThreshold 5 + SystemCodeInlineAuto off + StateBitsets off + DataBitsets off + UseTempVars off + ZeroExternalMemoryAtStartup on + ZeroInternalMemoryAtStartup on + InitFltsAndDblsToZero off + NoFixptDivByZeroProtection off + EfficientFloat2IntCast off + EfficientMapNaN2IntZero on + OptimizeModelRefInitCode off + LifeSpan "inf" + MaxStackSize "Inherit from target" + BufferReusableBoundary on + SimCompilerOptimization "Off" + AccelVerboseBuild off + } + Simulink.DebuggingCC { + $ObjectID 5 + Version "1.10.0" + RTPrefix "error" + ConsistencyChecking "none" + ArrayBoundsChecking "none" + SignalInfNanChecking "none" + SignalRangeChecking "none" + ReadBeforeWriteMsg "UseLocalSettings" + WriteAfterWriteMsg "UseLocalSettings" + WriteAfterReadMsg "UseLocalSettings" + AlgebraicLoopMsg "warning" + ArtificialAlgebraicLoopMsg "warning" + SaveWithDisabledLinksMsg "warning" + SaveWithParameterizedLinksMsg "warning" + CheckSSInitialOutputMsg on + UnderspecifiedInitializationDetection "Classic" + MergeDetectMultiDrivingBlocksExec "none" + CheckExecutionContextPreStartOutputMsg off + CheckExecutionContextRuntimeOutputMsg off + SignalResolutionControl "UseLocalSettings" + BlockPriorityViolationMsg "warning" + MinStepSizeMsg "warning" + TimeAdjustmentMsg "none" + MaxConsecutiveZCsMsg "error" + SolverPrmCheckMsg "warning" + InheritedTsInSrcMsg "warning" + DiscreteInheritContinuousMsg "warning" + MultiTaskDSMMsg "error" + MultiTaskCondExecSysMsg "error" + MultiTaskRateTransMsg "error" + SingleTaskRateTransMsg "none" + TasksWithSamePriorityMsg "warning" + SigSpecEnsureSampleTimeMsg "warning" + CheckMatrixSingularityMsg "none" + IntegerOverflowMsg "warning" + Int32ToFloatConvMsg "warning" + ParameterDowncastMsg "error" + ParameterOverflowMsg "error" + ParameterUnderflowMsg "none" + ParameterPrecisionLossMsg "warning" + ParameterTunabilityLossMsg "warning" + FixptConstUnderflowMsg "none" + FixptConstOverflowMsg "none" + FixptConstPrecisionLossMsg "none" + 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" + UnknownTsInhSupMsg "warning" + ModelReferenceDataLoggingMessage "warning" + ModelReferenceSymbolNameMessage "warning" + ModelReferenceExtraNoncontSigs "error" + StateNameClashWarn "warning" + SimStateInterfaceChecksumMismatchMsg "warning" + StrictBusMsg "ErrorLevel1" + BusNameAdapt "WarnAndRepair" + NonBusSignalsTreatedAsBus "none" + LoggingUnavailableSignals "error" + BlockIODiagnostic "none" + } + Simulink.HardwareCC { + $ObjectID 6 + Version "1.10.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 off + ProdEqTarget on + } + Simulink.ModelReferenceCC { + $ObjectID 7 + Version "1.10.0" + UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" + CheckModelReferenceTargetMessage "error" + EnableParallelModelReferenceBuilds off + ParallelModelReferenceMATLABWorkerInit "None" + ModelReferenceNumInstancesAllowed "Multi" + PropagateVarSize "Infer from blocks in model" + ModelReferencePassRootInputsByReference on + ModelReferenceMinAlgLoopOccurrences off + PropagateSignalLabelsOutOfModel off + SupportModelReferenceSimTargetCustomCode off + } + Simulink.SFSimCC { + $ObjectID 8 + Version "1.10.0" + SFSimEnableDebug on + SFSimOverflowDetection on + SFSimEcho on + SimBlas on + SimCtrlC on + SimExtrinsic on + SimIntegrity on + SimUseLocalCustomCode off + SimBuildMode "sf_incremental_build" + } + Simulink.RTWCC { + $BackupClass "Simulink.RTWCC" + $ObjectID 9 + Version "1.10.0" + Array { + Type "Cell" + Dimension 6 + Cell "IncludeHyperlinkInReport" + Cell "GenerateTraceInfo" + Cell "GenerateTraceReport" + Cell "GenerateTraceReportSl" + Cell "GenerateTraceReportSf" + Cell "GenerateTraceReportEml" + PropName "DisabledProps" + } + SystemTargetFile "grt.tlc" + GenCodeOnly off + MakeCommand "make_rtw" + GenerateMakefile on + 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 + RTWUseLocalCustomCode off + RTWUseSimCustomCode off + IncludeHyperlinkInReport off + LaunchReport off + TargetLang "C" + IncludeBusHierarchyInRTWFileBlockHierarchyMap off + IncludeERTFirstTime off + GenerateTraceInfo off + GenerateTraceReport off + GenerateTraceReportSl off + GenerateTraceReportSf off + GenerateTraceReportEml off + GenerateCodeInfo off + RTWCompilerOptimization "Off" + CheckMdlBeforeBuild "Off" + CustomRebuildMode "OnUpdate" + Array { + Type "Handle" + Dimension 2 + Simulink.CodeAppCC { + $ObjectID 10 + Version "1.10.0" + Array { + Type "Cell" + Dimension 19 + Cell "IgnoreCustomStorageClasses" + Cell "IgnoreTestpoints" + Cell "InsertBlockDesc" + Cell "SFDataObjDesc" + Cell "SimulinkDataObjDesc" + Cell "DefineNamingRule" + Cell "SignalNamingRule" + Cell "ParamNamingRule" + Cell "InlinedPrmAccess" + Cell "CustomSymbolStr" + Cell "CustomSymbolStrGlobalVar" + Cell "CustomSymbolStrType" + Cell "CustomSymbolStrField" + Cell "CustomSymbolStrFcn" + Cell "CustomSymbolStrFcnArg" + Cell "CustomSymbolStrBlkIO" + Cell "CustomSymbolStrTmpVar" + Cell "CustomSymbolStrMacro" + Cell "ReqsInCode" + PropName "DisabledProps" + } + ForceParamTrailComments off + GenerateComments on + IgnoreCustomStorageClasses on + IgnoreTestpoints off + IncHierarchyInIds off + MaxIdLength 31 + PreserveName off + PreserveNameWithParent off + ShowEliminatedStatement off + IncAutoGenComments off + SimulinkDataObjDesc off + SFDataObjDesc off + IncDataTypeInIds off + MangleLength 1 + CustomSymbolStrGlobalVar "$R$N$M" + CustomSymbolStrType "$N$R$M" + CustomSymbolStrField "$N$M" + CustomSymbolStrFcn "$R$N$M$F" + CustomSymbolStrFcnArg "rt$I$N$M" + CustomSymbolStrBlkIO "rtb_$N$M" + CustomSymbolStrTmpVar "$N$M" + CustomSymbolStrMacro "$R$N$M" + DefineNamingRule "None" + ParamNamingRule "None" + SignalNamingRule "None" + InsertBlockDesc off + SimulinkBlockComments on + EnableCustomComments off + InlinedPrmAccess "Literals" + ReqsInCode off + UseSimReservedNames off + } + Simulink.GRTTargetCC { + $BackupClass "Simulink.TargetCC" + $ObjectID 11 + Version "1.10.0" + Array { + Type "Cell" + Dimension 17 + Cell "GeneratePreprocessorConditionals" + Cell "IncludeMdlTerminateFcn" + Cell "CombineOutputUpdateFcns" + Cell "SuppressErrorStatus" + Cell "ERTCustomFileBanners" + Cell "GenerateSampleERTMain" + Cell "GenerateTestInterfaces" + Cell "ModelStepFunctionPrototypeControlCompliant" + Cell "CPPClassGenCompliant" + Cell "MultiInstanceERTCode" + Cell "PurelyIntegerCode" + Cell "SupportNonFinite" + Cell "SupportComplex" + Cell "SupportAbsoluteTime" + Cell "SupportContinuousTime" + Cell "SupportNonInlinedSFcns" + Cell "PortableWordSizes" + PropName "DisabledProps" + } + TargetFcnLib "ansi_tfl_table_tmw.mat" + TargetLibSuffix "" + TargetPreCompLibLocation "" + TargetFunctionLibrary "ANSI_C" + UtilityFuncGeneration "Auto" + ERTMultiwordTypeDef "System defined" + ERTCodeCoverageTool "None" + ERTMultiwordLength 256 + MultiwordLength 2048 + GenerateFullHeader on + GenerateSampleERTMain off + GenerateTestInterfaces off + IsPILTarget off + ModelReferenceCompliant on + ParMdlRefBuildCompliant on + CompOptLevelCompliant on + IncludeMdlTerminateFcn on + GeneratePreprocessorConditionals "Disable all" + CombineOutputUpdateFcns off + SuppressErrorStatus off + ERTFirstTimeCompliant off + IncludeFileDelimiter "Auto" + ERTCustomFileBanners off + SupportAbsoluteTime on + LogVarNameModifier "rt_" + MatFileLogging on + MultiInstanceERTCode off + SupportNonFinite on + SupportComplex on + PurelyIntegerCode off + SupportContinuousTime on + SupportNonInlinedSFcns on + SupportVariableSizeSignals off + EnableShiftOperators on + ParenthesesLevel "Nominal" + PortableWordSizes off + ModelStepFunctionPrototypeControlCompliant off + CPPClassGenCompliant off + AutosarCompliant off + UseMalloc off + ExtMode off + ExtModeStaticAlloc off + ExtModeTesting off + ExtModeStaticAllocSize 1000000 + ExtModeTransport 0 + ExtModeMexFile "ext_comm" + ExtModeIntrfLevel "Level1" + RTWCAPISignals off + RTWCAPIParams off + RTWCAPIStates off + GenerateASAP2 off + } + PropName "Components" + } + } + PropName "Components" + } + Name "Configuration" + CurrentDlgPage "Solver" + ConfigPrmDlgPosition " [ 200, 74, 1080, 704 ] " + } + PropName "ConfigurationSets" + } + Simulink.ConfigSet { + $PropName "ActiveConfigurationSet" + $ObjectID 1 + } + BlockDefaults { + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + NamePlacement "normal" + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + ShowName on + BlockRotation 0 + BlockMirror off + } + AnnotationDefaults { + HorizontalAlignment "center" + VerticalAlignment "middle" + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + UseDisplayTextAsClickCallback off + } + LineDefaults { + FontName "Helvetica" + FontSize 9 + FontWeight "normal" + FontAngle "normal" + } + BlockParameterDefaults { + Block { + BlockType Demux + Outputs "4" + DisplayOption "none" + BusSelectionMode off + } + Block { + BlockType Inport + Port "1" + UseBusObject off + BusObject "BusObject" + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + OutMin "[]" + OutMax "[]" + DataType "auto" + OutDataType "fixdt(1,16,0)" + OutScaling "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + SignalType "auto" + SamplingMode "auto" + LatchByDelayingOutsideSignal off + LatchInputForFeedbackSignals off + Interpolate on + } + Block { + BlockType Outport + Port "1" + UseBusObject off + BusObject "BusObject" + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + OutMin "[]" + OutMax "[]" + DataType "auto" + OutDataType "fixdt(1,16,0)" + OutScaling "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + SignalType "auto" + SamplingMode "auto" + SourceOfInitialOutputValue "Dialog" + OutputWhenDisabled "held" + InitialOutput "[]" + } + Block { + BlockType "S-Function" + FunctionName "system" + SFunctionModules "''" + PortCounts "[]" + SFunctionDeploymentMode off + } + Block { + BlockType SubSystem + ShowPortLabels "FromPortIcon" + Permissions "ReadWrite" + PermitHierarchicalResolution "All" + TreatAsAtomicUnit off + CheckFcnCallInpInsideContextMsg off + SystemSampleTime "-1" + RTWFcnNameOpts "Auto" + RTWFileNameOpts "Auto" + RTWMemSecFuncInitTerm "Inherit from model" + RTWMemSecFuncExecute "Inherit from model" + RTWMemSecDataConstants "Inherit from model" + RTWMemSecDataInternal "Inherit from model" + RTWMemSecDataParameters "Inherit from model" + SimViewingDevice off + DataTypeOverride "UseLocalSettings" + MinMaxOverflowLogging "UseLocalSettings" + } + Block { + BlockType Terminator + } + } + System { + Name "sample_model" + Location [70, 222, 650, 482] + Open on + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + ReportName "simulink-default.rpt" + SIDHighWatermark 8 + Block { + BlockType SubSystem + Name "Calibrate_signal" + SID 1 + Ports [3, 1] + Position [130, 58, 355, 162] + LibraryVersion "1.346" + UserDataPersistent on + UserData "DataTag0" + CopyFcn "TTdiag Copy" + DeleteFcn "TTdiag Delete" + OpenFcn "TTdiag Open Simulink" + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskDescription "Table Block" + MaskDisplay "port_label('input',1,'x');port_label('input',2,'k_Max');port_label('input',3,'k_Min');port_la" + "bel('output',1,'output');text(0.5, 0.9, 'Tabular Expression', 'horizontalAlignment', 'center')\ncolor('red')\nte" + "xt(0.5, 0.1, 'Not Checked', 'horizontalAlignment', 'center')" + MaskIconFrame on + MaskIconOpaque on + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "normalized" + System { + Name "Calibrate_signal" + Location [433, 447, 931, 747] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + Block { + BlockType Inport + Name "x" + SID 2 + Position [35, 38, 65, 52] + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "k_Max" + SID 7 + Position [35, 38, 65, 52] + Port "2" + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "k_Min" + SID 8 + Position [35, 38, 65, 52] + Port "3" + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType SubSystem + Name "code" + SID 5 + Ports [3, 1] + Position [250, 51, 320, 99] + LibraryVersion "1.31" + PermitHierarchicalResolution "ExplicitOnly" + TreatAsAtomicUnit on + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskType "Stateflow" + MaskDescription "Embedded MATLAB block" + MaskDisplay "disp('Calibrate_signal');" + MaskSelfModifiable on + MaskIconFrame on + MaskIconOpaque off + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "autoscale" + System { + Name "code" + Location [257, 457, 812, 717] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + SIDHighWatermark 27 + Block { + BlockType Inport + Name "x" + SID 1 + Position [20, 101, 40, 119] + IconDisplay "Port number" + OutDataType "sfix(16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "k_Max" + SID 18 + Position [20, 136, 40, 154] + Port "2" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "k_Min" + SID 19 + Position [20, 171, 40, 189] + Port "3" + IconDisplay "Port number" + } + Block { + BlockType Demux + Name " Demux " + SID 25 + Ports [1, 1] + Position [270, 180, 320, 220] + Outputs "1" + } + Block { + BlockType "S-Function" + Name " SFunction " + SID 24 + Tag "Stateflow S-Function sample_model 24" + Ports [3, 2] + Position [180, 100, 230, 180] + FunctionName "sf_sfun" + PortCounts "[3 2]" + EnableBusSupport off + Port { + PortNumber 2 + Name "output" + RTWStorageClass "Auto" + DataLoggingNameMode "SignalName" + } + } + Block { + BlockType Terminator + Name " Terminator " + SID 27 + Position [460, 191, 480, 209] + } + Block { + BlockType Outport + Name "output" + SID 5 + Position [460, 101, 480, 119] + IconDisplay "Port number" + OutDataType "sfix(16)" + OutScaling "2^0" + } + Line { + SrcBlock " SFunction " + SrcPort 1 + DstBlock " Demux " + DstPort 1 + } + Line { + SrcBlock "x" + SrcPort 1 + DstBlock " SFunction " + DstPort 1 + } + Line { + SrcBlock "k_Max" + SrcPort 1 + DstBlock " SFunction " + DstPort 2 + } + Line { + SrcBlock "k_Min" + SrcPort 1 + DstBlock " SFunction " + DstPort 3 + } + Line { + Name "output" + Labels [0, 0] + SrcBlock " SFunction " + SrcPort 2 + DstBlock "output" + DstPort 1 + } + Line { + SrcBlock " Demux " + SrcPort 1 + DstBlock " Terminator " + DstPort 1 + } + } + } + Block { + BlockType Outport + Name "output" + SID 6 + Position [35, 53, 65, 67] + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Line { + SrcBlock "x" + SrcPort 1 + DstBlock "code" + DstPort 1 + } + Line { + SrcBlock "k_Min" + SrcPort 1 + DstBlock "code" + DstPort 2 + } + Line { + SrcBlock "k_Max" + SrcPort 1 + DstBlock "code" + DstPort 3 + } + Line { + SrcBlock "code" + SrcPort 1 + DstBlock "output" + DstPort 1 + } + } + } + } +} +MatData { + NumRecords 1 + DataRecord { + Tag DataTag0 + Data " %)30 . > 8 ( $0 ! $ ! !-0T]3 0 $ $1A=&$. 2 8 ( #0 " + " % \" 8 ! 0 & & -T\" 0 $ ! !0 X #8+ !@ @ ) 4" + " ( 0 *@L ! ( \"H+ %)30 . \"\"P 8 ( @ % \" $ ! 0 " + " % 0 !0 $ % 34-/4P . P\"L 8 ( $0 ! $ ! !-0T]3 0 T !&:6QE5W)A<'" + "!E'0 8V5L;%]I;F1E> !P87)E;G1?9W)I9 !C96QL'1?> !C;VYD:71I;VY?=&5X=%]Y &-" + "O;F1I=&EO;E]T97AT7V]F9G-E= !G'0 4D-E;&P 9G5N8W1" + "I;VY?;F%M90!F=6YC=&EO;E]I;G!U=', \"!\\?\"!X(#P](&M?36%X#@ #@ & \" " + " 8 !0 @ ! 0 $ \"0 @ 0 X !( !@ @ - 4 ( !@ " + " $ ! 8 8 W0( ! 0 < # #@ #@ & \" 8 !0 @ ! 0 " + "$ \"0 @ #P/PX X !@ @ & 4 ( 0 $ ! D ( " + " \\#\\. . 8 ( !@ % \" $ ! 0 ) \" \"I ]=M #@ #@ & \" " + " 8 !0 @ ! 0 $ \"0 @ #P/PX !( !@ @ & 4 ( 0 " + " , ! D 8 *-4M9-7\\[S\\?LHIEUPSM/\\02<2EQ-^X_#@ #@ & \" 8 !0 @ ! 0" + " $ \"0 @ J@/7;0 X !P !@ @ ! 4 ( 0 $ ! X ! !@ " + " @ $ 4 ( 0 D ! ! ) :U]-87@@/\"!X X X !@ @ & " + " 4 ( 0 $ ! D ( \"$ . 2 8 ( #0 % \" 8 ! 0 " + " & & -T\" 0 $ ' P X X !@ @ & 4 ( 0 $ ! " + " D ( \\#\\. . 8 ( !@ % \" $ ! 0 ) \" / _#@ " + " #@ & \" 8 !0 @ ! 0 $ \"0 @ JP/7;0 X X !@ @ & " + " 4 ( 0 $ ! D ( \\#\\. 2 8 ( !@ % \" $ # 0" + " ) & \"C5+635_.\\_'[**9=<,[3_$$G$I<3?N/PX !0 !@ @ - 4 ( \" $ ! " + " 8 @ W0( ! P 8 ( \"0 $ . . 8 ( !@ % \" $ ! " + "0 ) \" A #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ " + " 0 X !( !@ @ - 4 ( !@ $ ! 8 8 W0( ! 0 ( \" #" + "@ #@ & \" 8 !0 @ ! 0 $ \"0 @ J /;;0 X X !@ @ & " + " 4 ( 0 $ ! D ( *D#VVT . 2 8 ( #0 % \" 8 ! 0" + " & & -T\" 0 $ ' P X X !@ @ & 4 ( 0 $ ! " + " D ( \\#\\. . 8 ( !@ % \" $ ! 0 ) \" / _#" + "@ #@ & \" 8 !0 @ ! 0 $ \"0 @ JP/3;0 X X !@ @ & " + " 4 ( 0 $ ! D ( \\#\\. 2 8 ( !@ % \" $ # " + " 0 ) & \"C5+635_.\\_'[**9=<,[3_$$G$I<3?N/PX !( !@ @ - 4 ( !@ $ ! " + " 8 8 W0( ! 0 8 ! #@ #@ & \" 8 !0 @ ! 0 $ \"" + "0 @ BP/[;0 X X !@ @ $ 4 ( 0 4 ! ! % :U]-:6X . 2 " + " 8 ( !@ % \" $ # 0 ) & / _ \\#\\ #P/PX !( !@" + " @ - 4 ( !@ $ ! 8 8 W0( ! 0 0 ! #@ $@ & \" " + " T !0 @ & 0 $ !@ !@ #= @ $ ! \" $ . . 8 ( !@ " + " % \" $ ! 0 ) \" \"( _]M #@ & & \" $ !0 @ ! 0" + " $ #@ # & \" 0 !0 @ ! 0 $ $ ! '@ . 2 8 ( !@ " + " % \" $ # 0 ) & / _ \\#\\ #P/PX !( !@ @ - " + " 4 ( !@ $ ! 8 8 W0( ! 0 0 ! #@ $@ & \" T !0 " + " @ & 0 $ !@ !@ #= @ $ ! \"0 $ . . 8 ( !@ % \" " + " $ ! 0 ) \" Y MQ #@ &@ & \" $ !0 @ ! 0 $ #@ " + " #@ & \" 0 !0 @ ! !0 $ $ 4 !K7TUA> X !( !@ @ & " + " 4 ( 0 , ! D 8 \\#\\ #P/P / _#@ % & \" T !0 " + " @ ( 0 $ !@ \" #= @ $ # P H + ! X !( !@ @ - " + " 4 ( !@ $ ! 8 8 W0( ! 0 4 # #@ $@ & \" T !0 " + " @ & 0 $ !@ !@ #= @ $ ! !P , . 2 8 ( #0 % \" " + "8 ! 0 & & -T\" 0 $ \" @ X !( !@ @ - 4 ( !@ " + "$ ! 8 8 W0( ! 0 4 # #@ $@ & \" T !0 @ & 0 $" + " !@ !@ #= @ $ ! !P , . 0 8 ( ! % \" $ 0 0 " + " 0 $ $-A;&EB'T #@ % ! & \" ( !0 @ ! 0 $ !0 $ < " + " ! ' '-E= !I;G!U=', 8V]U;G0 ')A;F=E #@ #@ & \" 8 !0 @ ! 0 $ " + " \"0 @ #P/PX P !@ @ & 4 ( ! D #@ #@ " + "& \" 8 !0 @ ! 0 $ \"0 @ $\"/0 X X !@ @ & 4 " + " ( 0 $ ! D ( 64 . . 8 ( !@ % \" $ ! 0 " + ") \" #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ X " + " X !@ @ & 4 ( 0 $ ! D ( . 4 X 8 ( 0 %" + " \" 8 ! 0 . . 8 ( @ % \" $ 0 % 0 0 $ " + " #@ &@% & \" ( !0 @ ! 0 $ !0 $ !8 ! 8 $ '-U8F=R:60 " + " !C;VYD 8V]N9%]T97AT &-E;&Q?:6YD97@ !P87)E;G1?9W)I9 " + " =VED=&@ &AE:6=H= !G'1?:&5I9VAT &-O;F1I=&EO;E]" + "T97AT7W@ !C;VYD:71I;VY?=&5X=%]Y 8V]N9&ET:6]N7W1E>'1?;V9F 8 ( $0 ! $ ! !-0T]3 0 $ $1A=&$. 2 8 ( #0 " + " % \" 8 ! 0 & & -T\" 0 $ ! !0 X !P)P !@ @ ) 4" + " ( 0 $ G ! ( ! )P %)30 . H\"8 8 ( @ % \" $ ! 0 " + " % 0 !0 $ % 34-/4P . 6\"8 8 ( $0 ! $ ! !-0T]3 0 T !&:6QE5W)A<'!E" + "'0 8V5L;%]I;F1E> !P87)E;G1?9W)I9 !C96QL'1?> !C;VYD:71I;VY?=&5X=%]Y &-" + "O;F1I=&EO;E]T97AT7V]F9G-E= !G'0 4D-E;&P 9G5N8W1" + "I;VY?;F%M90!F=6YC=&EO;E]I;G!U=', \"P $ ? # $ " + "@ #0 $ A #@ $ B #P $ C !@ @ ! & !8 ! &0 !< ! &@ !@ ! " + " &P !P ! ' !T ! '0 ) ! $ / !0 $ 0 !@ $ 1 !P $ 2 " + " \"P $ 3 # $ 4 #0 $ 5 #@ $ 6 #P $ 7 !0 , ! * \"$ ! " + " *0 \"( ! *@ \", ! *P \\ ! + " + " #@ . . 8 ( !@ % \" $ ! " + " 0 ) \" P $A #@ # & \" 0 !0 @ $ $ . " + " . 8 ( !@ % \" $ ! 0 ) \" / _#@ $@ & \" T " + " !0 @ & 0 $ !@ !@ #= @ $ ! ! $ . . 8 ( !@ % " + "\" $ ! 0 ) \" / _#@ #@ & \" 8 !0 @ ! 0 $ " + " \"0 @ #P/PX !( !@ @ - 4 ( !@ $ ! 8 8 W0( ! " + " 0 ( \" #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ ,(!(0 X X " + " !@ @ & 4 ( 0 $ ! D ( # 2D . 2 8 ( #0 % \"" + " 8 ! 0 & & -T\" 0 $ % P X X !@ @ & 4 ( 0" + " $ ! D ( \\#\\. 2 8 ( #0 % \" 8 ! 0 & &" + " -T\" 0 $ $ 0 X X !@ @ & 4 ( 0 $ ! D ( " + " \"@ 14 . . 8 ( ! % \" $ % 0 0 !0 '@^-\"XU #@ #@ & \"" + " 8 !0 @ ! 0 $ \"0 @ #P/PX X !@ @ & 4 ( 0" + " $ ! D ( \"@ 1D . : 8 ( 0 % \" $ ! 0 . . " + " 8 ( ! % \" $ % 0 0 !0 '@\\-\"XU #@ #@ & \" 8 " + "!0 @ ! 0 $ \"0 @ 0 X !( !@ @ - 4 ( !@ $ ! " + " 8 8 W0( ! 0 < # #@ #@ & \" 8 !0 @ ! 0 $ \"" + "0 @ #P/PX X !@ @ & 4 ( 0 $ ! D ( \\#\\. ." + " 8 ( !@ % \" $ ! 0 ) \" H@$9 #@ #@ & \" 8 " + "!0 @ ! 0 $ \"0 @ #P/PX !( !@ @ & 4 ( 0 , ! " + " D 8 3H3L,<\"?[3_GG\\O\\@WWO/R(^5:,;G>T_#@ % & \" T !0 @ ' 0 $ " + " !@ !P #= @ $ \" !@ @ ! X X !@ @ & 4 ( 0 $ ! " + " D ( $ . . 8 ( !@ % \" $ ! 0 ) \" ! " + "#@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! @ ( . ." + " 8 ( !@ % \" $ ! 0 ) \" P $= #@ #@ & \" 8 " + "!0 @ ! 0 $ \"0 @ ,(!'0 X !( !@ @ - 4 ( !@ $ ! " + " 8 8 W0( ! 0 < # #@ #@ & \" 8 !0 @ ! 0 $ \"" + "0 @ #P/PX X !@ @ & 4 ( 0 $ ! D ( \\#\\. ." + " 8 ( !@ % \" $ ! 0 ) \" H@$5 #@ #@ & \" 8 " + "!0 @ ! 0 $ \"0 @ #P/PX !( !@ @ & 4 ( 0 , ! " + " D 8 3H3L,<\"?[3_GG\\O\\@WWO/R(^5:,;G>T_#@ $@ & \" T !0 @ & 0 $ " + " !@ !@ #= @ $ ! !@ $ . . 8 ( !@ % \" $ ! 0 ) " + "\" P@$I #@ # & \" 0 !0 @ ! 0 $ $ ! #$ . 2 8 ( " + "!@ % \" $ # 0 ) & / _ \\#\\ #P/PX !( !@ @ - " + " 4 ( !@ $ ! 8 8 W0( ! 0 0 ! #@ $@ & \" T " + "!0 @ & 0 $ !@ !@ #= @ $ ! \" $ . . 8 ( !@ % \"" + " $ ! 0 ) \" P $M #@ & & \" $ !0 @ ! 0 $ #" + "@ # & \" 0 !0 @ ! 0 $ $ ! # . 2 8 ( !@ % \"" + " $ # 0 ) & / _ \\#\\ #P/PX !0 !@ @ - 4 ( !" + "P $ ! 8 < W0( ! @ , ) ! . 2 8 ( #0 % \" " + " 8 ! 0 & & -T\" 0 $ % P X !( !@ @ - 4 ( !@ " + " $ ! 8 8 W0( ! 0 < # #@ $@ & \" T !0 @ & 0 " + " $ !@ !@ #= @ $ ! @ ( . 2 8 ( #0 % \" 8 ! 0 " + " & & -T\" 0 $ % P X !( !@ @ - 4 ( !@ $ ! " + "8 8 W0( ! 0 < # #@ $ & \" 0 !0 @ ! \"0 $ $ " + "D !T>7!E7W1E'0 " + " 8V5L;%]I;F1E> '!A'1?> &-O;F1I=&EO;E]T97AT7WD !C;VYD" + ":71I;VY?=&5X=%]O9F9S970 9W)I9%]P=7-H7W=I9'1H X P !@ @ & 4 ( ! " + " D #@ # & \" 8 !0 @ $ \"0 . , 8 ( !@" + " % \" 0 ) X X !@ @ & 4 ( 0 $ ! " + " D ( . , 8 ( !@ % \" 0 ) X X !@ " + " @ & 4 ( 0 $ ! D ( . . 8 ( !@ % \" " + " $ ! 0 ) \" #@ # & \" 8 !0 @ $ \"0 " + " . . 8 ( !@ % \" $ ! 0 ) \" #@ # & \" " + " 8 !0 @ $ \"0 . . 8 ( !@ % \" $ ! 0 " + " ) \" &E #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ " + "!.0 X X !@ @ & 4 ( 0 $ ! D ( )$ . . 8 ( !@ " + " % \" $ ! 0 ) \" \"1 #@ #@ & \" 8 !0 @ ! 0" + " $ \"0 @ T0 X X !@ @ & 4 ( 0 $ ! D ( " + " /D . ^ 8 ( @ % \" $ ! 0 % 0 !@ $ 2 0V5L;', 1W)I9#$ 1W)I" + "9#( #@ # & \" 8 !0 @ $ \"0 . , 8 ( !@ " + " % \" 0 ) X P !@ @ & 4 ( ! " + " D #@ ,@\" & \" ( !0 @ ! 0 $ !0 $ \\ ! AP '!A4.5)\n output = 1;\nelseif(x<4.5)\n ou" + "tput = 0;\nend\n" + editorLayout "100 M4x1[205 227 1080 733]" + } + } + junction { + id 4 + position [23.5747 49.5747 7] + chart 2 + linkNode [2 0 0] + subviewer 2 + ssIdNumber 3 + type CONNECTIVE_JUNCTION + } + transition { + id 5 + labelString "{eML_blk_kernel();}" + labelPosition [32.125 19.875 102.544 14.964] + fontSize 12 + src { + intersection [0 0 1 0 23.5747 14.625 0 0] + } + dst { + id 4 + intersection [7 0 -1 -1 23.5747 42.5747 0 0] + } + midPoint [23.5747 24.9468] + chart 2 + linkNode [2 0 0] + dataLimits [23.575 23.575 14.625 34.575] + subviewer 2 + drawStyle SMART + executionOrder 1 + ssIdNumber 2 + } + data { + id 6 + ssIdNumber 4 + name "x" + linkNode [2 0 7] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + primitive SF_INT8_TYPE + } + complexity SF_COMPLEX_INHERITED + } + dataType "int8" + } + data { + id 7 + ssIdNumber 5 + name "output" + linkNode [2 6 0] + scope OUTPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_NO + } + dataType "Inherit: Same as Simulink" + } + instance { + id 8 + name "type_test/code" + machine 1 + chart 2 + } + target { + id 9 + name "sfun" + description "Default Simulink S-Function Target." + machine 1 + linkNode [1 0 0] + } +} diff --git a/Examples/testing2d.mdl b/Examples/testing2d.mdl new file mode 100644 index 0000000000000000000000000000000000000000..81a8f7356903af15018e86c4ac5302c2e1a35e3d --- /dev/null +++ b/Examples/testing2d.mdl @@ -0,0 +1,1239 @@ +Model { + Name "testing2d" + Version 7.5 + MdlSubVersion 0 + GraphicalInterface { + NumRootInports 0 + NumRootOutports 0 + ParameterArgumentNames "" + ComputedModelVersion "1.2" + NumModelReferences 0 + NumTestPointedSignals 0 + } + SavedCharacterEncoding "UTF-8" + SaveDefaultBlockParams on + ScopeRefreshTime 0.035000 + OverrideScopeRefreshTime on + DisableAllScopes off + DataTypeOverride "UseLocalSettings" + MinMaxOverflowLogging "UseLocalSettings" + MinMaxOverflowArchiveMode "Overwrite" + MaxMDLFileLineLength 120 + Created "Fri Sep 24 14:35:04 2010" + Creator "lawford" + UpdateHistory "UpdateHistoryNever" + ModifiedByFormat "%" + LastModifiedBy "lawford" + ModifiedDateFormat "%" + LastModifiedDate "Thu Sep 30 16:47:13 2010" + RTWModifiedTimeStamp 207243734 + ModelVersionFormat "1.%" + ConfigurationManager "None" + SampleTimeColors off + SampleTimeAnnotations off + LibraryLinkDisplay "none" + WideLines off + ShowLineDimensions off + ShowPortDataTypes off + ShowLoopsOnError on + IgnoreBidirectionalLines off + ShowStorageClass off + ShowTestPointIcons on + ShowSignalResolutionIcons on + ShowViewerIcons on + SortedOrder off + ExecutionContextIcon off + ShowLinearizationAnnotations on + BlockNameDataTip off + BlockParametersDataTip off + BlockDescriptionStringDataTip off + ToolBar on + StatusBar on + BrowserShowLibraryLinks off + BrowserLookUnderMasks off + SimulationMode "normal" + LinearizationMsg "none" + Profile off + ParamWorkspaceSource "MATLABWorkspace" + AccelSystemTargetFile "accel.tlc" + AccelTemplateMakefile "accel_default_tmf" + AccelMakeCommand "make_rtw" + TryForcingSFcnDF off + RecordCoverage off + CovPath "/" + CovSaveName "covdata" + CovMetricSettings "dw" + CovNameIncrementing off + CovHtmlReporting on + CovForceBlockReductionOff on + covSaveCumulativeToWorkspaceVar on + CovSaveSingleToWorkspaceVar on + CovCumulativeVarName "covCumulativeData" + CovCumulativeReport off + CovReportOnPause on + CovModelRefEnable "Off" + CovExternalEMLEnable 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 on + ShowModelReferenceBlockVersion off + ShowModelReferenceBlockIO off + Array { + Type "Handle" + Dimension 1 + Simulink.ConfigSet { + $ObjectID 1 + Version "1.10.0" + Array { + Type "Handle" + Dimension 8 + Simulink.SolverCC { + $ObjectID 2 + Version "1.10.0" + StartTime "0.0" + StopTime "10.0" + AbsTol "auto" + FixedStep "auto" + InitialStep "auto" + MaxNumMinSteps "-1" + MaxOrder 5 + ZcThreshold "auto" + ConsecutiveZCsStepRelTol "10*128*eps" + MaxConsecutiveZCs "1000" + ExtrapolationOrder 4 + NumberNewtonIterations 1 + MaxStep "auto" + MinStep "auto" + MaxConsecutiveMinStep "1" + RelTol "1e-3" + SolverMode "Auto" + Solver "ode45" + SolverName "ode45" + SolverJacobianMethodControl "auto" + ShapePreserveControl "DisableAll" + ZeroCrossControl "UseLocalSettings" + ZeroCrossAlgorithm "Nonadaptive" + AlgebraicLoopSolver "TrustRegion" + SolverResetMethod "Fast" + PositivePriorityOrder off + AutoInsertRateTranBlk off + SampleTimeConstraint "Unconstrained" + InsertRTBMode "Whenever possible" + } + Simulink.DataIOCC { + $ObjectID 3 + Version "1.10.0" + Decimation "1" + ExternalInput "[t, u]" + FinalStateName "xFinal" + InitialState "xInitial" + LimitDataPoints on + MaxDataPoints "1000" + LoadExternalInput off + LoadInitialState off + SaveFinalState off + SaveCompleteFinalSimState off + SaveFormat "Array" + SaveOutput on + SaveState off + SignalLogging on + DSMLogging on + InspectSignalLogs off + SaveTime on + ReturnWorkspaceOutputs off + StateSaveName "xout" + TimeSaveName "tout" + OutputSaveName "yout" + SignalLoggingName "logsout" + DSMLoggingName "dsmout" + OutputOption "RefineOutputTimes" + OutputTimes "[]" + ReturnWorkspaceOutputsName "out" + Refine "1" + } + Simulink.OptimizationCC { + $ObjectID 4 + Version "1.10.0" + Array { + Type "Cell" + Dimension 7 + Cell "BooleansAsBitfields" + Cell "PassReuseOutputArgsAs" + Cell "PassReuseOutputArgsThreshold" + Cell "ZeroExternalMemoryAtStartup" + Cell "ZeroInternalMemoryAtStartup" + Cell "OptimizeModelRefInitCode" + Cell "NoFixptDivByZeroProtection" + PropName "DisabledProps" + } + BlockReduction on + BooleanDataType on + ConditionallyExecuteInputs on + InlineParams off + UseIntDivNetSlope off + InlineInvariantSignals off + OptimizeBlockIOStorage on + BufferReuse on + EnhancedBackFolding off + StrengthReduction off + EnforceIntegerDowncast on + ExpressionFolding on + BooleansAsBitfields off + BitfieldContainerType "uint_T" + EnableMemcpy on + MemcpyThreshold 64 + PassReuseOutputArgsAs "Structure reference" + ExpressionDepthLimit 2147483647 + FoldNonRolledExpr on + LocalBlockOutputs on + RollThreshold 5 + SystemCodeInlineAuto off + StateBitsets off + DataBitsets off + UseTempVars off + ZeroExternalMemoryAtStartup on + ZeroInternalMemoryAtStartup on + InitFltsAndDblsToZero off + NoFixptDivByZeroProtection off + EfficientFloat2IntCast off + EfficientMapNaN2IntZero on + OptimizeModelRefInitCode off + LifeSpan "inf" + MaxStackSize "Inherit from target" + BufferReusableBoundary on + SimCompilerOptimization "Off" + AccelVerboseBuild off + } + Simulink.DebuggingCC { + $ObjectID 5 + Version "1.10.0" + RTPrefix "error" + ConsistencyChecking "none" + ArrayBoundsChecking "none" + SignalInfNanChecking "none" + SignalRangeChecking "none" + ReadBeforeWriteMsg "UseLocalSettings" + WriteAfterWriteMsg "UseLocalSettings" + WriteAfterReadMsg "UseLocalSettings" + AlgebraicLoopMsg "warning" + ArtificialAlgebraicLoopMsg "warning" + SaveWithDisabledLinksMsg "warning" + SaveWithParameterizedLinksMsg "warning" + CheckSSInitialOutputMsg on + UnderspecifiedInitializationDetection "Classic" + MergeDetectMultiDrivingBlocksExec "none" + CheckExecutionContextPreStartOutputMsg off + CheckExecutionContextRuntimeOutputMsg off + SignalResolutionControl "UseLocalSettings" + BlockPriorityViolationMsg "warning" + MinStepSizeMsg "warning" + TimeAdjustmentMsg "none" + MaxConsecutiveZCsMsg "error" + SolverPrmCheckMsg "warning" + InheritedTsInSrcMsg "warning" + DiscreteInheritContinuousMsg "warning" + MultiTaskDSMMsg "error" + MultiTaskCondExecSysMsg "error" + MultiTaskRateTransMsg "error" + SingleTaskRateTransMsg "none" + TasksWithSamePriorityMsg "warning" + SigSpecEnsureSampleTimeMsg "warning" + CheckMatrixSingularityMsg "none" + IntegerOverflowMsg "warning" + Int32ToFloatConvMsg "warning" + ParameterDowncastMsg "error" + ParameterOverflowMsg "error" + ParameterUnderflowMsg "none" + ParameterPrecisionLossMsg "warning" + ParameterTunabilityLossMsg "warning" + FixptConstUnderflowMsg "none" + FixptConstOverflowMsg "none" + FixptConstPrecisionLossMsg "none" + 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" + UnknownTsInhSupMsg "warning" + ModelReferenceDataLoggingMessage "warning" + ModelReferenceSymbolNameMessage "warning" + ModelReferenceExtraNoncontSigs "error" + StateNameClashWarn "warning" + SimStateInterfaceChecksumMismatchMsg "warning" + StrictBusMsg "ErrorLevel1" + BusNameAdapt "WarnAndRepair" + NonBusSignalsTreatedAsBus "none" + LoggingUnavailableSignals "error" + BlockIODiagnostic "none" + } + Simulink.HardwareCC { + $ObjectID 6 + Version "1.10.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 off + ProdEqTarget on + } + Simulink.ModelReferenceCC { + $ObjectID 7 + Version "1.10.0" + UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" + CheckModelReferenceTargetMessage "error" + EnableParallelModelReferenceBuilds off + ParallelModelReferenceMATLABWorkerInit "None" + ModelReferenceNumInstancesAllowed "Multi" + PropagateVarSize "Infer from blocks in model" + ModelReferencePassRootInputsByReference on + ModelReferenceMinAlgLoopOccurrences off + PropagateSignalLabelsOutOfModel off + SupportModelReferenceSimTargetCustomCode off + } + Simulink.SFSimCC { + $ObjectID 8 + Version "1.10.0" + SFSimEnableDebug on + SFSimOverflowDetection on + SFSimEcho on + SimBlas on + SimCtrlC on + SimExtrinsic on + SimIntegrity on + SimUseLocalCustomCode off + SimBuildMode "sf_incremental_build" + } + Simulink.RTWCC { + $BackupClass "Simulink.RTWCC" + $ObjectID 9 + Version "1.10.0" + Array { + Type "Cell" + Dimension 6 + Cell "IncludeHyperlinkInReport" + Cell "GenerateTraceInfo" + Cell "GenerateTraceReport" + Cell "GenerateTraceReportSl" + Cell "GenerateTraceReportSf" + Cell "GenerateTraceReportEml" + PropName "DisabledProps" + } + SystemTargetFile "grt.tlc" + GenCodeOnly off + MakeCommand "make_rtw" + GenerateMakefile on + 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 + RTWUseLocalCustomCode off + RTWUseSimCustomCode off + IncludeHyperlinkInReport off + LaunchReport off + TargetLang "C" + IncludeBusHierarchyInRTWFileBlockHierarchyMap off + IncludeERTFirstTime off + GenerateTraceInfo off + GenerateTraceReport off + GenerateTraceReportSl off + GenerateTraceReportSf off + GenerateTraceReportEml off + GenerateCodeInfo off + RTWCompilerOptimization "Off" + CheckMdlBeforeBuild "Off" + CustomRebuildMode "OnUpdate" + Array { + Type "Handle" + Dimension 2 + Simulink.CodeAppCC { + $ObjectID 10 + Version "1.10.0" + Array { + Type "Cell" + Dimension 19 + Cell "IgnoreCustomStorageClasses" + Cell "IgnoreTestpoints" + Cell "InsertBlockDesc" + Cell "SFDataObjDesc" + Cell "SimulinkDataObjDesc" + Cell "DefineNamingRule" + Cell "SignalNamingRule" + Cell "ParamNamingRule" + Cell "InlinedPrmAccess" + Cell "CustomSymbolStr" + Cell "CustomSymbolStrGlobalVar" + Cell "CustomSymbolStrType" + Cell "CustomSymbolStrField" + Cell "CustomSymbolStrFcn" + Cell "CustomSymbolStrFcnArg" + Cell "CustomSymbolStrBlkIO" + Cell "CustomSymbolStrTmpVar" + Cell "CustomSymbolStrMacro" + Cell "ReqsInCode" + PropName "DisabledProps" + } + ForceParamTrailComments off + GenerateComments on + IgnoreCustomStorageClasses on + IgnoreTestpoints off + IncHierarchyInIds off + MaxIdLength 31 + PreserveName off + PreserveNameWithParent off + ShowEliminatedStatement off + IncAutoGenComments off + SimulinkDataObjDesc off + SFDataObjDesc off + IncDataTypeInIds off + MangleLength 1 + CustomSymbolStrGlobalVar "$R$N$M" + CustomSymbolStrType "$N$R$M" + CustomSymbolStrField "$N$M" + CustomSymbolStrFcn "$R$N$M$F" + CustomSymbolStrFcnArg "rt$I$N$M" + CustomSymbolStrBlkIO "rtb_$N$M" + CustomSymbolStrTmpVar "$N$M" + CustomSymbolStrMacro "$R$N$M" + DefineNamingRule "None" + ParamNamingRule "None" + SignalNamingRule "None" + InsertBlockDesc off + SimulinkBlockComments on + EnableCustomComments off + InlinedPrmAccess "Literals" + ReqsInCode off + UseSimReservedNames off + } + Simulink.GRTTargetCC { + $BackupClass "Simulink.TargetCC" + $ObjectID 11 + Version "1.10.0" + Array { + Type "Cell" + Dimension 17 + Cell "GeneratePreprocessorConditionals" + Cell "IncludeMdlTerminateFcn" + Cell "CombineOutputUpdateFcns" + Cell "SuppressErrorStatus" + Cell "ERTCustomFileBanners" + Cell "GenerateSampleERTMain" + Cell "GenerateTestInterfaces" + Cell "ModelStepFunctionPrototypeControlCompliant" + Cell "CPPClassGenCompliant" + Cell "MultiInstanceERTCode" + Cell "PurelyIntegerCode" + Cell "SupportNonFinite" + Cell "SupportComplex" + Cell "SupportAbsoluteTime" + Cell "SupportContinuousTime" + Cell "SupportNonInlinedSFcns" + Cell "PortableWordSizes" + PropName "DisabledProps" + } + TargetFcnLib "ansi_tfl_table_tmw.mat" + TargetLibSuffix "" + TargetPreCompLibLocation "" + TargetFunctionLibrary "ANSI_C" + UtilityFuncGeneration "Auto" + ERTMultiwordTypeDef "System defined" + ERTCodeCoverageTool "None" + ERTMultiwordLength 256 + MultiwordLength 2048 + GenerateFullHeader on + GenerateSampleERTMain off + GenerateTestInterfaces off + IsPILTarget off + ModelReferenceCompliant on + ParMdlRefBuildCompliant on + CompOptLevelCompliant on + IncludeMdlTerminateFcn on + GeneratePreprocessorConditionals "Disable all" + CombineOutputUpdateFcns off + SuppressErrorStatus off + ERTFirstTimeCompliant off + IncludeFileDelimiter "Auto" + ERTCustomFileBanners off + SupportAbsoluteTime on + LogVarNameModifier "rt_" + MatFileLogging on + MultiInstanceERTCode off + SupportNonFinite on + SupportComplex on + PurelyIntegerCode off + SupportContinuousTime on + SupportNonInlinedSFcns on + SupportVariableSizeSignals off + EnableShiftOperators on + ParenthesesLevel "Nominal" + PortableWordSizes off + ModelStepFunctionPrototypeControlCompliant off + CPPClassGenCompliant off + AutosarCompliant off + UseMalloc off + ExtMode off + ExtModeStaticAlloc off + ExtModeTesting off + ExtModeStaticAllocSize 1000000 + ExtModeTransport 0 + ExtModeMexFile "ext_comm" + ExtModeIntrfLevel "Level1" + RTWCAPISignals off + RTWCAPIParams off + RTWCAPIStates off + GenerateASAP2 off + } + PropName "Components" + } + } + PropName "Components" + } + Name "Configuration" + CurrentDlgPage "Solver" + ConfigPrmDlgPosition " [ 200, 197, 1080, 827 ] " + } + PropName "ConfigurationSets" + } + Simulink.ConfigSet { + $PropName "ActiveConfigurationSet" + $ObjectID 1 + } + BlockDefaults { + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + NamePlacement "normal" + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + ShowName on + BlockRotation 0 + BlockMirror off + } + AnnotationDefaults { + HorizontalAlignment "center" + VerticalAlignment "middle" + ForegroundColor "black" + BackgroundColor "white" + DropShadow off + FontName "Helvetica" + FontSize 10 + FontWeight "normal" + FontAngle "normal" + UseDisplayTextAsClickCallback off + } + LineDefaults { + FontName "Helvetica" + FontSize 9 + FontWeight "normal" + FontAngle "normal" + } + BlockParameterDefaults { + Block { + BlockType Demux + Outputs "4" + DisplayOption "none" + BusSelectionMode off + } + Block { + BlockType Inport + Port "1" + UseBusObject off + BusObject "BusObject" + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + OutMin "[]" + OutMax "[]" + DataType "auto" + OutDataType "fixdt(1,16,0)" + OutScaling "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + SignalType "auto" + SamplingMode "auto" + LatchByDelayingOutsideSignal off + LatchInputForFeedbackSignals off + Interpolate on + } + Block { + BlockType Outport + Port "1" + UseBusObject off + BusObject "BusObject" + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + OutMin "[]" + OutMax "[]" + DataType "auto" + OutDataType "fixdt(1,16,0)" + OutScaling "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + SignalType "auto" + SamplingMode "auto" + SourceOfInitialOutputValue "Dialog" + OutputWhenDisabled "held" + InitialOutput "[]" + } + Block { + BlockType "S-Function" + FunctionName "system" + SFunctionModules "''" + PortCounts "[]" + SFunctionDeploymentMode off + } + Block { + BlockType SubSystem + ShowPortLabels "FromPortIcon" + Permissions "ReadWrite" + PermitHierarchicalResolution "All" + TreatAsAtomicUnit off + CheckFcnCallInpInsideContextMsg off + SystemSampleTime "-1" + RTWFcnNameOpts "Auto" + RTWFileNameOpts "Auto" + RTWMemSecFuncInitTerm "Inherit from model" + RTWMemSecFuncExecute "Inherit from model" + RTWMemSecDataConstants "Inherit from model" + RTWMemSecDataInternal "Inherit from model" + RTWMemSecDataParameters "Inherit from model" + SimViewingDevice off + DataTypeOverride "UseLocalSettings" + MinMaxOverflowLogging "UseLocalSettings" + } + Block { + BlockType Terminator + } + } + System { + Name "testing2d" + Location [620, 89, 1200, 349] + Open on + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + ReportName "simulink-default.rpt" + SIDHighWatermark 12 + Block { + BlockType SubSystem + Name "f_myfunc" + SID 1 + Ports [2, 1] + Position [70, 94, 235, 161] + LibraryVersion "1.12" + UserDataPersistent on + UserData "DataTag0" + CopyFcn "TTdiag Copy" + DeleteFcn "TTdiag Delete" + OpenFcn "TTdiag Open Simulink" + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskDescription "Table Block" + MaskDisplay "port_label('input',1,'x');port_label('input',2,'y');port_label('output',1,'output');text(0.5," + " 0.9, 'Tabular Expression', 'horizontalAlignment', 'center')\ncolor('red')\ntext(0.5, 0.1, 'Not Checked', 'horiz" + "ontalAlignment', 'center')" + MaskIconFrame on + MaskIconOpaque on + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "normalized" + System { + Name "f_myfunc" + Location [433, 447, 931, 747] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + Block { + BlockType Inport + Name "x" + SID 4 + Position [35, 38, 65, 52] + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "y" + SID 5 + Position [35, 38, 65, 52] + Port "2" + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Block { + BlockType SubSystem + Name "code" + SID 3 + Ports [2, 1] + Position [250, 49, 320, 96] + LibraryVersion "1.31" + PermitHierarchicalResolution "ExplicitOnly" + TreatAsAtomicUnit on + MinAlgLoopOccurrences off + PropExecContextOutsideSubsystem off + RTWSystemCode "Auto" + FunctionWithSeparateData off + Opaque off + RequestExecContextInheritance off + MaskHideContents off + MaskType "Stateflow" + MaskDescription "Embedded MATLAB block" + MaskDisplay "disp('f_myfunc');" + MaskSelfModifiable on + MaskIconFrame on + MaskIconOpaque off + MaskIconRotate "none" + MaskPortRotate "default" + MaskIconUnits "autoscale" + System { + Name "code" + Location [257, 457, 812, 717] + Open off + ModelBrowserVisibility off + ModelBrowserWidth 200 + ScreenColor "white" + PaperOrientation "landscape" + PaperPositionMode "auto" + PaperType "usletter" + PaperUnits "inches" + TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] + TiledPageScale 1 + ShowPageBoundaries off + ZoomFactor "100" + SIDHighWatermark 19 + SIDPrevWatermark 13 + Block { + BlockType Inport + Name "x" + SID 1 + Position [20, 101, 40, 119] + IconDisplay "Port number" + OutDataType "sfix(16)" + OutScaling "2^0" + } + Block { + BlockType Inport + Name "y" + SID 18 + Position [20, 136, 40, 154] + Port "2" + IconDisplay "Port number" + } + Block { + BlockType Demux + Name " Demux " + SID 15 + Ports [1, 1] + Position [270, 160, 320, 200] + Outputs "1" + } + Block { + BlockType "S-Function" + Name " SFunction " + SID 14 + Tag "Stateflow S-Function testing2d 2" + Ports [2, 2] + Position [180, 100, 230, 160] + FunctionName "sf_sfun" + PortCounts "[2 2]" + EnableBusSupport off + Port { + PortNumber 2 + Name "output" + RTWStorageClass "Auto" + DataLoggingNameMode "SignalName" + } + } + Block { + BlockType Terminator + Name " Terminator " + SID 17 + Position [460, 171, 480, 189] + } + Block { + BlockType Outport + Name "output" + SID 19 + Position [460, 101, 480, 119] + IconDisplay "Port number" + } + Line { + SrcBlock " SFunction " + SrcPort 1 + DstBlock " Demux " + DstPort 1 + } + Line { + SrcBlock "x" + SrcPort 1 + DstBlock " SFunction " + DstPort 1 + } + Line { + SrcBlock "y" + SrcPort 1 + DstBlock " SFunction " + DstPort 2 + } + Line { + Name "output" + Labels [0, 0] + SrcBlock " SFunction " + SrcPort 2 + DstBlock "output" + DstPort 1 + } + Line { + SrcBlock " Demux " + SrcPort 1 + DstBlock " Terminator " + DstPort 1 + } + } + } + Block { + BlockType Outport + Name "output" + SID 6 + Position [35, 53, 65, 67] + IconDisplay "Port number" + OutDataType "fixdt(1, 16)" + OutScaling "2^0" + } + Line { + SrcBlock "x" + SrcPort 1 + DstBlock "code" + DstPort 1 + } + Line { + SrcBlock "y" + SrcPort 1 + DstBlock "code" + DstPort 2 + } + Line { + SrcBlock "code" + SrcPort 1 + DstBlock "output" + DstPort 1 + } + } + } + } +} +MatData { + NumRecords 1 + DataRecord { + Tag DataTag0 + Data " %)30 . > 8 ( $0 ! $ ! !-0T]3 0 $ $1A=&$. 2 8 ( #0 " + " % \" 8 ! 0 & & -T\" 0 $ ! !0 X 0- !@ @ ) 4" + " ( 0 . S ! ( #@,P %)30 . 0#, 8 ( @ % \" $ ! 0 " + " % 0 !0 $ % 34-/4P . ^#( 8 ( $0 ! $ ! !-0T]3 0 T !&:6QE5W)A<'!E'0 8V5L;%]I;F1E> !P87)E;G1?9W)I9 !C96QL'1?;V9F'0 4D-E;&P 9G5N8W1I;" + "VY?;F%M90!F=6YC=&EO;E]I;G!U=', %@ $ ? %P $ " + " @ $0 $ A $@ $ B !0 , ! ,P \"$ ! - \"( ! -0 \", ! -@ !( " + " ! -P 4 # 0 #@ A 0 #D B 0 #H C 0 #L 2 0 #P % P $ " + " ] (0 $ ^ (@ $ _ (P $ ! $@ $ !! !0 , ! 0@ \"$ ! 0P \"( " + " ! 1 \", ! 10 !( ! 1@ 4 # 0 $< A 0 $@ B 0 $D C 0 $H " + "2 0 $L " + " X #@ #@ & \" 8 " + " !0 @ ! 0 $ \"0 @ \" *R>0 X P !@ @ $ 4 ( 0 , ! " + " ! P!X/'D #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ #P/PX X " + " !@ @ & 4 ( 0 $ ! D ( @ #$GD . : 8 ( 0 % " + "\" $ ! 0 . . 8 ( ! % \" $ ' 0 0 !P '@^/7DK,3 " + "#@ #@ & \" 8 !0 @ ! 0 $ \"0 @ 0 X !( !@ @ - " + " 4 ( !@ $ ! 8 8 W0( ! 0 4 ! #@ #@ & \" 8 !" + "0 @ ! 0 $ \"0 @ #P/PX !( !@ @ & 4 ( 0 , ! " + " D 8 \\#\\ #P/P / _#@ #@ & \" 8 !0 @ ! 0 $ \"" + "0 @ \" ,R?0 X !P !@ @ ! 4 ( 0 $ ! X ! !@ @ $ " + " 4 ( 0 P ! ! , >#QY*S$P(\"9X/CUY X X !@ @ & 4 ( 0 " + " $ ! D ( \"$ . 2 8 ( #0 % \" 8 ! 0 & & " + " -T\" 0 $ % 0 X X !@ @ & 4 ( 0 $ ! D ( " + " \\#\\. 2 8 ( !@ % \" $ # 0 ) & / _ \\#\\ " + " #P/PX !0 !@ @ - 4 ( \" $ ! 8 @ W0( ! P 0 & !P" + " ( . . 8 ( !@ % \" $ ! 0 ) \" A #@ #@ & \"" + " 8 !0 @ ! 0 $ \"0 @ #P/PX !( !@ @ - 4 ( !@" + " $ ! 8 8 W0( ! 0 ( # #@ $@ & \" T !0 @ & 0 " + " $ !@ !@ #= @ $ ! !0 $ . . 8 ( !@ % \" $ ! 0 " + " ) \" / _#@ $@ & \" 8 !0 @ ! P $ \"0 !@ #" + "P/P / _ \\#\\. 2 8 ( #0 % \" 8 ! 0 & & -T\" " + "0 $ $ @ X X !@ @ & 4 ( 0 $ ! D ( @ \"#T]-0X X !@ @ & 4 ( 0 " + " $ ! D ( \\#\\. . 8 ( !@ % \" $ ! 0 ) \"" + " ( #H)] #@ ' & \" $ !0 @ ! 0 $ #@ $ & \" 0 !" + "0 @ ! \"0 $ $ D !N;W0H>#T]-2D #@ #@ & \" 8 !0 @ ! " + "0 $ \"0 @ 0 X !( !@ @ - 4 ( !@ $ ! 8 8 " + " W0( ! 0 D ! #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ " + "#P/PX X !@ @ & 4 ( 0 $ ! D ( \\#\\. . 8 ( !@" + " % \" $ ! 0 ) \" ( \"I)] #@ #@ & \" 8 !0 @ ! " + " 0 $ \"0 @ #P/PX !( !@ @ & 4 ( 0 , ! D 8 #" + "'FGO3AH[S\\-3B(CT[+O/WUIEMW3-.T_#@ % & \" T !0 @ ' 0 $ !@ !P #= " + "@ $ \" \" H \" X X !@ @ & 4 ( 0 $ ! D ( " + " $ . . 8 ( !@ % \" $ ! 0 ) \" ! #@ $@ & " + "\" T !0 @ & 0 $ !@ !@ #= @ $ ! @ , . . 8 ( !" + "@ % \" $ ! 0 ) \" ( I)Y #@ #@ & \" 8 !0 @ ! " + " 0 $ \"0 @ \" *B>0 X !( !@ @ - 4 ( !@ $ ! 8 8 " + " W0( ! 0 D ! #@ #@ & \" 8 !0 @ ! 0 $ \"0 @ " + " #P/PX X !@ @ & 4 ( 0 $ ! D ( \\#\\. . 8 ( " + "!@ % \" $ ! 0 ) \" ( H)Y #@ #@ & \" 8 !0 @ ! " + " 0 $ \"0 @ #P/PX !( !@ @ & 4 ( 0 , ! D 8 " + "#'FGO3AH[S\\-3B(CT[+O/WUIEMW3-.T_#@ $@ & \" T !0 @ & 0 $ !@ !@ #=" + " @ $ ! \" ( . . 8 ( !@ % \" $ ! 0 ) \" ( N)Y" + " #@ # & \" 0 !0 @ ! 0 $ $ ! # . 2 8 ( !@ % " + "\" $ # 0 ) & / _ \\#\\ #P/PX !( !@ @ - 4 ( " + " !@ $ ! 8 8 W0( ! 0 8 \" #@ $@ & \" T !0 @ & " + " 0 $ !@ !@ #= @ $ ! \" ( . . 8 ( !@ % \" $ ! " + " 0 ) \" ( R)Y #@ & & \" $ !0 @ ! 0 $ #@ # & " + " \" 0 !0 @ ! 0 $ $ ! #$ . 2 8 ( !@ % \" $ # " + " 0 ) & / _ \\#\\ #P/PX !( !@ @ - 4 ( !@ $ ! " + " 8 8 W0( ! 0 < \" #@ $@ & \" T !0 @ & 0 $ " + " !@ !@ #= @ $ ! \" ( . . 8 ( !@ % \" $ ! 0 ) " + " \" ( T)] #@ & & \" $ !0 @ ! 0 $ #@ # & \" 0 " + " !0 @ ! 0 $ $ ! #( . 2 8 ( !@ % \" $ # 0 ) " + " & / _ \\#\\ #P/PX !( !@ @ - 4 ( !@ $ ! 8 8 " + " W0( ! 0 0 \" #@ $@ & \" T !0 @ & 0 $ !@ !@ #" + "= @ $ ! \"@ ( . . 8 ( !@ % \" $ ! 0 ) \" $ \"J" + ")] #@ & & \" $ !0 @ ! 0 $ #@ # & \" 0 !0 @ ! " + " 0 $ $ ! #( . 2 8 ( !@ % \" $ # 0 ) & /" + " _ \\#\\ #P/PX !( !@ @ - 4 ( !@ $ ! 8 8 W0( ! " + " 0 8 \" #@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! " + " \"@ ( . . 8 ( !@ % \" $ ! 0 ) \" $ \"K)] #@ & &" + " \" $ !0 @ ! 0 $ #@ # & \" 0 !0 @ ! 0 $ " + " $ ! #$ . 2 8 ( !@ % \" $ # 0 ) & / _ \\#\\" + " #P/PX !( !@ @ - 4 ( !@ $ ! 8 8 W0( ! 0 < \"" + " #@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! \"@ ( ." + " . 8 ( !@ % \" $ ! 0 ) \" $ \"L)] #@ & & \" $ " + " !0 @ ! 0 $ #@ # & \" 0 !0 @ ! 0 $ $ ! #4 " + ". 2 8 ( !@ % \" $ # 0 ) & / _ \\#\\ #P/PX " + "!@ !@ @ - 4 ( \"P $ ! 8 L W0( ! !@ , + # T " + ". #P 0 #@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ !" + " !0 $ . 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ )" + " 0 X !( !@ @ - 4 ( !@ $ ! 8 8 W0( ! 0 ( # " + " #@ $@ & \" T !0 @ & 0 $ !@ !@ #= @ $ ! !0 $ . " + " 2 8 ( #0 % \" 8 ! 0 & & -T\" 0 $ ) 0 X ! " + " !@ @ $ 4 ( 0 P ! ! , 9E]M>69U;F,Z:6YT X X !@ @ $ " + " 4 ( 0 @ ! ! ( >\"QY.G)E86P. 4 $ 8 ( @ % \" $ ! " + "0 % 0 !P $ < '1?:&5I9VAT &-O;F1I=&EO;E]T97AT7W@ !C;VYD:71I;VY?=&5X=%]Y 8V]N9&ET:6]N7W1E>" + "'1?;V9F