# $Revision: 1.1.4.2 $
Model {
  Name			  "sf_gfdemo"
  Version		  6.2
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.36"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "US-ASCII"
  SaveDefaultBlockParams  on
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowViewerIcons	  on
  SortedOrder		  off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dcmtr"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeVarName	  "covCumulativeData"
  CovCumulativeReport	  off
  CovReportOnPause	  on
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Mon Jul 30 15:59:37 2001"
  Creator		  "The MathWorks Inc."
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "batserve"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sat Jan 22 19:12:05 2005"
  ModelVersionFormat	  "1.%<AutoIncrement:36>"
  ConfigurationManager	  "None"
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  ExtModeBatchMode	  off
  ExtModeEnableFloating	  on
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigDurationFloating "auto"
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock off
  BufferReuse		  on
  StrictBusMsg		  "None"
  ProdHWDeviceType	  "32-bit Generic"
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      1
      Version		      "1.1.0"
      Array {
	Type			"Handle"
	Dimension		7
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.1.0"
	  StartTime		  "0.0"
	  StopTime		  "10"
	  AbsTol		  "auto"
	  FixedStep		  "auto"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  ".01"
	  MinStep		  "auto"
	  RelTol		  "1e-3"
	  SolverMode		  "Auto"
	  Solver		  "ode45"
	  SolverName		  "ode45"
	  ZeroCrossControl	  "UseLocalSettings"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  RateTranMode		  "Deterministic"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.1.0"
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  on
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveFormat		  "Array"
	  SaveOutput		  on
	  SaveState		  off
	  SignalLogging		  on
	  SaveTime		  on
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsout"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Array {
	    Type		    "Cell"
	    Dimension		    5
	    Cell		    "ZeroExternalMemoryAtStartup"
	    Cell		    "ZeroInternalMemoryAtStartup"
	    Cell		    "InitFltsAndDblsToZero"
	    Cell		    "OptimizeModelRefInitCode"
	    Cell		    "NoFixptDivByZeroProtection"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.1.0"
	  BlockReduction	  on
	  BooleanDataType	  off
	  ConditionallyExecuteInputs on
	  InlineParams		  off
	  InlineInvariantSignals  on
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnforceIntegerDowncast  on
	  ExpressionFolding	  on
	  FoldNonRolledExpr	  on
	  LocalBlockOutputs	  on
	  ParameterPooling	  on
	  RollThreshold		  5
	  SystemCodeInlineAuto	  off
	  StateBitsets		  off
	  DataBitsets		  off
	  UseTempVars		  off
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  on
	  NoFixptDivByZeroProtection off
	  EfficientFloat2IntCast  off
	  OptimizeModelRefInitCode off
	  LifeSpan		  "inf"
	  BufferReusableBoundary  on
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.1.0"
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  CheckSSInitialOutputMsg on
	  CheckExecutionContextPreStartOutputMsg off
	  CheckExecutionContextRuntimeOutputMsg	off
	  SignalResolutionControl "TryResolveAllWithWarning"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  SolverPrmCheckMsg	  "none"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "warning"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterPrecisionLossMsg "warning"
	  UnderSpecifiedDataTypeMsg "none"
	  UnnecessaryDatatypeConvMsg "none"
	  VectorMatrixConversionMsg "none"
	  InvalidFcnCallConnMsg	  "error"
	  FcnCallInpInsideContextMsg "Use local settings"
	  SignalLabelMismatchMsg  "none"
	  UnconnectedInputMsg	  "warning"
	  UnconnectedOutputMsg	  "warning"
	  UnconnectedLineMsg	  "warning"
	  SFcnCompatibilityMsg	  "none"
	  UniqueDataStoreMsg	  "none"
	  BusObjectLabelMismatch  "warning"
	  RootOutportRequireBusObject "warning"
	  AssertControl		  "UseLocalSettings"
	  EnableOverflowDetection off
	  ModelReferenceIOMsg	  "none"
	  ModelReferenceVersionMismatchMessage "none"
	  ModelReferenceIOMismatchMessage "none"
	  ModelReferenceCSMismatchMessage "none"
	  ModelReferenceSimTargetVerbose off
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	  ModelReferenceExtraNoncontSigs "error"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Version		  "1.1.0"
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  32
	  ProdBitPerLong	  32
	  ProdIntDivRoundTo	  "Undefined"
	  ProdEndianess		  "Unspecified"
	  ProdWordSize		  32
	  ProdShiftRightIntArith  on
	  ProdHWDeviceType	  "32-bit Generic"
	  TargetBitPerChar	  8
	  TargetBitPerShort	  16
	  TargetBitPerInt	  32
	  TargetBitPerLong	  32
	  TargetShiftRightIntArith on
	  TargetIntDivRoundTo	  "Undefined"
	  TargetEndianess	  "Unspecified"
	  TargetWordSize	  32
	  TargetTypeEmulationWarnSuppressLevel 0
	  TargetPreprocMaxBitsSint 32
	  TargetPreprocMaxBitsUint 32
	  TargetHWDeviceType	  "Specified"
	  TargetUnknown		  on
	  ProdEqTarget		  on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  7
	  Version		  "1.1.0"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  8
	  Array {
	    Type		    "Cell"
	    Dimension		    1
	    Cell		    "IncludeHyperlinkInReport"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.1.0"
	  SystemTargetFile	  "grt.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  TemplateMakefile	  "grt_default_tmf"
	  GenerateReport	  off
	  SaveLog		  off
	  RTWVerbose		  on
	  RetainRTWFile		  off
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  ProcessScriptMode	  "Default"
	  ConfigurationMode	  "Optimized"
	  ConfigAtBuild		  off
	  IncludeHyperlinkInReport off
	  LaunchReport		  off
	  TargetLang		  "C"
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      9
	      Array {
		Type			"Cell"
		Dimension		9
		Cell			"IgnoreCustomStorageClasses"
		Cell			"InsertBlockDesc"
		Cell			"SFDataObjDesc"
		Cell			"SimulinkDataObjDesc"
		Cell			"DefineNamingRule"
		Cell			"SignalNamingRule"
		Cell			"ParamNamingRule"
		Cell			"InlinedPrmAccess"
		Cell			"CustomSymbolStr"
		PropName		"DisabledProps"
	      }
	      Version		      "1.1.0"
	      ForceParamTrailComments off
	      GenerateComments	      on
	      IgnoreCustomStorageClasses on
	      IncHierarchyInIds	      off
	      MaxIdLength	      31
	      PreserveName	      off
	      PreserveNameWithParent  off
	      ShowEliminatedStatement off
	      IncAutoGenComments      off
	      SimulinkDataObjDesc     off
	      SFDataObjDesc	      off
	      IncDataTypeInIds	      off
	      PrefixModelToSubsysFcnNames on
	      CustomSymbolStr	      "$R$N$M"
	      MangleLength	      1
	      DefineNamingRule	      "None"
	      ParamNamingRule	      "None"
	      SignalNamingRule	      "None"
	      InsertBlockDesc	      off
	      SimulinkBlockComments   on
	      EnableCustomComments    off
	      InlinedPrmAccess	      "Literals"
	      ReqsInCode	      off
	    }
	    Simulink.GRTTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      10
	      Array {
		Type			"Cell"
		Dimension		12
		Cell			"IncludeMdlTerminateFcn"
		Cell			"CombineOutputUpdateFcns"
		Cell			"SuppressErrorStatus"
		Cell			"ERTCustomFileBanners"
		Cell			"GenerateSampleERTMain"
		Cell			"MultiInstanceERTCode"
		Cell			"PurelyIntegerCode"
		Cell			"SupportNonFinite"
		Cell			"SupportComplex"
		Cell			"SupportAbsoluteTime"
		Cell			"SupportContinuousTime"
		Cell			"SupportNonInlinedSFcns"
		PropName		"DisabledProps"
	      }
	      Version		      "1.1.0"
	      TargetFcnLib	      "ansi_tfl_tmw.mat"
	      TargetLibSuffix	      ""
	      TargetPreCompLibLocation ""
	      GenFloatMathFcnCalls    "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      GenerateFullHeader      on
	      GenerateSampleERTMain   off
	      IsPILTarget	      off
	      ModelReferenceCompliant on
	      IncludeMdlTerminateFcn  on
	      CombineOutputUpdateFcns off
	      SuppressErrorStatus     off
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    off
	      SupportAbsoluteTime     on
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      on
	      MultiInstanceERTCode    off
	      SupportNonFinite	      on
	      SupportComplex	      on
	      PurelyIntegerCode	      off
	      SupportContinuousTime   on
	      SupportNonInlinedSFcns  on
	      ExtMode		      off
	      ExtModeStaticAlloc      off
	      ExtModeTesting	      off
	      ExtModeStaticAllocSize  1000000
	      ExtModeTransport	      0
	      ExtModeMexFile	      "ext_comm"
	      RTWCAPISignals	      off
	      RTWCAPIParams	      off
	      RTWCAPIStates	      off
	      GenerateASAP2	      off
	    }
	    PropName		    "Components"
	  }
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      SimulationMode	      "normal"
      CurrentDlgPage	      "Solver"
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Inport
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Scope
      Floating		      off
      ModelBased	      off
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      Sin
      SineType		      "Time based"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Bias		      "0"
      Frequency		      "1"
      Phase		      "0"
      Samples		      "10"
      Offset		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Terminator
    }
  }
  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		    "sf_gfdemo"
    Location		    [30, 173, 563, 559]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "96"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [100, 60, 130, 90]
      Gain		      "-1"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      Position		      [95, 195, 125, 225]
      Gain		      "-1"
    }
    Block {
      BlockType		      SubSystem
      Name		      "More Info"
      Ports		      []
      Position		      [390, 271, 515, 349]
      DropShadow	      on
      ShowName		      off
      FontName		      "Arial"
      FontSize		      12
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskDisplay	      "disp('Double click\\nhere for\\ninformation on"
"\\nthis demonstration')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"More Info"
	Location		[241, 244, 813, 619]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Annotation {
	  Name			  "Graphical Function Demonstration"
	  Position		  [263, 22]
	  FontSize		  14
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "This demonstration shows the concept of a g"
"raphical function and how it can be used to simplify \nyour Stateflow model. "
"In this example, we pass two inputs in the Stateflow chart. The first input i"
"s\na sine wave with magnitude 1 and a frequency of 2*pi and the second input "
"is that same sine wave \nbut inverted. The Stateflow charts output only the p"
"ositive values of both the input signals and also \nsaturate the signal at a "
"value of 0.5.\n\nIn the first chart, 'Without Graphical Functions', the outpu"
"t is defined directly within the substate. The \nNormal state is activated fi"
"rst, and the output is set equal to the normal_input. When the \nnormal_input"
" is greater than 0.5, the output is set equal to 0.5. When the normal_input b"
"ecomes\n negative (<0), then a state transition occurs, and the output is red"
"efined the same way within the\n Inverse state, except that the inverse_input"
" is used.\n\nIn the 'With Graphical Functions' chart, the output is defined b"
"y calling the graphical function. Instead\nof defining the saturation transit"
"ion (where the output remains at the 0.5 value) within the states, we\nonly d"
"efine it once in the graphical function. Although it is not as evident in thi"
"s simple demo, when \nmore conditions and parameters are introduced, and the "
"output needs to be defined in multiple \nstates, graphical functions allow yo"
"u to simplify your model.  "
	  Position		  [20, 40]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  FontName		  "Arial"
	  FontSize		  12
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "More Info1"
      Ports		      []
      Position		      [15, 271, 139, 350]
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "simcad(bdroot);"
      FontName		      "Arial"
      FontSize		      12
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskDisplay	      "disp('Double click\\nhere for\\nSimulink\\State"
"flow\\n Help')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"More Info1"
	Location		[128, 280, 487, 453]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [2]
      Position		      [465, 96, 495, 129]
      Location		      [564, 101, 989, 458]
      Open		      on
      NumInputPorts	      "2"
      List {
	ListType		AxesTitles
	axes1			"Without Graphical Functions"
	axes2			"With Graphical Functions"
      }
      TimeRange		      "10"
      YMin		      "-0.5~-0.5"
      YMax		      "1~1"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave"
      Ports		      [0, 1]
      Position		      [15, 25, 45, 55]
      SineType		      "Time based"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave1"
      Ports		      [0, 1]
      Position		      [15, 160, 45, 190]
      SineType		      "Time based"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "With Graphical Functions"
      Ports		      [2, 1]
      Position		      [205, 156, 330, 229]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "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"
      System {
	Name			"With Graphical Functions"
	Location		[257, 457, 812, 717]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "normal_input"
	  Position		  [20, 101, 40, 119]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "inverse_input"
	  Position		  [20, 136, 40, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 160, 320, 200]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function sf_gfdemo 2"
	  Ports			  [2, 2]
	  Position		  [180, 100, 230, 160]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[2 2]"
	  Port {
	    PortNumber		    2
	    Name		    "output"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 171, 480, 189]
	}
	Block {
	  BlockType		  Outport
	  Name			  "output"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 65]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "normal_input"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "inverse_input"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  2
	}
	Line {
	  Name			  "output"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "output"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Without Graphical Functions"
      Ports		      [2, 1]
      Position		      [205, 20, 330, 95]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "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"
      System {
	Name			"Without Graphical Functions"
	Location		[257, 457, 812, 717]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "normal_input"
	  Position		  [20, 101, 40, 119]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "inverse_input"
	  Position		  [20, 136, 40, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 160, 320, 200]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function sf_gfdemo 1"
	  Ports			  [2, 2]
	  Position		  [180, 100, 230, 160]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[2 2]"
	  Port {
	    PortNumber		    2
	    Name		    "output"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 171, 480, 189]
	}
	Block {
	  BlockType		  Outport
	  Name			  "output"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 65]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "normal_input"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "inverse_input"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  2
	}
	Line {
	  Name			  "output"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "output"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Without Graphical Functions"
      SrcPort		      1
      Points		      [115, 0]
      DstBlock		      "Scope1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "With Graphical Functions"
      SrcPort		      1
      Points		      [115, 0]
      DstBlock		      "Scope1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [5, 0; 25, 0]
      Branch {
	Points			[0, 35]
	DstBlock		"Gain"
	DstPort			1
      }
      Branch {
	DstBlock		"Without Graphical Functions"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      DstBlock		      "Without Graphical Functions"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sine Wave1"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	Points			[0, 35]
	DstBlock		"Gain1"
	DstPort			1
      }
      Branch {
	DstBlock		"With Graphical Functions"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      DstBlock		      "With Graphical Functions"
      DstPort		      2
    }
  }
}

# Finite State Machines
#
#    Stateflow Version 6.2 (R14SP2) dated Jan 21 2005, 03:46:19
#
#

Stateflow {

	machine {
		id                   		1
		name                 		"sf_gfdemo"
		created              		"30-Jul-2001 15:59:38"
		isLibrary            		0
		firstTarget          		54
		sfVersion            		62014000
		sfDemoChecksum       		[2926239124 1484864708 2401906616 4014854007]
	}

	chart {
		id                                        		2
		name                                      		"Without Graphical Functions"
		windowPosition                            		[-9 93 486 381]
		viewLimits                                		[57.119 673.779 7.022 487.808]
		zoomFactor                                		1.394
		screen                                    		[1 1 1024 768 1.333333333333333]
		treeNode                                  		[0 3 0 0]
		firstTransition                           		11
		viewObj                                   		2
		machine                                   		1
		decomposition                             		CLUSTER_CHART
		firstEvent                                		24
		firstData                                 		25
		chartFileNumber                           		1
	}

	state {
		id                  		3
		labelString         		"Normal"
		position            		[83.201 49.042 342.994 160.944]
		fontSize            		12
		chart               		2
		treeNode            		[2 0 0 4]
		firstTransition     		14
		firstJunction       		5
		superState          		GROUPED
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		4
		labelString         		"Inverse"
		position            		[302.53 290.105 343.425 161.873]
		fontSize            		12
		chart               		2
		treeNode            		[2 0 3 0]
		firstTransition     		15
		firstJunction       		6
		superState          		GROUPED
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	junction {
		id         		5
		position   		[201.0173 103.2565 10]
		arrowSize  		9.282
		chart      		2
		linkNode   		[3 0 9]
		isGrouped  		1
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		6
		position   		[419.3918 343.9118 9.6053]
		arrowSize  		10.977
		chart      		2
		linkNode   		[4 0 7]
		isGrouped  		1
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		7
		position   		[537.6633 343.9118 9.6053]
		arrowSize  		10.977
		chart      		2
		linkNode   		[4 6 8]
		isGrouped  		1
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		8
		position   		[481.8643 421.4136 9.6053]
		arrowSize  		10.977
		chart      		2
		linkNode   		[4 7 0]
		isGrouped  		1
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		9
		position   		[331.8149 103.2565 10]
		arrowSize  		9.282
		chart      		2
		linkNode   		[3 5 10]
		isGrouped  		1
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		10
		position   		[263.4255 176.8162 10]
		arrowSize  		9.282
		chart      		2
		linkNode   		[3 9 0]
		isGrouped  		1
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	transition {
		id             		11
		labelPosition  		[183.251 30.795 9.391 17.73]
		fontSize       		12
		src {
			intersection		[0 0 1 0 183.2522 19.042 0 0]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.2917 183.2522 49.042 0 0]
		}
		midPoint       		[183.2522 30.4335]
		chart          		2
		linkNode       		[2 0 16]
		dataLimits     		[180.852 185.652 19.042 49.042]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		12
		labelString    		"[normal_input < 0]"
		labelPosition  		[513.185 193.55 105.385 17.73]
		fontSize       		12
		src {
			id          		3
			intersection		[2 1 0 0.8117 426.195 179.6864 0 -153.9646]
		}
		dst {
			id          		4
			intersection		[1 0 -1 0.7111 546.7395 290.1052 0 244.2095]
		}
		midPoint       		[509.9043 212.9512]
		chart          		2
		linkNode       		[2 16 13]
		dataLimits     		[426.195 549.14 179.686 290.105]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		13
		labelString    		"[inverse_input<0]"
		labelPosition  		[150.068 265.959 100.168 17.73]
		fontSize       		12
		src {
			id          		4
			intersection		[4 -1 0 0.8584 302.53 313.0217 0 -22.9165]
		}
		dst {
			id          		3
			intersection		[3 0 1 0.5506 237.3585 209.986 0 65.1715]
		}
		midPoint       		[253.271 278.2789]
		chart          		2
		linkNode       		[2 12 17]
		dataLimits     		[234.959 302.53 209.986 313.022]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		14
		labelPosition  		[197.606 56.551 7.304 14.601]
		fontSize       		9.825
		arrowSize      		9.282
		src {
			intersection		[0 0.5454 0.8382 0 164.483 68.613 0 0]
		}
		dst {
			id          		5
			intersection		[0 -0.5454 -0.8382 -1 195.5633 94.8745 0 0]
		}
		midPoint       		[176.9065 80.3935]
		chart          		2
		linkNode       		[3 0 21]
		isGrouped      		1
		dataLimits     		[164.483 195.563 68.613 94.874]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		15
		labelPosition  		[406.92 310.093 9.391 17.73]
		fontSize       		12
		arrowSize      		10.977
		src {
			intersection		[0 0 0 0 384.0882 306.4683 0 0]
		}
		dst {
			id          		6
			intersection		[7 -0.4892 -0.8722 -1 414.6929 335.5341 0 0]
		}
		midPoint       		[398.4921 315.5254]
		chart          		2
		linkNode       		[4 0 18]
		isGrouped      		1
		dataLimits     		[384.088 414.693 306.468 335.534]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		16
		labelPosition  		[313.635 22.056 9.391 17.73]
		fontSize       		12
		src {
			id          		3
			intersection		[1 0 -1 0.4898 251.1992 49.042 0 0]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.7885 353.6514 49.042 0 0]
		}
		midPoint       		[315.4357 22.1352]
		chart          		2
		linkNode       		[2 11 12]
		dataLimits     		[251.199 356.051 21.963 49.042]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		17
		labelPosition  		[413.195 476.833 9.391 17.73]
		fontSize       		12
		src {
			id          		4
			intersection		[3 0 1 0.8413 357.0316 451.9782 0 0]
		}
		dst {
			id          		4
			intersection		[3 0 1 0.5345 462.3944 451.9782 0 0]
		}
		midPoint       		[441.2041 474.4481]
		chart          		2
		linkNode       		[2 13 0]
		dataLimits     		[357.032 464.794 451.978 476.833]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		18
		labelString    		"[inverse_input > 0.5]"
		labelPosition  		[452.181 314.478 116.863 17.73]
		fontSize       		12
		arrowSize      		10.977
		src {
			id          		6
			intersection		[0 1 0 -1 428.9971 343.9118 0 0]
		}
		dst {
			id          		7
			intersection		[0 -1 0 -1 528.058 343.9118 0 0]
		}
		midPoint       		[474.8348 343.9118]
		chart          		2
		linkNode       		[4 15 19]
		isGrouped      		1
		dataLimits     		[428.997 528.058 340.619 347.205]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		19
		labelString    		"{output=inverse_input;}"
		labelPosition  		[313.247 382.366 133.558 17.73]
		fontSize       		12
		arrowSize      		10.977
		src {
			id          		6
			intersection		[0 0.6276 0.7786 -1 425.4198 351.3901 0 0]
		}
		dst {
			id          		8
			intersection		[0 -0.6276 -0.7786 -1 475.8362 413.9353 0 0]
		}
		midPoint       		[448.0551 379.4708]
		chart          		2
		linkNode       		[4 18 20]
		isGrouped      		1
		dataLimits     		[425.42 475.836 351.39 413.935]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		2
	}

	transition {
		id             		20
		labelString    		"{output = 0.5;}"
		labelPosition  		[527.844 378.802 80.343 17.73]
		fontSize       		12
		arrowSize      		10.977
		src {
			id          		7
			intersection		[0 -0.5843 0.8115 -1 532.051 351.707 0 0]
		}
		dst {
			id          		8
			intersection		[0 0.5843 -0.8115 -1 487.4766 413.6184 0 0]
		}
		midPoint       		[512.2107 379.2641]
		chart          		2
		linkNode       		[4 19 0]
		isGrouped      		1
		dataLimits     		[487.477 532.051 351.707 413.618]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		21
		labelString    		"[normal_input >0.5]"
		labelPosition  		[215.572 78.42 112.689 17.73]
		fontSize       		12
		arrowSize      		9.282
		src {
			id          		5
			intersection		[0 1 0 -1 211.0173 103.2565 0 0]
		}
		dst {
			id          		9
			intersection		[0 -1 0 -1 321.8149 103.2565 0 0]
		}
		midPoint       		[266.4161 103.2565]
		chart          		2
		linkNode       		[3 14 22]
		isGrouped      		1
		dataLimits     		[211.017 321.815 100.472 106.041]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		22
		labelString    		"{output = 0.5;}"
		labelPosition  		[304.263 140.295 80.343 17.73]
		fontSize       		12
		arrowSize      		9.282
		src {
			id          		9
			intersection		[0 -0.6809 0.7324 -1 325.0059 110.5802 0 0]
		}
		dst {
			id          		10
			intersection		[0 0.6809 -0.7324 -1 270.2345 169.4924 0 0]
		}
		midPoint       		[297.6202 140.0363]
		chart          		2
		linkNode       		[3 21 23]
		isGrouped      		1
		dataLimits     		[270.234 325.006 110.58 169.492]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		23
		labelString    		"{output=normal_input;}"
		labelPosition  		[94.938 137.772 132.514 17.73]
		fontSize       		12
		arrowSize      		9.282
		src {
			id          		5
			intersection		[0 0.6469 0.7625 -1 207.4867 110.8819 0 0]
		}
		dst {
			id          		10
			intersection		[0 -0.6469 -0.7625 -1 256.9561 169.1908 0 0]
		}
		midPoint       		[232.2214 140.0363]
		chart          		2
		linkNode       		[3 22 0]
		isGrouped      		1
		dataLimits     		[207.487 256.956 110.882 169.191]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		2
	}

	event {
		id         		24
		name       		"Switch"
		linkNode   		[2 0 0]
		scope      		LOCAL_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	data {
		id                            		25
		name                          		"output"
		linkNode                      		[2 0 26]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		26
		name                          		"normal_input"
		linkNode                      		[2 25 27]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		27
		name                          		"inverse_input"
		linkNode                      		[2 26 0]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	instance {
		id     		28
		name   		"Without Graphical Functions"
		machine		1
		chart  		2
	}

	chart {
		id                                        		29
		name                                      		"With Graphical Functions"
		windowPosition                            		[294.75 147 471.75 293.25]
		viewLimits                                		[0 606.83 0 364.523]
		zoomFactor                                		1.417
		screen                                    		[1 1 1024 768 1.333333333333333]
		treeNode                                  		[0 30 0 0]
		firstTransition                           		38
		viewObj                                   		29
		machine                                   		1
		decomposition                             		CLUSTER_CHART
		firstData                                 		50
		updateMethod                              		CONTINUOUS
		chartFileNumber                           		2
	}

	state {
		id                  		30
		labelString         		"Normal"
		position            		[34.862 51.667 223.79 98.067]
		fontSize            		12
		chart               		29
		treeNode            		[29 0 0 32]
		firstTransition     		42
		firstJunction       		34
		superState          		GROUPED
		subviewer           		29
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		31
		labelString         		"Inverse"
		position            		[32.731 205.039 225.665 99.654]
		fontSize            		12
		chart               		29
		treeNode            		[29 0 32 0]
		firstTransition     		43
		firstJunction       		35
		superState          		GROUPED
		subviewer           		29
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		32
		labelString         		"set_output_data(input)"
		position            		[316.42 89.064 217.603 172.078]
		fontSize            		12
		chart               		29
		treeNode            		[29 0 30 31]
		firstTransition     		41
		firstJunction       		36
		superState          		GROUPED
		subviewer           		29
		type                		FUNC_STATE
		decomposition       		CLUSTER_STATE
		firstData           		49
	}

	junction {
		id         		33
		position   		[381.5545 155.2239 4.8364]
		arrowSize  		5.527
		chart      		29
		linkNode   		[32 36 37]
		isGrouped  		1
		subviewer  		29
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		34
		position   		[129.479 118.4224 8.4313]
		arrowSize  		8.431
		chart      		29
		linkNode   		[30 0 0]
		isGrouped  		1
		subviewer  		29
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		35
		position   		[129.3722 270.8812 8]
		arrowSize  		6.957
		chart      		29
		linkNode   		[31 0 0]
		isGrouped  		1
		subviewer  		29
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		36
		position   		[466.9459 155.2239 6.2507]
		arrowSize  		7.144
		chart      		29
		linkNode   		[32 0 33]
		isGrouped  		1
		subviewer  		29
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		37
		position   		[424.8698 237.3862 6.2507]
		arrowSize  		7.144
		chart      		29
		linkNode   		[32 33 0]
		isGrouped  		1
		subviewer  		29
		type       		CONNECTIVE_JUNCTION
	}

	transition {
		id             		38
		labelPosition  		[100.142 34.189 8.487 17.004]
		fontSize       		12
		src {
			intersection		[0 0 1 0 100.1421 21.6677 0 0]
		}
		dst {
			id          		30
			intersection		[1 0 -1 0.2917 100.1421 51.667 0 0]
		}
		midPoint       		[100.1421 33.0588]
		chart          		29
		linkNode       		[29 0 44]
		dataLimits     		[97.742 102.542 21.668 51.667]
		subviewer      		29
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		39
		labelString    		"[normal_input < 0]"
		labelPosition  		[162.29 173.677 92.298 17.004]
		fontSize       		12
		src {
			id          		30
			intersection		[3 0 1 0.4562 156.5619 149.7343 0 -14.25]
		}
		dst {
			id          		31
			intersection		[1 0 -1 0.5487 156.5619 205.0389 0 14.25]
		}
		midPoint       		[156.5619 174.3281]
		chart          		29
		linkNode       		[29 40 45]
		dataLimits     		[154.162 158.962 149.734 205.039]
		subviewer      		29
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		40
		labelString    		"[inverse_input<0]"
		labelPosition  		[24.246 168.175 90.176 17.004]
		fontSize       		12
		src {
			id          		31
			intersection		[1 0 -1 0.4008 123.1746 205.0389 0 -19.125]
		}
		dst {
			id          		30
			intersection		[3 0 1 0.6054 123.1746 149.7343 0 19.125]
		}
		midPoint       		[123.1746 180.445]
		chart          		29
		linkNode       		[29 44 39]
		dataLimits     		[120.775 125.575 149.734 205.039]
		subviewer      		29
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		41
		labelPosition  		[391.31 128.588 6.365 12.753]
		fontSize       		8.29
		arrowSize      		5.527
		src {
			intersection		[0 0 0 0 363.3346 125.2524 0 0]
		}
		dst {
			id          		33
			intersection		[0 -0.981 -0.1939 -1 376.81 154.2862 0 0]
		}
		midPoint       		[366.8899 142.5234]
		chart          		29
		linkNode       		[32 0 46]
		isGrouped      		1
		dataLimits     		[363.335 376.81 125.252 154.841]
		subviewer      		29
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		42
		labelString    		"{set_output_data(normal_input);}"
		labelPosition  		[82.288 78.749 169.743 17.004]
		fontSize       		12
		arrowSize      		8.431
		src {
			intersection		[0 0.9201 0.3916 0 58.3298 89.1846 0 0]
		}
		dst {
			id          		34
			intersection		[7 -0.9201 -0.3916 -1 121.7212 115.1204 0 0]
		}
		midPoint       		[88.1538 101.4403]
		chart          		29
		linkNode       		[30 0 0]
		isGrouped      		1
		dataLimits     		[58.33 121.721 89.185 115.12]
		subviewer      		29
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		43
		labelString    		"{set_output_data(inverse_input);}"
		labelPosition  		[81.9 235.663 173.986 17.004]
		fontSize       		12
		arrowSize      		6.957
		src {
			intersection		[0 0.9426 0.3338 0 60.709 250.2561 0 0]
		}
		dst {
			id          		35
			intersection		[7 -0.9426 -0.3338 -1 121.8314 268.2108 0 0]
		}
		midPoint       		[89.4909 258.9017]
		chart          		29
		linkNode       		[31 0 0]
		isGrouped      		1
		dataLimits     		[60.709 121.831 250.256 268.211]
		subviewer      		29
		executionOrder 		1
	}

	transition {
		id             		44
		labelPosition  		[171.783 20.188 8.487 17.004]
		fontSize       		12
		src {
			id          		30
			intersection		[1 0 -1 0.4877 144.0044 51.667 0 0]
		}
		dst {
			id          		30
			intersection		[1 0 -1 0.6642 183.5015 51.667 0 0]
		}
		midPoint       		[152.6817 34.008]
		chart          		29
		linkNode       		[29 38 40]
		dataLimits     		[144.004 185.902 30.867 51.667]
		subviewer      		29
		executionOrder 		2
	}

	transition {
		id             		45
		labelPosition  		[163.638 312.291 8.487 17.004]
		fontSize       		12
		src {
			id          		31
			intersection		[3 0 1 0.5037 144.7284 304.6929 0 0]
		}
		dst {
			id          		31
			intersection		[3 0 1 0.313 187.7525 304.6929 0 0]
		}
		midPoint       		[165.4348 330.5152]
		chart          		29
		linkNode       		[29 39 0]
		dataLimits     		[144.728 190.153 304.693 330.482]
		subviewer      		29
		executionOrder 		2
	}

	transition {
		id             		46
		labelString    		"[input>.5]"
		labelPosition  		[408.955 137.903 48.801 17.004]
		fontSize       		10.716
		arrowSize      		7.144
		src {
			id          		33
			intersection		[0 1 0 -1 386.3909 155.2239 0 0]
		}
		dst {
			id          		36
			intersection		[0 -1 0 -1 460.6951 155.2239 0 0]
		}
		midPoint       		[422.059 155.2239]
		chart          		29
		linkNode       		[32 41 48]
		isGrouped      		1
		dataLimits     		[386.391 460.695 153.081 157.367]
		subviewer      		29
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		47
		labelString    		"{output = 0.5;}"
		labelPosition  		[453.309 190.275 74.262 17.004]
		fontSize       		10.716
		arrowSize      		7.144
		src {
			id          		36
			intersection		[0 -0.4558 0.8901 -1 464.0967 160.7876 0 0]
		}
		dst {
			id          		37
			intersection		[0 0.4558 -0.8901 -1 427.7189 231.8226 0 0]
		}
		midPoint       		[446.9956 194.181]
		chart          		29
		linkNode       		[32 48 0]
		isGrouped      		1
		dataLimits     		[427.719 464.097 160.788 231.823]
		subviewer      		29
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		48
		labelString    		"{output = input;}"
		labelPosition  		[316.936 188.199 82.75 17.004]
		fontSize       		10.716
		arrowSize      		7.144
		src {
			id          		33
			intersection		[0 0.4664 0.8846 -1 383.8099 159.5022 0 0]
		}
		dst {
			id          		37
			intersection		[0 -0.4664 -0.8846 -1 421.9547 231.8568 0 0]
		}
		midPoint       		[402.858 195.6333]
		chart          		29
		linkNode       		[32 46 47]
		isGrouped      		1
		dataLimits     		[383.81 421.955 159.502 231.857]
		subviewer      		29
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
		}
		executionOrder 		2
	}

	data {
		id                            		49
		name                          		"input"
		linkNode                      		[32 0 0]
		scope                         		FUNCTION_INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		50
		name                          		"output"
		linkNode                      		[29 0 51]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		51
		name                          		"normal_input"
		linkNode                      		[29 50 52]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		52
		name                          		"inverse_input"
		linkNode                      		[29 51 0]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	instance {
		id     		53
		name   		"With Graphical Functions"
		machine		1
		chart  		29
	}

	target {
		id                        		54
		name                      		"sfun"
		description               		"Default Simulink S-Function Target."
		codeFlags                 		" debug=1 overflow=1 echo=1"
		machine                   		1
		linkNode                  		[1 0 0]
	}
}
