Model { Name "trans_ga2" Version 4.00 SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off RecordCoverage off CovPath "/" CovSaveName "covdata" CovNameIncrementing off CovHtmlReporting on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Thu Oct 11 14:19:44 2001" Creator "hamon" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "hamon" ModifiedDateFormat "%" LastModifiedDate "Fri Dec 19 12:37:54 2003" ModelVersionFormat "1.%" ConfigurationManager "none" SimParamPage "Solver" StartTime "0.0" StopTime "5" SolverMode "Auto" Solver "ode5" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "0.1" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "atest" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" SaveFormat "StructureWithTime" LimitDataPoints off MaxDataPoints "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" SingleTaskRateTransMsg "none" MultiTaskRateTransMsg "error" IntegerOverflowMsg "warning" CheckForMatrixSingularity "none" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" LinearizationMsg "none" VectorMatrixConversionMsg "none" SfunCompatibilityCheckMsg "none" BlockPriorityViolationMsg "warning" ArrayBoundsChecking "none" ConsistencyChecking "none" ZeroCross on Profile off SimulationMode "normal" RTWSystemTargetFile "grt.tlc" RTWOptions "-aExtMode=0 -aForceParamTrailComments=0 -aInlineInv" "ariantSignals=0 -aLocalBlockOutputs=1 -aLogVarNameModifier=\"rt_\" -aRTWVerbo" "se=1 -aRollThreshold=5 -aShowEliminatedStatements=1" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off TLCProfiler off TLCDebug off TLCCoverage off AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeLogAll on OptimizeBlockIOStorage on BufferReuse on ParameterPooling on BlockReductionOpt off BooleanDataType off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "trans_ga2" Location [125, 92, 1048, 726] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType Constant Name "Constant" Position [190, 320, 220, 350] Value "1" VectorParams1D on Port { PortNumber 1 Name "p_e_switch" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType FromWorkspace Name "From\nWorkspace" Position [145, 143, 210, 167] BackgroundColor "red" ShowName off VariableName "TP" SampleTime "0" Interpolate on OutputAfterFinalValue "Extrapolation" Port { PortNumber 1 Name "tps" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType FromWorkspace Name "From\nWorkspace1" Position [145, 203, 210, 227] BackgroundColor "red" ShowName off VariableName "VSS" SampleTime "0" Interpolate on OutputAfterFinalValue "Extrapolation" Port { PortNumber 1 Name "vss" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType FromWorkspace Name "From\nWorkspace3" Position [145, 383, 210, 407] BackgroundColor "red" ShowName off VariableName "A_GEAR" SampleTime "0" Interpolate on OutputAfterFinalValue "Extrapolation" Port { PortNumber 1 Name "a_gear" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Reference Name "Function-Call\nGenerator" Ports [0, 1] Position [155, 265, 200, 285] SourceBlock "simulink3/Signals\n& Systems/Function-Call\nGen" "erator" SourceType "Function-Call Generator" sample_time "0.1" numberOfIterations "1" Port { PortNumber 1 Name "trig_slow" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Scope Name "Scope" Ports [5] Position [745, 155, 800, 335] Floating off Location [186, 62, 986, 592] Open on NumInputPorts "5" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%" axes2 "%" axes3 "%" axes4 "%" axes5 "%" } Grid "on" TimeRange "auto" YMin "0~0~0~0~0" YMax "1000~1000~1000~1000~1000" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType SubSystem Name "trans_v1_1" Ports [5, 5] Position [390, 121, 495, 429] ShowPortLabels off TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" Port { PortNumber 1 Name "<" PropagatedSignals "pc1" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 2 Name "<" PropagatedSignals "pc2" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 3 Name "<" PropagatedSignals "pc3" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 4 Name "<" PropagatedSignals "pc4" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 5 Name "<" PropagatedSignals "pb12" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "trans_v1_1" Location [109, 182, 921, 835] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "tps" Position [100, 225, 120, 245] BackgroundColor "lightBlue" Port "1" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "tps" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "vss" Position [100, 270, 120, 290] BackgroundColor "lightBlue" Port "2" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "vss" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "trig_trans_slow" Position [100, 180, 120, 200] BackgroundColor "lightBlue" Port "3" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "trig_slow" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "p_e_switch" Position [100, 315, 120, 335] BackgroundColor "lightBlue" Port "4" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "p_e_switch" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "a_gear" Position [100, 360, 120, 380] BackgroundColor "lightBlue" Port "5" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "a_gear" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType SubSystem Name "trans_slow" Ports [5, 5] Position [290, 166, 390, 394] ShowPortLabels off TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" Port { PortNumber 1 Name "<" PropagatedSignals "pc1" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 2 Name "<" PropagatedSignals "pc2" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 3 Name "<" PropagatedSignals "pc3" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 4 Name "<" PropagatedSignals "pc4" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 5 Name "<" PropagatedSignals "pb12" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "trans_slow" Location [196, 74, 1008, 727] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "trig_trans_slow" Position [110, 55, 130, 75] BackgroundColor "lightBlue" Port "1" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "trig_slow" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "tps" Position [205, 275, 225, 295] BackgroundColor "lightBlue" Port "2" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "tps" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "vss" Position [205, 330, 225, 350] BackgroundColor "lightBlue" Port "3" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "vss" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "p_e_switch" Position [205, 385, 225, 405] BackgroundColor "lightBlue" Port "4" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "p_e_switch" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "a_gear" Position [205, 440, 225, 460] BackgroundColor "lightBlue" Port "5" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "a_gear" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType SubSystem Name "trans_slow_ctl" Ports [0, 1, 0, 1] Position [225, 83, 415, 197] ShowPortLabels on TreatAsAtomicUnit on RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Stateflow" MaskDescription "Stateflow diagram" MaskDisplay "plot(sf('Private','sfblk','xIcon'),sf('" "Private','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizo" "ntalAl','Center','VerticalAl','Bottom');" MaskSelfModifiable on MaskIconFrame off MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" Port { PortNumber 1 Name "do_trans_slow_torques" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "trans_slow_ctl" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType TriggerPort Name "time_slow" Ports [0, 1] Position [20, 101, 40, 119] TriggerType "function-call" ShowOutputPort on OutputDataType "auto" } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 100, 320, 140] Outputs "1" BusSelectionMode off } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function trans_ga2 11" Ports [1, 1] Position [180, 100, 230, 140] FunctionName "sf_sfun" PortCounts "[1 1]" SFunctionModules "''" } Block { BlockType Outport Name "do_trans_slow_torques" Position [460, 101, 480, 119] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock " Demux " SrcPort 1 DstBlock "do_trans_slow_torques" DstPort 1 } Line { SrcBlock "time_slow" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { SrcBlock " SFunction " SrcPort 1 DstBlock " Demux " DstPort 1 } } } Block { BlockType SubSystem Name "trans_slow_torques" Ports [4, 5, 0, 1] Position [400, 257, 485, 473] ShowPortLabels off TreatAsAtomicUnit on RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" Port { PortNumber 1 Name "<" PropagatedSignals "pc1" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 2 Name "<" PropagatedSignals "pc2" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 3 Name "<" PropagatedSignals "pc3" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 4 Name "<" PropagatedSignals "pc4" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 5 Name "<" PropagatedSignals "pb12" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "trans_slow_torques" Location [166, 76, 916, 742] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "tps" Position [65, 195, 85, 215] BackgroundColor "lightBlue" Port "1" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "tps" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "vss" Position [65, 230, 85, 250] BackgroundColor "lightBlue" Port "2" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "vss" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "p_e_switch" Position [65, 265, 85, 285] BackgroundColor "lightBlue" Port "3" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "p_e_switch" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "a_gear" Position [65, 300, 85, 320] BackgroundColor "lightBlue" Port "4" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "a_gear" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType TriggerPort Name "do_trans_slow_torques" Ports [] Position [145, 95, 165, 115] TriggerType "function-call" ShowOutputPort off OutputDataType "auto" } Block { BlockType SubSystem Name "clutch_pressure" Ports [1, 5] Position [335, 159, 415, 361] DropShadow on ShowPortLabels off TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "clutch_pressure" Location [345, 326, 1198, 804] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "ngear1" Position [85, 185, 105, 205] BackgroundColor "lightBlue" Port "1" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "to_gear" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Gain Name "Gain" Position [320, 34, 395, 66] ShowName off Gain "Pc1max" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "pc1" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Gain Name "Gain1" Position [320, 104, 395, 136] ShowName off Gain "Pc2max" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "pc2" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Gain Name "Gain2" Position [320, 179, 390, 211] ShowName off Gain "Pc3max" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "pc3" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Gain Name "Gain3" Position [320, 249, 390, 281] ShowName off Gain "Pc4max" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "pc4" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Gain Name "Gain4" Position [320, 322, 420, 358] ShowName off Gain "PB12max" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "pb12" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Lookup Name "b12_table" Position [225, 325, 255, 355] InputValues "pres_index" OutputValues "b12_table.y" Port { PortNumber 1 Name "b12_on_off" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Lookup Name "c1_table" Position [225, 35, 255, 65] InputValues "pres_index" OutputValues "c1_table.y" Port { PortNumber 1 Name "c1_on_off" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Lookup Name "c2_table" Position [225, 105, 255, 135] InputValues "pres_index" OutputValues "c2_table.y" Port { PortNumber 1 Name "c2_on_off" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Lookup Name "c3_table" Position [225, 180, 255, 210] InputValues "pres_index" OutputValues "c3_table.y" Port { PortNumber 1 Name "c3_on_off" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Lookup Name "c4_table" Position [225, 250, 255, 280] InputValues "pres_index" OutputValues "c4_table.y" Port { PortNumber 1 Name "c4_on_off" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Outport Name "Pc5" Position [465, 40, 485, 60] BackgroundColor "green" Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc6" Position [465, 110, 485, 130] BackgroundColor "green" Port "2" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc7" Position [465, 185, 485, 205] BackgroundColor "green" Port "3" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc8" Position [465, 255, 485, 275] BackgroundColor "green" Port "4" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pb12" Position [465, 330, 485, 350] BackgroundColor "green" Port "5" OutputWhenDisabled "held" InitialOutput "0" } Line { Name "pb12" Labels [0, 0] SrcBlock "Gain4" SrcPort 1 DstBlock "Pb12" DstPort 1 } Line { Name "pc4" Labels [0, 0] SrcBlock "Gain3" SrcPort 1 DstBlock "Pc8" DstPort 1 } Line { Name "pc3" Labels [0, 0] SrcBlock "Gain2" SrcPort 1 DstBlock "Pc7" DstPort 1 } Line { Name "pc2" Labels [0, 0] SrcBlock "Gain1" SrcPort 1 DstBlock "Pc6" DstPort 1 } Line { Name "pc1" Labels [0, 0] SrcBlock "Gain" SrcPort 1 DstBlock "Pc5" DstPort 1 } Line { Name "b12_on_off" Labels [0, 0] SrcBlock "b12_table" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { Name "c4_on_off" Labels [0, 0] SrcBlock "c4_table" SrcPort 1 DstBlock "Gain3" DstPort 1 } Line { Name "c3_on_off" Labels [0, 0] SrcBlock "c3_table" SrcPort 1 DstBlock "Gain2" DstPort 1 } Line { Name "c2_on_off" Labels [0, 0] SrcBlock "c2_table" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { Name "c1_on_off" Labels [0, 0] SrcBlock "c1_table" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "ngear1" SrcPort 1 Points [0, 0; 60, 0] Branch { Points [0, -75] Branch { Points [0, 75] Branch { Points [0, 70] Branch { Points [0, 75] DstBlock "b12_table" DstPort 1 } Branch { DstBlock "c4_table" DstPort 1 } } Branch { DstBlock "c3_table" DstPort 1 } } Branch { DstBlock "c2_table" DstPort 1 } } Branch { Points [0, -145] DstBlock "c1_table" DstPort 1 } } } } Block { BlockType SubSystem Name "shift_scheduler" Ports [4, 1] Position [165, 184, 260, 331] DropShadow on ShowPortLabels off TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" Port { PortNumber 1 Name "<" PropagatedSignals "to_gear" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "shift_scheduler" Location [245, 74, 1024, 724] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "tps" Position [95, 210, 115, 230] BackgroundColor "lightBlue" Port "1" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "tps" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "vss" Position [95, 170, 115, 190] BackgroundColor "lightBlue" Port "2" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "vss" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "p_e_switch" Position [100, 595, 120, 615] BackgroundColor "lightBlue" Port "3" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "p_e_switch" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Inport Name "gear" Position [95, 120, 115, 140] BackgroundColor "lightBlue" Port "4" Interpolate on Port { PortNumber 1 Name "<" PropagatedSignals "a_gear" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Lookup Name "1_2_shift" Position [270, 205, 300, 235] InputValues "shift_1_2.x" OutputValues "shift_1_2.y" Port { PortNumber 1 Name "shift_speed_12" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Lookup Name "2_1_shift" Position [270, 255, 300, 285] InputValues "shift_2_1.x" OutputValues "shift_2_1.y" Port { PortNumber 1 Name "shift_speed_21" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Lookup Name "2_3_shift" Position [270, 305, 300, 335] InputValues "shift_2_3.x" OutputValues "shift_2_3.y" Port { PortNumber 1 Name "shift_speed_23" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Lookup Name "3_2_shift" Position [270, 355, 300, 385] InputValues "shift_3_2.x" OutputValues "shift_3_2.y" Port { PortNumber 1 Name "shift_speed_32" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Lookup Name "3_4_shift" Position [270, 405, 300, 435] InputValues "shift_3_4.x" OutputValues "shift_3_4.y" Port { PortNumber 1 Name "shift_speed_34" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Lookup Name "4_3shift" Position [270, 450, 300, 480] InputValues "shift_4_3.x" OutputValues "shift_4_3.y" Port { PortNumber 1 Name "shift_speed_43" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Product Name "Product" Ports [2, 1] Position [385, 210, 415, 250] ShowName off Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product1" Ports [2, 1] Position [385, 262, 415, 298] ShowName off Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product2" Ports [2, 1] Position [385, 311, 415, 349] ShowName off Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product3" Ports [2, 1] Position [385, 360, 415, 400] ShowName off Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product4" Ports [2, 1] Position [385, 411, 415, 449] ShowName off Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product5" Ports [2, 1] Position [385, 454, 415, 501] ShowName off Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Switch Name "Switch" Position [205, 525, 235, 555] Orientation "up" ShowName off Threshold "0.5" } Block { BlockType Constant Name "economy" Position [245, 575, 275, 595] Orientation "left" NamePlacement "alternate" Value "0.75" VectorParams1D on } Block { BlockType Gain Name "m_s_to_km_h" Position [150, 162, 260, 198] Gain "m_s_to_km_h" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "vss_kmh" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Constant Name "power" Position [165, 575, 195, 595] NamePlacement "alternate" Value "1" VectorParams1D on } Block { BlockType SubSystem Name "shift_schedule" Ports [8, 1] Position [450, 95, 640, 515] ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Stateflow" MaskDescription "Stateflow diagram" MaskDisplay "plot(sf('Private','sfblk','xIcon'" "),sf('Private','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'" "HorizontalAl','Center','VerticalAl','Bottom');" MaskSelfModifiable on MaskIconFrame off MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" Port { PortNumber 1 Name "to_gear" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "shift_schedule" Location [257, 457, 812, 717] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "gear" Position [20, 101, 40, 119] Port "1" PortDimensions "1" Interpolate on } Block { BlockType Inport Name "V" Position [20, 136, 40, 154] Port "2" PortDimensions "1" Interpolate on } Block { BlockType Inport Name "shift_speed_12" Position [20, 171, 40, 189] Port "3" PortDimensions "1" Interpolate on } Block { BlockType Inport Name "shift_speed_21" Position [20, 206, 40, 224] Port "4" PortDimensions "1" Interpolate on } Block { BlockType Inport Name "shift_speed_23" Position [20, 246, 40, 264] Port "5" PortDimensions "1" Interpolate on } Block { BlockType Inport Name "shift_speed_32" Position [20, 281, 40, 299] Port "6" PortDimensions "1" Interpolate on } Block { BlockType Inport Name "shift_speed_34" Position [20, 316, 40, 334] Port "7" PortDimensions "1" Interpolate on } Block { BlockType Inport Name "shift_speed_43" Position [20, 351, 40, 369] Port "8" PortDimensions "1" Interpolate on } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 285, 320, 325] Outputs "1" BusSelectionMode off } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function trans_ga2 10" Ports [8, 2] Position [180, 105, 230, 285] FunctionName "sf_sfun" PortCounts "[8 2]" SFunctionModules "''" } Block { BlockType Terminator Name " Terminator " Position [460, 296, 480, 314] } Block { BlockType Outport Name "to_gear" Position [460, 101, 480, 119] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock " SFunction " SrcPort 2 DstBlock "to_gear" DstPort 1 } Line { SrcBlock "shift_speed_43" SrcPort 1 DstBlock " SFunction " DstPort 8 } Line { SrcBlock "shift_speed_34" SrcPort 1 DstBlock " SFunction " DstPort 7 } Line { SrcBlock "shift_speed_32" SrcPort 1 DstBlock " SFunction " DstPort 6 } Line { SrcBlock "shift_speed_23" SrcPort 1 DstBlock " SFunction " DstPort 5 } Line { SrcBlock "shift_speed_21" SrcPort 1 DstBlock " SFunction " DstPort 4 } Line { SrcBlock "shift_speed_12" SrcPort 1 DstBlock " SFunction " DstPort 3 } Line { SrcBlock "V" SrcPort 1 DstBlock " SFunction " DstPort 2 } Line { SrcBlock "gear" SrcPort 1 Points [120, 0] DstBlock " SFunction " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 155] DstBlock " Demux " DstPort 1 } } } Block { BlockType Outport Name "ngear" Position [725, 295, 745, 315] BackgroundColor "green" Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { Name "to_gear" Labels [0, 0] SrcBlock "shift_schedule" SrcPort 1 DstBlock "ngear" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "gear" SrcPort 1 DstBlock "shift_schedule" DstPort 1 } Line { SrcBlock "Product5" SrcPort 1 DstBlock "shift_schedule" DstPort 8 } Line { Labels [1, 0] SrcBlock "Switch" SrcPort 1 Points [0, -30] Branch { Points [0, -50] Branch { Points [0, -50] Branch { Points [0, -50] Branch { Points [0, -50] Branch { Labels [2, 0] Points [0, -50] DstBlock "Product" DstPort 2 } Branch { DstBlock "Product1" DstPort 2 } } Branch { DstBlock "Product2" DstPort 2 } } Branch { DstBlock "Product3" DstPort 2 } } Branch { DstBlock "Product4" DstPort 2 } } Branch { DstBlock "Product5" DstPort 2 } } Line { Name "shift_speed_43" Labels [0, 0] SrcBlock "4_3shift" SrcPort 1 DstBlock "Product5" DstPort 1 } Line { Name "vss_kmh" Labels [0, 0] SrcBlock "m_s_to_km_h" SrcPort 1 DstBlock "shift_schedule" DstPort 2 } Line { Name "<" Labels [0, 0] SrcBlock "vss" SrcPort 1 DstBlock "m_s_to_km_h" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "tps" SrcPort 1 Points [120, 0] Branch { Points [0, 50] Branch { Points [0, 50] Branch { Points [0, 50] Branch { Points [0, 50] Branch { Points [0, 45] DstBlock "4_3shift" DstPort 1 } Branch { DstBlock "3_4_shift" DstPort 1 } } Branch { DstBlock "3_2_shift" DstPort 1 } } Branch { DstBlock "2_3_shift" DstPort 1 } } Branch { DstBlock "2_1_shift" DstPort 1 } } Branch { DstBlock "1_2_shift" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 DstBlock "shift_schedule" DstPort 3 } Line { Name "shift_speed_12" Labels [0, 0] SrcBlock "1_2_shift" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "power" SrcPort 1 Points [10, 0] DstBlock "Switch" DstPort 1 } Line { SrcBlock "economy" SrcPort 1 Points [-10, 0] DstBlock "Switch" DstPort 3 } Line { Name "<" Labels [0, 0] SrcBlock "p_e_switch" SrcPort 1 Points [95, 0] DstBlock "Switch" DstPort 2 } Line { SrcBlock "Product4" SrcPort 1 DstBlock "shift_schedule" DstPort 7 } Line { SrcBlock "Product3" SrcPort 1 DstBlock "shift_schedule" DstPort 6 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "shift_schedule" DstPort 5 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "shift_schedule" DstPort 4 } Line { Name "shift_speed_21" Labels [0, 0] SrcBlock "2_1_shift" SrcPort 1 DstBlock "Product1" DstPort 1 } Line { Name "shift_speed_23" Labels [0, 0] SrcBlock "2_3_shift" SrcPort 1 DstBlock "Product2" DstPort 1 } Line { Name "shift_speed_32" Labels [0, 0] SrcBlock "3_2_shift" SrcPort 1 DstBlock "Product3" DstPort 1 } Line { Name "shift_speed_34" Labels [0, 0] SrcBlock "3_4_shift" SrcPort 1 DstBlock "Product4" DstPort 1 } Annotation { Position [555, 703] Text "References:\n- D. Cho and J.K. He" "drick: \"Automotive Powertrain Modeling for Control\",\nASME Trans. V111, De" "c. 1989, pp. 568-576.\n- Butts, K., \"Analysis Needs for Automotive Powertrai" "n Control,\" \nProceedings of The 7th Mechatronics Forum International Confer" "ence, \nSeptember 6-8 2000, Atlanta, Georgia." FontName "Arial" FontSize 12 } } } Block { BlockType Outport Name "Pc1" Position [480, 170, 500, 190] BackgroundColor "green" Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc2" Position [480, 210, 500, 230] BackgroundColor "green" Port "2" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc3" Position [480, 250, 500, 270] BackgroundColor "green" Port "3" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc4" Position [480, 290, 500, 310] BackgroundColor "green" Port "4" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "PB12" Position [480, 330, 500, 350] BackgroundColor "green" Port "5" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "clutch_pressure" SrcPort 5 DstBlock "PB12" DstPort 1 } Line { SrcBlock "clutch_pressure" SrcPort 4 DstBlock "Pc4" DstPort 1 } Line { SrcBlock "clutch_pressure" SrcPort 3 DstBlock "Pc3" DstPort 1 } Line { SrcBlock "clutch_pressure" SrcPort 2 DstBlock "Pc2" DstPort 1 } Line { SrcBlock "clutch_pressure" SrcPort 1 DstBlock "Pc1" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "a_gear" SrcPort 1 DstBlock "shift_scheduler" DstPort 4 } Line { Name "<" Labels [0, 0] SrcBlock "vss" SrcPort 1 DstBlock "shift_scheduler" DstPort 2 } Line { Name "<" Labels [0, 0] SrcBlock "tps" SrcPort 1 DstBlock "shift_scheduler" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "p_e_switch" SrcPort 1 DstBlock "shift_scheduler" DstPort 3 } Line { Name "<" Labels [0, 0] SrcBlock "shift_scheduler" SrcPort 1 DstBlock "clutch_pressure" DstPort 1 } Annotation { Position [461, 111] Text "TRANSMISSION CONTROL\n1. shift sche" "duler calculates gear command based on alpha and V\n2. clutch pressure contro" "ller applies proper pressure to clutches to perform the shift" } } } Block { BlockType Outport Name "Pc1" Position [575, 265, 595, 285] BackgroundColor "green" Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc2" Position [575, 310, 595, 330] BackgroundColor "green" Port "2" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc3" Position [575, 355, 595, 375] BackgroundColor "green" Port "3" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc4" Position [575, 400, 595, 420] BackgroundColor "green" Port "4" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "PB12" Position [575, 445, 595, 465] BackgroundColor "green" Port "5" OutputWhenDisabled "held" InitialOutput "0" } Line { Name "<" Labels [0, 0] SrcBlock "trans_slow_torques" SrcPort 5 DstBlock "PB12" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "trans_slow_torques" SrcPort 4 DstBlock "Pc4" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "trans_slow_torques" SrcPort 3 DstBlock "Pc3" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "trans_slow_torques" SrcPort 2 DstBlock "Pc2" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "trans_slow_torques" SrcPort 1 DstBlock "Pc1" DstPort 1 } Line { Name "do_trans_slow_torques" Labels [2, 0] SrcBlock "trans_slow_ctl" SrcPort 1 Points [20, 0] DstBlock "trans_slow_torques" DstPort trigger } Line { Name "<" Labels [2, 0] SrcBlock "trig_trans_slow" SrcPort 1 Points [185, 0] DstBlock "trans_slow_ctl" DstPort trigger } Line { Name "<" Labels [0, 0] SrcBlock "a_gear" SrcPort 1 DstBlock "trans_slow_torques" DstPort 4 } Line { Name "<" Labels [0, 0] SrcBlock "p_e_switch" SrcPort 1 DstBlock "trans_slow_torques" DstPort 3 } Line { Name "<" Labels [0, 0] SrcBlock "vss" SrcPort 1 DstBlock "trans_slow_torques" DstPort 2 } Line { Name "<" Labels [0, 0] SrcBlock "tps" SrcPort 1 DstBlock "trans_slow_torques" DstPort 1 } Annotation { Position [517, 565] Text "Note: The controller should control clu" "tch\npressures and not torques. This will be fixed in \nthe next release." } } } Block { BlockType Outport Name "Pc1" Position [560, 180, 580, 200] BackgroundColor "green" Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc2" Position [560, 225, 580, 245] BackgroundColor "green" Port "2" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc3" Position [560, 270, 580, 290] BackgroundColor "green" Port "3" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc4" Position [560, 315, 580, 335] BackgroundColor "green" Port "4" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "PB12" Position [560, 360, 580, 380] BackgroundColor "green" Port "5" OutputWhenDisabled "held" InitialOutput "0" } Line { Name "<" Labels [0, 0] SrcBlock "trans_slow" SrcPort 5 DstBlock "PB12" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "trans_slow" SrcPort 4 DstBlock "Pc4" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "trans_slow" SrcPort 3 DstBlock "Pc3" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "trans_slow" SrcPort 2 DstBlock "Pc2" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "trans_slow" SrcPort 1 DstBlock "Pc1" DstPort 1 } Line { Name "<" Labels [0, 0] SrcBlock "a_gear" SrcPort 1 DstBlock "trans_slow" DstPort 5 } Line { Name "<" Labels [0, 0] SrcBlock "p_e_switch" SrcPort 1 DstBlock "trans_slow" DstPort 4 } Line { Name "<" Labels [0, 0] SrcBlock "vss" SrcPort 1 DstBlock "trans_slow" DstPort 3 } Line { Name "<" Labels [0, 0] SrcBlock "tps" SrcPort 1 DstBlock "trans_slow" DstPort 2 } Line { Name "<" Labels [0, 0] SrcBlock "trig_trans_slow" SrcPort 1 DstBlock "trans_slow" DstPort 1 } Annotation { Position [380, 56] Text "\"Execution Context Diagram\"\nAt this leve" "l, 1 Simulink Subsystem per execution context\n(e.g. background, pip, cid, 1m" "s, 2ms, 4ms, etc.)\nis required. There are no C-specs at this level." } } } Block { BlockType Outport Name "Pc1" Position [570, 145, 590, 165] BackgroundColor "green" Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc2" Position [570, 205, 590, 225] BackgroundColor "green" Port "2" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc3" Position [570, 265, 590, 285] BackgroundColor "green" Port "3" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pc4" Position [565, 325, 585, 345] BackgroundColor "green" Port "4" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "PB12" Position [565, 385, 585, 405] BackgroundColor "green" Port "5" OutputWhenDisabled "held" InitialOutput "0" } Line { Name "tps" Labels [0, 0] SrcBlock "From\nWorkspace" SrcPort 1 DstBlock "trans_v1_1" DstPort 1 } Line { Name "vss" Labels [0, 0] SrcBlock "From\nWorkspace1" SrcPort 1 DstBlock "trans_v1_1" DstPort 2 } Line { Name "a_gear" Labels [0, 0] SrcBlock "From\nWorkspace3" SrcPort 1 DstBlock "trans_v1_1" DstPort 5 } Line { Name "p_e_switch" Labels [0, 0] SrcBlock "Constant" SrcPort 1 DstBlock "trans_v1_1" DstPort 4 } Line { Name "<" Labels [0, 0] SrcBlock "trans_v1_1" SrcPort 1 Points [35, 0] Branch { DstBlock "Pc1" DstPort 1 } Branch { Points [0, 20] DstBlock "Scope" DstPort 1 } } Line { Name "<" Labels [0, 0] SrcBlock "trans_v1_1" SrcPort 2 Points [30, 0] Branch { DstBlock "Pc2" DstPort 1 } Branch { Points [0, -5] DstBlock "Scope" DstPort 2 } } Line { Name "<" Labels [0, 0] SrcBlock "trans_v1_1" SrcPort 3 Points [40, 0] Branch { DstBlock "Pc3" DstPort 1 } Branch { Points [0, -30] DstBlock "Scope" DstPort 3 } } Line { Name "<" Labels [0, 0] SrcBlock "trans_v1_1" SrcPort 4 Points [30, 0] Branch { DstBlock "Pc4" DstPort 1 } Branch { Points [0, -35; 200, 0] DstBlock "Scope" DstPort 4 } } Line { Name "<" Labels [0, 0] SrcBlock "trans_v1_1" SrcPort 5 Points [40, 0] Branch { DstBlock "PB12" DstPort 1 } Branch { Points [0, -30; 190, 0] DstBlock "Scope" DstPort 5 } } Line { Name "trig_slow" Labels [0, 0] SrcBlock "Function-Call\nGenerator" SrcPort 1 DstBlock "trans_v1_1" DstPort 3 } } } # Finite State Machines # -- File save dated 19-Dec-2003 12:37:54 # # Stateflow Version 4.0.1 (R12) dated Oct 31 2000, 16:58:44 # # Stateflow { machine { id 1 name "trans_ga2" created "11-Oct-2001 14:20:21" firstTarget 70 sfVersion 40012071 } chart { id 2 name "trans_v1_1/trans_slow/trans_slow_torques/shift_scheduler/shift_sc" "hedule" windowPosition [48 7.2 888 749.6] viewLimits [0 1145.418 0 967.127] zoomFactor 1.361 screen [1 1 1280 1024 1.25] treeNode [0 3 0 0] firstTransition 25 viewObj 2 visible 1 machine 1 subviewS { } decomposition CLUSTER_CHART firstData 50 chartFileNumber 10 } state { id 3 labelString "third_gear\n" "entry: to_gear=3;" position [797.927 23.442 92.484 92.25] fontSize 10 chart 2 treeNode [2 0 0 4] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 4 labelString "first_gear\n" "entry: to_gear = 1;" position [211.235 32.825 92.484 92.25] fontSize 10 chart 2 treeNode [2 0 3 5] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 5 labelString "transition12" position [182.75 150 158.752 229.5] fontSize 10 chart 2 treeNode [2 8 4 6] firstTransition 36 subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 6 labelString "transition23" position [494.482 153.062 158.752 229.5] fontSize 10 chart 2 treeNode [2 9 5 7] firstTransition 37 subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 7 labelString "transition34" position [770.121 156.124 158.752 229.5] fontSize 10 chart 2 treeNode [2 10 6 14] firstTransition 38 subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 8 labelString "shift_pending_a\n" "entry: ctr=0;\n" " to_gear=1;\n" "during: ctr=ctr+1;" position [214.156 171.474 90.985 95.25] fontSize 10 chart 2 treeNode [5 0 0 11] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 9 labelString "shift_pending2\n" "entry: ctr=0;\n" " to_gear=2;\n" "during: ctr=ctr + 1;" position [528.239 174.062 90.985 95.25] fontSize 10 chart 2 treeNode [6 0 0 12] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 10 labelString "shift_pending3\n" "entry: ctr=0;\n" " to_gear=3;\n" "during: ctr = ctr+1;" position [803.878 177.124 90.985 95.25] fontSize 10 chart 2 treeNode [7 0 0 13] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 11 labelString "shifting_a\n" "entry: to_gear=2;" position [217.754 273.75 91.986 98.25] fontSize 10 chart 2 treeNode [5 0 8 0] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 12 labelString "shifting2\n" "entry: to_gear=3;" position [529.486 276.812 91.986 98.25] fontSize 10 chart 2 treeNode [6 0 9 0] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 13 labelString "shifting3\n" "entry: to_gear=4;" position [805.125 279.874 91.986 98.25] fontSize 10 chart 2 treeNode [7 0 10 0] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 14 labelString "fourth_gear\n" "entry: to_gear =4;" position [803.645 410.119 92.484 92.25] fontSize 10 chart 2 treeNode [2 0 7 15] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 15 labelString "second_gear\n" "entry: to_gear=2;" position [218.814 412.307 91.988 81.75] fontSize 10 chart 2 treeNode [2 0 14 16] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 16 labelString "transition43" position [772.692 522.548 158.752 229.5] fontSize 10 chart 2 treeNode [2 19 15 17] firstTransition 47 subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 17 labelString "transition32" position [498.503 526.631 158.752 229.5] fontSize 10 chart 2 treeNode [2 20 16 18] firstTransition 48 subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 18 labelString "transition21" position [181.311 528.673 158.752 229.5] fontSize 10 chart 2 treeNode [2 21 17 0] firstTransition 49 subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 19 labelString "shift_pending_d\n" "entry: ctr=0;\n" " to_gear =4;\n" "during: ctr=ctr+1;" position [806.449 543.548 90.985 95.25] fontSize 10 chart 2 treeNode [16 0 0 22] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 20 labelString "shift_pending_c\n" "entry: ctr=0;\n" " to_gear=3;\n" "during: ctr=ctr+1;" position [532.259 547.631 90.985 95.25] fontSize 10 chart 2 treeNode [17 0 0 23] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 21 labelString "shift_pending_b\n" "entry: ctr=0;\n" " to_gear=2;\n" "during: ctr = ctr+1;" position [215.068 549.673 90.985 95.25] fontSize 10 chart 2 treeNode [18 0 0 24] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 22 labelString "shifting_d\n" "entry: to_gear=3;" position [807.696 646.298 91.986 98.25] fontSize 10 chart 2 treeNode [16 0 19 0] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 23 labelString "shifting_c\n" "entry: to_gear=2;" position [533.507 650.381 91.986 98.25] fontSize 10 chart 2 treeNode [17 0 20 0] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 24 labelString "shifting_b\n" "entry: to_gear=1;" position [216.315 652.423 91.986 98.25] fontSize 10 chart 2 treeNode [18 0 21 0] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } transition { id 25 labelPosition [259.818 15.971 7.614 14.151] fontSize 10 src { intersection [0 0 0 0 267.4045967404372 13.26884931815621 0] } dst { id 4 intersection [1 0 -1 0.3416666666666667 242.8335202436213 32.82499999999995 0] } midPoint [256.9194295528423 16.90591340860111] chart 2 linkNode [2 0 26] dataLimits [240.434 267.405 13.269 32.825] subviewer 2 } transition { id 26 labelString "[gear ==3]" labelPosition [680.538 72.138 40.247 14.151] fontSize 10 src { id 12 intersection [2 1 0 0.8303446083538447 621.4722066688779 358.3933999211092 0] } dst { id 3 intersection [4 -1 0 0.7658233146627677 797.9266951188926 45.04441986926624 0] } midPoint [731.4878470265604 77.57173447537478] chart 2 linkNode [2 25 27] dataLimits [621.472 797.927 42.644 358.393] subviewer 2 } transition { id 27 labelString "[gear == 3]" labelPosition [984.085 683.856 42.423 14.151] fontSize 10 src { id 22 intersection [2 1 0 0.6835354646812851 899.6822611299855 713.4558210300917 0] } dst { id 3 intersection [2 1 0 0.2991047717306861 890.4109036993318 51.03403583906236 0] } midPoint [1049.940230662309 215.3636312408431] chart 2 linkNode [2 26 28] dataLimits [890.411 1081.297 48.634 713.456] subviewer 2 } transition { id 28 labelString "[V <= shift_speed_32]" labelPosition [601.371 462.324 91.372 14.151] fontSize 10 src { id 3 intersection [4 -1 0 0.568123752915656 797.9266951188926 63.28220444043731 0] } dst { id 20 intersection [2 1 0 0.4871915241407401 623.243838545884 594.0361771666858 0] } midPoint [698.8260640895605 219.4463541079681] chart 2 linkNode [2 27 29] dataLimits [623.244 797.927 63.282 596.436] subviewer 2 } transition { id 29 labelString "[gear == 1]" labelPosition [17.206 402.003 42.423 14.151] fontSize 10 src { id 24 intersection [4 -1 0 0.2333556728835993 216.3149866190145 727.7453510650291 0] } dst { id 4 intersection [4 -1 0 0.5681237529156539 211.2347489786379 72.66558379353093 0] } midPoint [53.68376719091657 209.6695351626355] chart 2 linkNode [2 28 30] dataLimits [10.59 216.315 70.266 727.745] subviewer 2 } transition { id 30 labelString "[V > shift_speed_23]" labelPosition [662.274 655.277 87.021 14.151] fontSize 10 src { id 17 intersection [2 1 0 0.524969019377039 657.2550528754723 647.1115744393106 0] } dst { id 3 intersection [4 -1 0 0.3357736710467544 797.9266951188926 84.71649949284351 0] } midPoint [712.0949134077167 268.439028513468] chart 2 linkNode [2 29 31] dataLimits [657.255 797.927 82.316 647.112] subviewer 2 } transition { id 31 labelString "[V > shift_speed_34]" labelPosition [931.96 174.993 87.021 14.151] fontSize 10 src { id 3 intersection [2 1 0 0.7431340075262547 890.4109036993318 91.9957328412036 0] } dst { id 10 intersection [2 1 0 0.2528554880431442 894.8625311922913 201.2085695367971 0] } midPoint [937.6653518163723 136.7712160486871] chart 2 linkNode [2 30 32] dataLimits [890.411 938.708 91.996 203.609] subviewer 2 } transition { id 32 labelString "[V <= shift_speed_21]" labelPosition [151.029 132.771 91.372 14.151] fontSize 10 src { id 5 intersection [4 -1 0 0.7214596949891067 182.75 213.9250000000001 0] } dst { id 4 intersection [4 -1 0 0.2752293577981652 211.2347489786379 99.68509174311929 0] } midPoint [149.0143235367254 127.5257609302449] chart 2 linkNode [2 31 33] dataLimits [142.084 211.235 97.285 213.925] subviewer 2 } transition { id 33 labelString "[V > shift_speed_12]" labelPosition [335.691 134.34 87.021 14.151] fontSize 10 src { id 4 intersection [2 1 0 0.725 303.7189575590772 99.70625000000003 0] } dst { id 8 intersection [2 1 0 0.3429058576062961 305.1407165061158 204.1361433562494 0] } midPoint [330.0370164693051 128.8199344139392] chart 2 linkNode [2 32 34] dataLimits [303.719 335.596 99.706 206.536] subviewer 2 } transition { id 34 labelString "[V <= shift_speed_43]" labelPosition [756.731 137.255 91.372 14.151] fontSize 10 src { id 7 intersection [4 -1 0 0.7813163885838089 770.1213295358455 206.3119731207034 0] } dst { id 3 intersection [4 -1 0 0.1255521684034627 797.9266951188926 104.1094331116872 0] } midPoint [748.8394192118416 139.8332581990308] chart 2 linkNode [2 33 35] dataLimits [745.139 797.927 101.709 206.312] subviewer 2 } transition { id 35 labelString "[V > shift_speed_23]" labelPosition [384.089 213.748 87.021 14.151] fontSize 10 src { id 15 intersection [2 1 0 0.3376899165974758 310.8023602631231 439.9133889327175 0] } dst { id 9 intersection [4 -1 0 0.5864073912039032 528.2387031797507 213.4567381381723 0] } midPoint [390.8649470751684 376.7802452247289] chart 2 linkNode [2 34 39] dataLimits [310.802 528.239 211.057 439.913] subviewer 2 } transition { id 36 labelString "[ctr > DELAY]" labelPosition [314.304 232.053 58.739 14.151] fontSize 10 src { id 8 intersection [2 1 0 0.7501065635137746 305.1407165061158 242.9220105939368 0] } dst { id 11 intersection [2 1 0 0.3999999999999981 309.7399469586119 313.05 0] } midPoint [324.5954421950417 262.4727741400341] chart 2 linkNode [5 0 0] dataLimits [305.141 330.066 242.922 315.45] subviewer 2 } transition { id 37 labelString "[ctr > DELAY]" labelPosition [620.019 229.884 58.739 14.151] fontSize 10 src { id 9 intersection [2 1 0 0.7624999999999991 619.2234613667119 246.6901671503439 0] } dst { id 12 intersection [2 1 0 0.3999999999999981 621.4722066688779 316.1120421503438 0] } midPoint [645.7934551515036 285.5928803604738] chart 2 linkNode [6 0 0] dataLimits [619.223 645.777 246.69 318.512] subviewer 2 } transition { id 38 labelString "[ctr > DELAY]" labelPosition [904.583 238.049 58.739 14.151] fontSize 10 src { id 10 intersection [2 1 0 0.7624999999999991 894.8625311922913 249.7522093006876 0] } dst { id 13 intersection [2 1 0 0.3999999999999981 897.1112764944572 319.1740843006875 0] } midPoint [921.4325249770829 288.6549225108175] chart 2 linkNode [7 0 0] dataLimits [894.863 921.416 249.752 321.574] subviewer 2 } transition { id 39 labelString "[V <= shift_speed_23]" labelPosition [399.735 405.587 91.372 14.151] fontSize 10 src { id 6 intersection [4 -1 0 0.1992915277234527 494.4822597102661 336.8246365378115 0] } dst { id 15 intersection [2 1 0 0.5124853910309621 310.8023602631231 454.202918967655 0] } midPoint [430.4557337656069 369.5481619756375] chart 2 linkNode [2 35 40] dataLimits [310.802 494.482 336.825 456.603] subviewer 2 } transition { id 40 labelString "[gear == 2]" labelPosition [335.969 363.125 42.423 14.151] fontSize 10 src { id 11 intersection [2 1 0 0.755725190839693 309.7399469586119 348 0] } dst { id 15 intersection [2 1 0 0.2253213973188065 310.8023602631231 430.7272624816862 0] } midPoint [331.0340850515106 371.0632756092611] chart 2 linkNode [2 39 41] dataLimits [309.74 335.825 348 433.127] subviewer 2 } transition { id 41 labelString "[gear == 4]" labelPosition [939.731 382.963 42.423 14.151] fontSize 10 src { id 13 intersection [2 1 0 0.7368471381143413 897.1112764944572 352.2693156204217 0] } dst { id 14 intersection [2 1 0 0.2123284700670743 896.1289144634047 429.706581764905 0] } midPoint [933.5826289492474 405.2102445621551] chart 2 linkNode [2 40 42] dataLimits [896.129 935.567 352.269 432.107] subviewer 2 } transition { id 42 labelString "[V <= shift_speed_43]" labelPosition [758.786 507.781 91.372 14.151] fontSize 10 src { id 14 intersection [4 -1 0 0.5331928688384147 803.6447058829654 453.1822382508737 0] } dst { id 19 intersection [4 -1 0 0.3627871631565058 806.4487576408582 604.2429843344983 0] } midPoint [753.9428227957478 509.3196776738423] chart 2 linkNode [2 41 43] dataLimits [751.573 806.449 453.182 606.643] subviewer 2 } transition { id 43 labelString "[V > shift_speed_34]" labelPosition [965.448 476.937 87.021 14.151] fontSize 10 src { id 16 intersection [2 1 0 0.3025984928451767 931.4447301574075 591.9948157331233 0] } dst { id 14 intersection [2 1 0 0.5553214480640243 896.1289144634047 461.3476839851237 0] } midPoint [956.0376047184347 480.7406176039673] chart 2 linkNode [2 42 44] dataLimits [896.129 972.767 458.948 591.995] subviewer 2 } transition { id 44 labelString "[gear == 2]" labelPosition [391.507 495.966 42.423 14.151] fontSize 10 src { id 23 intersection [4 -1 0 0.4722936523845514 533.5065170106757 702.228333145498 0] } dst { id 15 intersection [2 1 0 0.6373393013405944 310.8023602631231 464.4097261354674 0] } midPoint [451.1558678598952 635.9276250845114] chart 2 linkNode [2 43 45] dataLimits [310.802 533.507 462.01 702.228] subviewer 2 } transition { id 45 labelString "[V <= shift_speed_21]" labelPosition [167.273 500.735 91.372 14.151] fontSize 10 src { id 15 intersection [4 -1 0 0.2378067883497728 218.8141769959826 474.6165333032799 0] } dst { id 21 intersection [4 -1 0 0.3949345873070959 215.0675499672618 607.305026484842 0] } midPoint [143.5757541605621 532.795334159811] chart 2 linkNode [2 44 46] dataLimits [143.244 218.814 474.617 609.705] subviewer 2 } transition { id 46 labelString "[V > shift_speed_12]" labelPosition [347.914 603.049 87.021 14.151] fontSize 10 src { id 18 intersection [2 1 0 0.3203881349677256 340.0635224838112 602.2016229009357 0] } dst { id 15 intersection [2 1 0 0.88704712195986 310.8023602631231 484.8233404710924 0] } midPoint [361.5775265990333 569.4780974631097] chart 2 linkNode [2 45 0] dataLimits [310.802 362.885 482.423 602.202] subviewer 2 } transition { id 47 labelString "[ctr > DELAY]" labelPosition [907.154 604.473 58.739 14.151] fontSize 10 src { id 19 intersection [2 1 0 0.7624999999999991 897.4335158278193 616.1765866251553 0] } dst { id 22 intersection [2 1 0 0.3999999999999981 899.6822611299855 685.5984616251552 0] } midPoint [924.003509612611 655.0792998352853] chart 2 linkNode [16 0 0] dataLimits [897.434 923.987 616.177 687.998] subviewer 2 } transition { id 48 labelString "[ctr > DELAY]" labelPosition [632.965 608.556 58.739 14.151] fontSize 10 src { id 20 intersection [2 1 0 0.7624999999999991 623.243838545884 620.2593094922802 0] } dst { id 23 intersection [2 1 0 0.3999999999999981 625.4925838480502 689.6811844922801 0] } midPoint [649.8138323306757 659.1620227024101] chart 2 linkNode [17 0 0] dataLimits [623.244 649.797 620.259 692.081] subviewer 2 } transition { id 49 labelString "[ctr > DELAY]" labelPosition [312.199 695.314 58.739 14.151] fontSize 10 src { id 21 intersection [2 1 0 0.7624999999999991 306.0523081542229 622.3006709258427 0] } dst { id 24 intersection [2 1 0 0.3999999999999981 308.301053456389 691.7225459258426 0] } midPoint [332.6223019390146 661.2033841359727] chart 2 linkNode [18 0 0] dataLimits [306.052 332.606 622.301 694.123] subviewer 2 } data { id 50 name "to_gear" linkNode [2 0 51] scope OUTPUT_DATA machine 1 dataType "int8" props { range { minimum "1" maximum "8" } initialValue "1" } } data { id 51 name "gear" linkNode [2 50 52] scope INPUT_DATA machine 1 dataType "int8" props { range { minimum "1" maximum "8" } initialValue "1" } } data { id 52 name "V" linkNode [2 51 53] scope INPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } initialValue "1" } } data { id 53 name "shift_speed_12" linkNode [2 52 54] scope INPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } initialValue "1" } } data { id 54 name "shift_speed_21" linkNode [2 53 55] scope INPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } initialValue "1" } } data { id 55 name "ctr" linkNode [2 54 56] scope LOCAL_DATA machine 1 dataType "int8" props { range { minimum "0" maximum "255" } } } data { id 56 name "DELAY" linkNode [2 55 57] scope CONSTANT_DATA initFromWorkspace 1 machine 1 dataType "int8" props { range { minimum "" maximum "" } } } data { id 57 name "shift_speed_23" linkNode [2 56 58] scope INPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } } } data { id 58 name "shift_speed_32" linkNode [2 57 59] scope INPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } } } data { id 59 name "shift_speed_34" linkNode [2 58 60] scope INPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } } } data { id 60 name "shift_speed_43" linkNode [2 59 0] scope INPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } } } instance { id 61 name "trans_v1_1/trans_slow/trans_slow_torques/shift_scheduler/shift_sc" "hedule" machine 1 chart 2 } chart { id 62 name "trans_v1_1/trans_slow/trans_slow_ctl" windowPosition [225 105.75 480.75 384.75] viewLimits [0 271.469 17.016 233.109] zoomFactor 0.625 stateColor [0.2509803921568627 0 0.2509803921568627] stateLabelColor [0.2509803921568627 0 0.2509803921568627] transitionColor [0.2509803921568627 0 0.2509803921568627] transitionLabelColor [0.2509803921568627 0 0.2509803921568627] junctionColor [0.2509803921568627 0 0.2509803921568627] selectionColor [0.7529411764705882 0.7529411764705882 0.7529411764705882] highlightColor [0 0 0] chartColor [1 1 1] screen [1 1 1280 1024 1.25] firstTransition 65 firstJunction 63 viewObj 62 visible 1 machine 1 subviewS { } decomposition SET_CHART firstEvent 67 chartFileNumber 11 } junction { id 63 position [129.9910358487531 99.46489171244687 4.666666666666666] arrowSize 5.333 chart 62 linkNode [62 0 64] subviewer 62 type CONNECTIVE_JUNCTION } junction { id 64 position [128.1159166987829 169.3086417124468 4.666666666666666] arrowSize 5.333 chart 62 linkNode [62 63 0] subviewer 62 type CONNECTIVE_JUNCTION } transition { id 65 labelPosition [134.714 78.752 4.499 8.504] fontSize 6.25 arrowSize 5.333 src { intersection [0 0.9956562451143462 0.09310553992540438 0 132.1712572420063 76.14994130601926 0] } dst { id 63 intersection [0 0.09310553992540438 -0.9956562451143462 -1 130.4255283684049 94.81849590191325 0] } midPoint [134.7139428349335 78.7518897594225] chart 62 linkNode [62 0 66] dataLimits [129.329 135.174 76.15 94.818] subviewer 62 } transition { id 66 labelPosition [150.971 126.476 4.999 9.504] fontSize 6.667 arrowSize 5.333 src { id 63 intersection [0 0.2364482718203812 0.9716440782267728 -1 131.0944611172482 103.9992307441718 0] } dst { id 64 intersection [0 0.7588298695786807 -0.65128889828954 -1 131.6571227568168 166.269293520429 0] } midPoint [138.286379928708 126.1423143694071] chart 62 linkNode [62 65 0] dataLimits [131.094 141.777 103.999 166.269] subviewer 62 } event { id 67 name "do_trans_slow_torques" linkNode [62 0 68] scope OUTPUT_EVENT trigger FUNCTION_CALL_EVENT machine 1 } event { id 68 name "time_slow" linkNode [62 67 0] scope INPUT_EVENT trigger FUNCTION_CALL_EVENT machine 1 } instance { id 69 name "trans_v1_1/trans_slow/trans_slow_ctl" machine 1 chart 62 } target { id 70 name "sfun" description "Default Simulink S-Function Target." machine 1 linkNode [1 0 71] } target { id 71 name "rtw" description "Default Simulink S-Function Target." codeFlags "-bitsets-rtw" machine 1 linkNode [1 70 0] } }