Model { Name "fly" Version 7.9 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.25" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "UTF-8" SaveDefaultBlockParams on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" DataTypeOverrideAppliesTo "AllNumericTypes" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" FPTRunName "Run 1" MaxMDLFileLineLength 120 Created "Wed Jun 19 10:04:14 2013" Creator "tbourke" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "tbourke" ModifiedDateFormat "%" LastModifiedDate "Wed Jun 19 15:37:03 2013" RTWModifiedTimeStamp 293538600 ModelVersionFormat "1.%" ConfigurationManager "None" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "disabled" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowDesignRanges 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 Object { $PropName "DataLoggingOverride" $ObjectID 1 $ClassName "Simulink.SimulationData.ModelLoggingInfo" model_ "cantharide2" overrideMode_ [0.0] Array { Type "Cell" Dimension 1 Cell "cantharide2" PropName "logAsSpecifiedByModels_" } Array { Type "Cell" Dimension 1 Cell [] PropName "logAsSpecifiedByModelsSSIDs_" } } 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 2 Version "1.12.0" Array { Type "Handle" Dimension 8 Simulink.SolverCC { $ObjectID 3 Version "1.12.0" StartTime "0.0" StopTime "2" 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" EnableConcurrentExecution off 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 4 Version "1.12.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SignalLoggingSaveFormat "ModelDataLogs" 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 5 Version "1.12.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 UseFloatMulNetSlope 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 ParallelExecutionInRapidAccelerator on } Simulink.DebuggingCC { $ObjectID 6 Version "1.12.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 "Enable All" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" FrameProcessingCompatibilityMsg "warning" 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" SimStateOlderReleaseMsg "error" InitInArrayFormatMsg "warning" StrictBusMsg "ErrorLevel1" BusNameAdapt "WarnAndRepair" NonBusSignalsTreatedAsBus "none" LoggingUnavailableSignals "error" BlockIODiagnostic "none" SFUnusedDataAndEventsDiag "warning" SFUnexpectedBacktrackingDiag "warning" SFInvalidInputDataAccessInChartInitDiag "warning" SFNoUnconditionalDefaultTransitionDiag "warning" SFTransitionOutsideNaturalParentDiag "warning" SFUnconditionalTransitionShadowingDiag "warning" } Simulink.HardwareCC { $ObjectID 7 Version "1.12.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 8 Version "1.12.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 9 Version "1.12.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 10 Version "1.12.0" Array { Type "Cell" Dimension 9 Cell "IncludeHyperlinkInReport" Cell "GenerateTraceInfo" Cell "GenerateTraceReport" Cell "GenerateTraceReportSl" Cell "GenerateTraceReportSf" Cell "GenerateTraceReportEml" Cell "GenerateWebview" Cell "GenerateCodeMetricsReport" Cell "GenerateCodeReplacementReport" 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 GenerateWebview off GenerateCodeMetricsReport off GenerateCodeReplacementReport off RTWCompilerOptimization "Off" CheckMdlBeforeBuild "Off" CustomRebuildMode "OnUpdate" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 11 Version "1.12.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 12 Version "1.12.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 "" CodeReplacementLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" CodeExecutionProfiling off ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant on CompOptLevelCompliant on ConcurrentExecutionCompliant on IncludeMdlTerminateFcn on GeneratePreprocessorConditionals "Disable all" CombineOutputUpdateFcns on 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 GRTInterface off UseMalloc off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off RTWCAPIRootIO off GenerateASAP2 off } PropName "Components" } } PropName "Components" } Name "Configuration" CurrentDlgPage "Solver" ConfigPrmDlgPosition [ 512, 257, 1408, 923 ] } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 2 } ExplicitPartitioning off 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 Abs ZeroCross on SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Inherit from 'Constant value'" LockScale off SampleTime "inf" FramePeriod "inf" PreserveConstantTs off } Block { BlockType Display Format "short" Decimation "10" Floating off SampleTime "-1" } Block { BlockType HitCross HitCrossingOffset "0" HitCrossingDirection "either" ShowOutputPort on ZeroCross on SampleTime "-1" } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" IgnoreLimit off ZeroCross on ContinuousStateAttributes "''" } Block { BlockType Memory X0 "0" InheritSampleTime off LinearizeMemory off LinearizeAsDelay off StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Scope ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" DataFormat "Array" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "-1" } Block { BlockType Signum ZeroCross on SampleTime "-1" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on AccumDataTypeStr "Inherit: Inherit via internal rule" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Inherit via internal rule" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" AllowDiffInputSizes off } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" SaveFormat "Array" FixptAsFi off NumInputs "1" } Block { BlockType UnaryMinus SampleTime "-1" SaturateOnIntegerOverflow off } } System { Name "cantharide" Location [673, 113, 1754, 725] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" ReportName "simulink-default.rpt" SIDHighWatermark "57" Block { BlockType Abs Name "Abs" SID "49" Position [840, 490, 870, 520] ZOrder -1 ShowName off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add" SID "47" Ports [2, 1] Position [900, 497, 930, 528] ZOrder -2 ShowName off InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "Constant" SID "13" Position [315, 133, 350, 157] ShowName off Value "80" } Block { BlockType HitCross Name "Hit Crossing: fly - carA" SID "28" Ports [1, 1] Position [520, 15, 550, 45] } Block { BlockType HitCross Name "Hit Crossing: fly - carB" SID "27" Ports [1, 1] Position [520, 70, 550, 100] } Block { BlockType Memory Name "Memory" SID "45" Position [900, 550, 930, 580] ZOrder -13 BlockMirror on ShowName off } Block { BlockType Mux Name "Mux" SID "24" Ports [3, 1] Position [146, 190, 184, 195] BlockRotation 270 ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Scope Name "Result" SID "25" Ports [1] Position [149, 135, 181, 165] BlockRotation 270 ShowName off Floating off Location [745, 495, 1766, 1097] Open on NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType ScopeGraphics FigureColor "[0.5 0.5 0.5]" AxesColor "[0 0 0]" AxesTickColor "[1 1 1]" LineColors "[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]" LineStyles "-|-|-|-|-|-" LineWidths "[0.5 0.5 0.5 0.5 0.5 0.5]" MarkerStyles "none|none|none|none|none|none" } ShowLegends off TimeRange "2" YMin "0" YMax "100" SaveToWorkspace on SaveName "result" DataFormat "StructureWithTime" MaxDataPoints "500000" SampleInput on SampleTime "0" } Block { BlockType Signum Name "Sign" SID "56" Position [790, 490, 820, 520] ZOrder -25 ShowName off } Block { BlockType Sum Name "Subtract" SID "3" Ports [2, 1] Position [100, 277, 130, 308] ShowName off Inputs "-+" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off Port { PortNumber 1 Name "carB" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Sum Name "Subtract1" SID "8" Ports [2, 1] Position [265, 142, 295, 173] ZOrder -31 ShowName off Inputs "-+" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Subtract2" SID "11" Ports [2, 1] Position [410, 217, 440, 248] ZOrder -31 ShowName off Inputs "+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Subtract3" SID "1" Ports [2, 1] Position [570, 272, 600, 303] ZOrder -31 ShowName off Inputs "-+" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Subtract4" SID "19" Ports [2, 1] Position [340, 322, 370, 353] ZOrder -31 ShowName off Inputs "-+" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Subtract5" SID "20" Ports [2, 1] Position [485, 397, 515, 428] ZOrder -31 ShowName off Inputs "+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Subtract6" SID "51" Ports [2, 1] Position [740, 487, 770, 518] ZOrder -31 ShowName off Inputs "+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType ToWorkspace Name "To Workspace" SID "26" Ports [1] Position [68, 135, 122, 160] BlockRotation 270 ShowName off VariableName "simout" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType UnaryMinus Name "Unary Minus" SID "17" Position [410, 180, 440, 210] ShowName off } Block { BlockType UnaryMinus Name "Unary Minus1" SID "21" Position [485, 360, 515, 390] ShowName off } Block { BlockType Scope Name "Zerocrossings" SID "31" Ports [2] Position [655, 41, 685, 74] Floating off Location [708, 672, 1893, 1194] Open off NumInputPorts "2" List { ListType AxesTitles axes1 "%" axes2 "%" } List { ListType ScopeGraphics FigureColor "[0.501960784313725 0.501960784313725 0.501960784313725]" AxesColor "[0 0 0]" AxesTickColor "[1 1 1]" LineColors "[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]" LineStyles "-|-|-|-|-|-" LineWidths "[0.5 0.5 0.5 0.5 0.5 0.5]" MarkerStyles "none|none|none|none|none|none" } ShowLegends off TimeRange "2" YMin "0~0" YMax "1~1" SaveToWorkspace on SaveName "zerocrossings" DataFormat "StructureWithTime" MaxDataPoints "500000" SampleInput on SampleTime "0" } Block { BlockType Switch Name "carA <= carB" SID "2" Position [735, 270, 785, 310] ZOrder -19 InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Display Name "direction changes" SID "42" Ports [1] Position [970, 500, 1060, 530] ZOrder -1 Decimation "1" Lockdown off } Block { BlockType Constant Name "distance" SID "4" Position [30, 305, 60, 335] Value "100" } Block { BlockType Switch Name "fly <= carA" SID "9" Position [560, 140, 610, 180] ZOrder -19 InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Switch Name "fly <= carB" SID "22" Position [635, 320, 685, 360] ZOrder -19 InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Switch Name "fly >= carA" SID "23" Position [545, 395, 595, 435] ZOrder -19 InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Switch Name "fly >= carB" SID "12" Position [470, 215, 520, 255] ZOrder -19 InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "fly position" SID "6" Ports [1, 1] Position [115, 315, 145, 345] } Block { BlockType Memory Name "last(fly velocity)" SID "7" Position [635, 445, 665, 475] BlockMirror on X0 "80" } Block { BlockType Reference Name "travelled" SID "5" Ports [0, 1] Position [30, 250, 60, 280] LibraryVersion "1.260" SourceBlock "simulink/Sources/Ramp" SourceType "Ramp" slope "50" start "0" X0 "0" VectorParams1D on Port { PortNumber 1 Name "carA" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Line { SrcBlock "Subtract3" SrcPort 1 DstBlock "carA <= carB" DstPort 2 } Line { SrcBlock "distance" SrcPort 1 Points [20, 0] DstBlock "Subtract" DstPort 2 } Line { Name "carA" SrcBlock "travelled" SrcPort 1 Points [20, 0] Branch { DstBlock "Subtract" DstPort 1 } Branch { Labels [1, 0] Points [70, 0] Branch { Points [0, 15; 75, 0] Branch { Points [0, -115] DstBlock "Subtract1" DstPort 2 } Branch { Points [55, 0] Branch { DstBlock "Subtract3" DstPort 1 } Branch { Points [0, 140] DstBlock "Subtract5" DstPort 2 } } } Branch { DstBlock "Mux" DstPort 1 } } } Line { Name "carB" Labels [0, 0] SrcBlock "Subtract" SrcPort 1 Points [40, 0] Branch { Points [65, 0] Branch { Points [0, -55] DstBlock "Subtract2" DstPort 2 } Branch { Points [65, 0] Branch { DstBlock "Subtract3" DstPort 2 } Branch { Points [0, 50] DstBlock "Subtract4" DstPort 2 } } } Branch { DstBlock "Mux" DstPort 3 } } Line { SrcBlock "Subtract1" SrcPort 1 Points [115, 0] Branch { DstBlock "fly <= carA" DstPort 2 } Branch { Points [0, -130] DstBlock "Hit Crossing: fly - carA" DstPort 1 } } Line { SrcBlock "Subtract2" SrcPort 1 Points [5, 0] Branch { DstBlock "fly >= carB" DstPort 2 } Branch { Points [0, -150] DstBlock "Hit Crossing: fly - carB" DstPort 1 } } Line { SrcBlock "Constant" SrcPort 1 Points [25, 0] Branch { DstBlock "fly <= carA" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "Unary Minus" DstPort 1 } Branch { Points [0, 130] Branch { Points [0, 50] DstBlock "Unary Minus1" DstPort 1 } Branch { DstBlock "fly <= carB" DstPort 1 } } } } Line { SrcBlock "fly >= carB" SrcPort 1 Points [5, 0; 0, -60] DstBlock "fly <= carA" DstPort 3 } Line { SrcBlock "Unary Minus" SrcPort 1 Points [10, 0] DstBlock "fly >= carB" DstPort 1 } Line { SrcBlock "Subtract4" SrcPort 1 DstBlock "fly <= carB" DstPort 2 } Line { SrcBlock "Subtract5" SrcPort 1 DstBlock "fly >= carA" DstPort 2 } Line { SrcBlock "fly >= carA" SrcPort 1 Points [20, 0] DstBlock "fly <= carB" DstPort 3 } Line { SrcBlock "Unary Minus1" SrcPort 1 Points [10, 0] DstBlock "fly >= carA" DstPort 1 } Line { Labels [0, 0] SrcBlock "last(fly velocity)" SrcPort 1 Points [-55, 0] Branch { Points [-50, 0] Branch { Points [-435, 0; 0, -65] Branch { Points [0, -65] DstBlock "fly position" DstPort 1 } Branch { Points [175, 0; 0, -145] DstBlock "fly >= carB" DstPort 3 } } Branch { Points [0, -30] DstBlock "fly >= carA" DstPort 3 } } Branch { Points [0, 50] DstBlock "Subtract6" DstPort 2 } } Line { SrcBlock "fly position" SrcPort 1 Points [15, 0] Branch { Points [45, 0] Branch { Points [0, -105] Branch { Points [0, -75] DstBlock "Subtract1" DstPort 1 } Branch { DstBlock "Subtract2" DstPort 1 } } Branch { Labels [1, 0] Points [85, 0; 0, 0] Branch { DstBlock "Subtract4" DstPort 1 } Branch { Points [0, 75] DstBlock "Subtract5" DstPort 1 } } } Branch { DstBlock "Mux" DstPort 2 } } Line { SrcBlock "fly <= carA" SrcPort 1 Points [20, 0; 0, 115] DstBlock "carA <= carB" DstPort 1 } Line { SrcBlock "carA <= carB" SrcPort 1 Points [30, 0; 0, 170; -105, 0] Branch { DstBlock "last(fly velocity)" DstPort 1 } Branch { Points [0, 35] DstBlock "Subtract6" DstPort 1 } } Line { SrcBlock "fly <= carB" SrcPort 1 Points [15, 0; 0, -35] DstBlock "carA <= carB" DstPort 3 } Line { SrcBlock "Mux" SrcPort 1 Points [0, -5] Branch { Points [-70, 0] DstBlock "To Workspace" DstPort 1 } Branch { DstBlock "Result" DstPort 1 } } Line { SrcBlock "Add" SrcPort 1 Points [15, 0] Branch { DstBlock "direction changes" DstPort 1 } Branch { Points [0, 50] DstBlock "Memory" DstPort 1 } } Line { SrcBlock "Memory" SrcPort 1 Points [-10, 0] DstBlock "Add" DstPort 2 } Line { SrcBlock "Subtract6" SrcPort 1 DstBlock "Sign" DstPort 1 } Line { SrcBlock "Sign" SrcPort 1 DstBlock "Abs" DstPort 1 } Line { SrcBlock "Abs" SrcPort 1 DstBlock "Add" DstPort 1 } Line { SrcBlock "Hit Crossing: fly - carA" SrcPort 1 Points [60, 0; 0, 20] DstBlock "Zerocrossings" DstPort 1 } Line { SrcBlock "Hit Crossing: fly - carB" SrcPort 1 Points [60, 0; 0, -20] DstBlock "Zerocrossings" DstPort 2 } Annotation { SID "40" Position [691, 406] } Annotation { SID "39" Position [691, 406] } Annotation { SID "38" Position [691, 406] } Annotation { SID "37" Position [691, 406] } Annotation { SID "36" Position [691, 406] } Annotation { SID "35" Position [691, 406] } Annotation { SID "34" Position [481, 100] } } }