Model {
  Name			  "TRN_current"
  Version		  6.2
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.28"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "ibm-5348_P100-1997"
  SaveDefaultBlockParams  on
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  on
  ShowLineDimensions	  on
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowViewerIcons	  on
  SortedOrder		  off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeVarName	  "covCumulativeData"
  CovCumulativeReport	  off
  CovReportOnPause	  on
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Thu Nov 21 14:57:29 2002"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "mark"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Tue Mar 14 17:49:21 2006"
  ModelVersionFormat	  "1.%<AutoIncrement:28>"
  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 on
  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"
	  StopTime		  "6"
	  AbsTol		  "1e-3"
	  FixedStep		  "auto"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "0.1"
	  MinStep		  "auto"
	  RelTol		  "1e-3"
	  SolverMode		  "SingleTasking"
	  Solver		  "ode45"
	  SolverName		  "ode45"
	  ZeroCrossControl	  "UseLocalSettings"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  RateTranMode		  "Deterministic"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.1.0"
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  off
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveFormat		  "Array"
	  SaveOutput		  off
	  SaveState		  off
	  SignalLogging		  on
	  SaveTime		  off
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsout"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "5"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Version		  "1.1.0"
	  BlockReduction	  on
	  BooleanDataType	  off
	  ConditionallyExecuteInputs on
	  InlineParams		  off
	  InlineInvariantSignals  off
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnforceIntegerDowncast  on
	  ExpressionFolding	  on
	  FoldNonRolledExpr	  on
	  LocalBlockOutputs	  on
	  ParameterPooling	  on
	  RollThreshold		  5
	  SystemCodeInlineAuto	  off
	  StateBitsets		  off
	  DataBitsets		  off
	  UseTempVars		  off
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  on
	  NoFixptDivByZeroProtection off
	  EfficientFloat2IntCast  off
	  OptimizeModelRefInitCode off
	  LifeSpan		  "inf"
	  BufferReusableBoundary  on
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.1.0"
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  CheckSSInitialOutputMsg on
	  CheckExecutionContextPreStartOutputMsg off
	  CheckExecutionContextRuntimeOutputMsg	off
	  SignalResolutionControl "TryResolveAllWithWarning"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  SolverPrmCheckMsg	  "none"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "warning"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterPrecisionLossMsg "warning"
	  UnderSpecifiedDataTypeMsg "none"
	  UnnecessaryDatatypeConvMsg "none"
	  VectorMatrixConversionMsg "none"
	  InvalidFcnCallConnMsg	  "error"
	  FcnCallInpInsideContextMsg "Use local settings"
	  SignalLabelMismatchMsg  "none"
	  UnconnectedInputMsg	  "warning"
	  UnconnectedOutputMsg	  "warning"
	  UnconnectedLineMsg	  "warning"
	  SFcnCompatibilityMsg	  "none"
	  UniqueDataStoreMsg	  "none"
	  BusObjectLabelMismatch  "warning"
	  RootOutportRequireBusObject "warning"
	  AssertControl		  "UseLocalSettings"
	  EnableOverflowDetection off
	  ModelReferenceIOMsg	  "none"
	  ModelReferenceVersionMismatchMessage "none"
	  ModelReferenceIOMismatchMessage "none"
	  ModelReferenceCSMismatchMessage "none"
	  ModelReferenceSimTargetVerbose off
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	  ModelReferenceExtraNoncontSigs "error"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Version		  "1.1.0"
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  32
	  ProdBitPerLong	  32
	  ProdIntDivRoundTo	  "Undefined"
	  ProdEndianess		  "Unspecified"
	  ProdWordSize		  32
	  ProdShiftRightIntArith  on
	  ProdHWDeviceType	  "32-bit Generic"
	  TargetBitPerChar	  8
	  TargetBitPerShort	  16
	  TargetBitPerInt	  32
	  TargetBitPerLong	  32
	  TargetShiftRightIntArith on
	  TargetIntDivRoundTo	  "Undefined"
	  TargetEndianess	  "Unspecified"
	  TargetWordSize	  32
	  TargetTypeEmulationWarnSuppressLevel 0
	  TargetPreprocMaxBitsSint 32
	  TargetPreprocMaxBitsUint 32
	  TargetHWDeviceType	  "Specified"
	  TargetUnknown		  on
	  ProdEqTarget		  on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  7
	  Version		  "1.1.0"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  8
	  Version		  "1.1.0"
	  SystemTargetFile	  "grt.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  TemplateMakefile	  "grt_unix.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
	      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
	      Version		      "1.1.0"
	      TargetFcnLib	      "ansi_tfl_tmw.mat"
	      TargetLibSuffix	      ""
	      TargetPreCompLibLocation ""
	      GenFloatMathFcnCalls    "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      GenerateFullHeader      on
	      GenerateSampleERTMain   off
	      IsPILTarget	      off
	      ModelReferenceCompliant off
	      IncludeMdlTerminateFcn  on
	      CombineOutputUpdateFcns off
	      SuppressErrorStatus     off
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    off
	      SupportAbsoluteTime     on
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      off
	      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		      Clock
      DisplayTime	      off
    }
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "sfix(16)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "2^0"
      SampleTime	      "inf"
    }
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      DiscretePulseGenerator
      PulseType		      "Sample based"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Period		      "2"
      PulseWidth	      "1"
      PhaseDelay	      "0"
      SampleTime	      "1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      From
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      Fcn
      Expr		      "sin(u[1])"
      SampleTime	      "-1"
    }
    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		      Goto
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      SignalConversion
      OverrideOpt	      off
    }
    Block {
      BlockType		      Inport
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Integrator
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
      IgnoreLimit	      off
      ZeroCross		      on
    }
    Block {
      BlockType		      Lookup
      InputValues	      "[-4:5]"
      OutputValues	      " rand(1,10)-0.5"
      LookUpMeth	      "Interpolation-Extrapolation"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
      LUTDesignTableMode      "Redesign Table"
      LUTDesignDataSource     "Block Dialog"
      LUTDesignFunctionName   "sqrt(x)"
      LUTDesignUseExistingBP  on
      LUTDesignRelError	      "0.01"
      LUTDesignAbsError	      "1e-6"
    }
    Block {
      BlockType		      Mux
      Inputs		      "4"
      DisplayOption	      "none"
      UseBusObject	      off
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Relay
      OnSwitchValue	      "eps"
      OffSwitchValue	      "eps"
      OnOutputValue	      "1"
      OffOutputValue	      "0"
      OutputDataTypeScalingMode	"All ports same datatype"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      ConRadixGroup	      "Use specified scaling"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    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		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Terminator
    }
    Block {
      BlockType		      ZeroOrderHold
      SampleTime	      "1"
    }
  }
  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		    "TRN_current"
    Location		    [654, 180, 1206, 852]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "portrait"
    PaperPositionMode	    "auto"
    PaperType		    "a4letter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "Basal Ganglia"
      Ports		      [2, 1]
      Position		      [57, 365, 148, 455]
      Orientation	      "down"
      BackgroundColor	      "red"
      DropShadow	      on
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Basal Ganglia"
      MaskPromptString	      "D2 base level|D1 base level"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "D2=@1;D1=@2;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.2|0.2"
      MaskTabNameString	      ","
      System {
	Name			"Basal Ganglia"
	Location		[105, 156, 909, 836]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "From cortex"
	  Position		  [296, 45, 334, 75]
	  Orientation		  "down"
	  ForegroundColor	  "green"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  SampleTime		  "0"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Salience"
	  Position		  [196, 45, 234, 75]
	  Orientation		  "down"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  SampleTime		  "0"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Goto
	  Name			  "Diagnostic\nSTN"
	  Position		  [385, 290, 410, 310]
	  ForegroundColor	  "red"
	  DropShadow		  on
	  GotoTag		  "STN"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Diagnostic\nStr(D1)"
	  Position		  [100, 352, 130, 378]
	  Orientation		  "left"
	  ForegroundColor	  "blue"
	  DropShadow		  on
	  NamePlacement		  "alternate"
	  GotoTag		  "StrD1"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Diagnostic\nStr(D2)"
	  Position		  [605, 332, 635, 358]
	  ForegroundColor	  "blue"
	  DropShadow		  on
	  NamePlacement		  "alternate"
	  GotoTag		  "StrD2"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  Goto
	  Name			  "DiagnosticCx"
	  Position		  [365, 85, 390, 105]
	  ForegroundColor	  "red"
	  DropShadow		  on
	  GotoTag		  "Ctx"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  Goto
	  Name			  "DiagnosticGPe"
	  Position		  [398, 490, 422, 515]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  DropShadow		  on
	  NamePlacement		  "alternate"
	  GotoTag		  "GPe"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  Goto
	  Name			  "DiagnosticGPi"
	  Position		  [173, 495, 197, 520]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  DropShadow		  on
	  NamePlacement		  "alternate"
	  GotoTag		  "GPi"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Dopamine"
	  Ports			  [0, 2]
	  Position		  [28, 25, 92, 70]
	  Orientation		  "down"
	  BackgroundColor	  "yellow"
	  DropShadow		  on
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Dopamine"
	    Location		    [382, 132, 831, 391]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Constant
	      Name		      "D1 base level"
	      Position		      [15, 25, 135, 55]
	      Value		      "D1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "D2 base level"
	      Position		      [290, 25, 410, 55]
	      Orientation	      "left"
	      Value		      "D2"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [6, 1]
	      Position		      [140, 100, 200, 140]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "6"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux1"
	      Ports		      [6, 1]
	      Position		      [220, 100, 280, 140]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "6"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "GPi(D1)"
	      Position		      [160, 170, 180, 190]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "GPe(D2)"
	      Position		      [240, 175, 260, 195]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Mux1"
	      SrcPort		      1
	      DstBlock		      "GPe(D2)"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "D2 base level"
	      SrcPort		      1
	      Points		      [-45, 0; 0, 45]
	      Branch {
		Points			[5, 0]
		Branch {
		  Points		  [5, 0]
		  Branch {
		    Points		    [15, 0]
		    Branch {
		    DstBlock		    "Mux1"
		    DstPort		    6
		    }
		    Branch {
		    DstBlock		    "Mux1"
		    DstPort		    5
		    }
		  }
		  Branch {
		    DstBlock		    "Mux1"
		    DstPort		    4
		  }
		}
		Branch {
		  DstBlock		  "Mux1"
		  DstPort		  3
		}
	      }
	      Branch {
		Points			[-5, 0]
		Branch {
		  DstBlock		  "Mux1"
		  DstPort		  2
		}
		Branch {
		  DstBlock		  "Mux1"
		  DstPort		  1
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "GPi(D1)"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "D1 base level"
	      SrcPort		      1
	      Points		      [30, 0; 0, 45]
	      Branch {
		Points			[5, 0]
		Branch {
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Mux"
		    DstPort		    6
		  }
		  Branch {
		    DstBlock		    "Mux"
		    DstPort		    5
		  }
		}
		Branch {
		  DstBlock		  "Mux"
		  DstPort		  4
		}
	      }
	      Branch {
		Points			[-5, 0]
		Branch {
		  DstBlock		  "Mux"
		  DstPort		  3
		}
		Branch {
		  Points		  [-10, 0]
		  Branch {
		    DstBlock		    "Mux"
		    DstPort		    2
		  }
		  Branch {
		    DstBlock		    "Mux"
		    DstPort		    1
		  }
		}
	      }
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "GPe"
	  Ports			  [2, 1]
	  Position		  [497, 395, 573, 435]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  DropShadow		  on
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "GPe"
	  MaskDescription	  "3 channel GPe"
	  MaskPromptString	  "weight from Striatum|weight from STN (exc.)"
"|membrane decay rate|output slope|output thresh"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskVariables		  "W_str=@1;W_STN=@2;A_rate=@3;slope=@4;thresh"
"=@5;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "-1|0.8|25|1|-0.2"
	  MaskTabNameString	  ",,,,"
	  System {
	    Name		    "GPe"
	    Location		    [38, 118, 820, 675]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [615, 85, 635, 105]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Striatum"
	      Position		      [145, 90, 165, 110]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel"
	      Ports		      [2, 1]
	      Position		      [20, 275, 75, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel"
		Location		[225, 244, 628, 634]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [318, 374, 629, 675]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -40]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 45]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 260, 218, 300]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel1"
	      Ports		      [2, 1]
	      Position		      [130, 275, 185, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel1"
		Location		[643, 601, 1046, 991]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [701, 364, 1012, 665]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 45]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -40]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 260, 218, 300]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel2"
	      Ports		      [2, 1]
	      Position		      [245, 275, 300, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel2"
		Location		[643, 601, 1046, 991]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [701, 364, 1012, 665]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -40]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 45]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 260, 218, 300]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel3"
	      Ports		      [2, 1]
	      Position		      [360, 275, 415, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel3"
		Location		[643, 601, 1046, 991]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [701, 364, 1012, 665]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 45]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -40]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 260, 218, 300]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel4"
	      Ports		      [2, 1]
	      Position		      [470, 275, 525, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel4"
		Location		[643, 601, 1046, 991]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [701, 364, 1012, 665]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -40]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 45]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 260, 218, 300]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel5"
	      Ports		      [2, 1]
	      Position		      [585, 275, 640, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel5"
		Location		[643, 601, 1046, 991]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [701, 364, 1012, 665]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 45]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -40]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 260, 218, 300]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux"
	      Ports		      [1, 6]
	      Position		      [120, 140, 215, 180]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [6, 1]
	      Position		      [285, 385, 380, 430]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Inputs		      "6"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      Ports		      [1, 1]
	      Position		      [598, 155, 652, 175]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      Inputs		      "+"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      Position		      [325, 460, 345, 480]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      Points		      [0, 60]
	      Branch {
		DstBlock		"2 input\nchannel5"
		DstPort			2
	      }
	      Branch {
		Points			[-115, 0]
		Branch {
		  Points		  [-110, 0]
		  Branch {
		    Points		    [-115, 0]
		    Branch {
		    Points		    [-115, 0]
		    Branch {
		    Points		    [-110, 0]
		    DstBlock		    "2 input\nchannel"
		    DstPort		    2
		    }
		    Branch {
		    DstBlock		    "2 input\nchannel1"
		    DstPort		    2
		    }
		    }
		    Branch {
		    DstBlock		    "2 input\nchannel2"
		    DstPort		    2
		    }
		  }
		  Branch {
		    DstBlock		    "2 input\nchannel3"
		    DstPort		    2
		  }
		}
		Branch {
		  DstBlock		  "2 input\nchannel4"
		  DstPort		  2
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      1
	      Points		      [-95, 0]
	      DstBlock		      "2 input\nchannel"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "STN"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel"
	      SrcPort		      1
	      Points		      [0, 60]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel1"
	      SrcPort		      1
	      Points		      [0, 50; 150, 0]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel2"
	      SrcPort		      1
	      Points		      [0, 35; 50, 0]
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Striatum"
	      SrcPort		      1
	      Points		      [0, 10]
	      DstBlock		      "Demux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      2
	      DstBlock		      "2 input\nchannel1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      3
	      Points		      [0, 35; 100, 0]
	      DstBlock		      "2 input\nchannel2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      4
	      Points		      [0, 30; 200, 0]
	      DstBlock		      "2 input\nchannel3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      5
	      Points		      [0, 25; 295, 0]
	      DstBlock		      "2 input\nchannel4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      6
	      Points		      [0, 15; 395, 0]
	      DstBlock		      "2 input\nchannel5"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel3"
	      SrcPort		      1
	      Points		      [0, 35; -50, 0]
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel4"
	      SrcPort		      1
	      Points		      [0, 55; -145, 0]
	      DstBlock		      "Mux"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel5"
	      SrcPort		      1
	      Points		      [0, 60]
	      DstBlock		      "Mux"
	      DstPort		      6
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "GPi"
	  Ports			  [3, 1]
	  Position		  [147, 415, 223, 455]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  DropShadow		  on
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "GPi"
	  MaskDescription	  "3 channel GPe"
	  MaskPromptString	  "weight from Str|weight from STN|weight from"
" GPe|membrane decay rate|output slope|output thresh"
	  MaskStyleString	  "edit,edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on,on"
	  MaskCallbackString	  "|||||"
	  MaskEnableString	  "on,on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on,on"
	  MaskVarAliasString	  ",,,,,"
	  MaskVariables		  "W_str=@1;W_STN=@2;W_GPe=@3;A_rate=@4;slope="
"@5;thresh=@6;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "-1|0.8|-0.4|25|1|-0.2"
	  MaskTabNameString	  ",,,,,"
	  System {
	    Name		    "GPi"
	    Location		    [0, 163, 936, 694]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Striatum"
	      Position		      [225, 35, 245, 55]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [530, 15, 550, 35]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "GPe"
	      Position		      [385, 40, 405, 60]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel"
	      Ports		      [3, 1]
	      Position		      [77, 345, 133, 375]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel"
		Location		[423, 347, 826, 737]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [90, 55, 110, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [175, 55, 195, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [255, 55, 275, 75]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [3, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [542, 234, 853, 535]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 155, 35, 175]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 230, 35, 250]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 140, 130, 190]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [65, 215, 130, 265]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -30]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [45, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 255, 218, 295]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  Labels		  [1, 0]
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "GPe"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "input summation"
		  DstPort		  3
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel1"
	      Ports		      [3, 1]
	      Position		      [212, 345, 268, 375]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel1"
		Location		[643, 601, 1046, 991]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [90, 55, 110, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [175, 55, 195, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [255, 55, 275, 75]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [3, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [733, 368, 1044, 669]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 155, 35, 175]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 230, 35, 250]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 140, 130, 190]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [65, 215, 130, 265]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [45, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -30]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 255, 218, 295]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "GPe"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "input summation"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  Labels		  [1, 0]
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel2"
	      Ports		      [3, 1]
	      Position		      [342, 345, 398, 375]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel2"
		Location		[643, 601, 1046, 991]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [90, 55, 110, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [175, 55, 195, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [255, 55, 275, 75]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [3, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [733, 368, 1044, 669]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 155, 35, 175]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 230, 35, 250]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 140, 130, 190]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [65, 215, 130, 265]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -30]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [45, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 255, 218, 295]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  Labels		  [1, 0]
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "GPe"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "input summation"
		  DstPort		  3
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel3"
	      Ports		      [3, 1]
	      Position		      [457, 345, 513, 375]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel3"
		Location		[643, 601, 1046, 991]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [90, 55, 110, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [175, 55, 195, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [255, 55, 275, 75]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [3, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [733, 368, 1044, 669]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 155, 35, 175]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 230, 35, 250]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 140, 130, 190]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [65, 215, 130, 265]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [45, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -30]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 255, 218, 295]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "GPe"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "input summation"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  Labels		  [1, 0]
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel4"
	      Ports		      [3, 1]
	      Position		      [592, 345, 648, 375]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel4"
		Location		[643, 601, 1046, 991]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [90, 55, 110, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [175, 55, 195, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [255, 55, 275, 75]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [3, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [733, 368, 1044, 669]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 155, 35, 175]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 230, 35, 250]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 140, 130, 190]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [65, 215, 130, 265]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -30]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [45, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 255, 218, 295]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  Labels		  [1, 0]
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "GPe"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "input summation"
		  DstPort		  3
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel5"
	      Ports		      [3, 1]
	      Position		      [722, 345, 778, 375]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"2 input\nchannel5"
		Location		[643, 601, 1046, 991]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Striatum"
		  Position		  [90, 55, 110, 75]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "STN"
		  Position		  [175, 55, 195, 75]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [255, 55, 275, 75]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [3, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [733, 368, 1044, 669]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 155, 35, 175]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 230, 35, 250]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_str"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 140, 130, 190]
		    Gain		    "W_STN"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [65, 215, 130, 265]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [45, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -30]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [170, 175, 200, 225]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [152, 255, 218, 295]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "GPe"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "input summation"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  Labels		  [1, 0]
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Striatum"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "STN"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux"
	      Ports		      [1, 6]
	      Position		      [202, 80, 268, 120]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux1"
	      Ports		      [1, 6]
	      Position		      [505, 65, 575, 105]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux2"
	      Ports		      [1, 6]
	      Position		      [363, 85, 427, 125]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [6, 1]
	      Position		      [377, 435, 478, 480]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Inputs		      "6"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [6, 1]
	      Position		      [507, 150, 573, 185]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Inputs		      "++++++"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      Position		      [420, 500, 440, 520]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel2"
	      SrcPort		      1
	      Points		      [0, 15; 50, 0]
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel1"
	      SrcPort		      1
	      Points		      [0, 30; 165, 0]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel"
	      SrcPort		      1
	      Points		      [0, 40]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "GPe"
	      SrcPort		      1
	      DstBlock		      "Demux2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      1
	      Points		      [0, 155; -245, 0]
	      DstBlock		      "2 input\nchannel"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      2
	      Points		      [0, 165; -120, 0]
	      DstBlock		      "2 input\nchannel1"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      3
	      DstBlock		      "2 input\nchannel2"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      2
	      DstBlock		      "2 input\nchannel1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      1
	      Points		      [0, 50; -125, 0]
	      DstBlock		      "2 input\nchannel"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Striatum"
	      SrcPort		      1
	      DstBlock		      "Demux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      3
	      Points		      [0, 135; 120, 0]
	      DstBlock		      "2 input\nchannel2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      4
	      Points		      [0, 125; 225, 0]
	      DstBlock		      "2 input\nchannel3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      5
	      Points		      [0, 115; 350, 0]
	      DstBlock		      "2 input\nchannel4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      6
	      Points		      [0, 105; 470, 0]
	      DstBlock		      "2 input\nchannel5"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      4
	      Points		      [0, 165; 105, 0]
	      DstBlock		      "2 input\nchannel3"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      5
	      Points		      [0, 155; 230, 0]
	      DstBlock		      "2 input\nchannel4"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      2
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      3
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      4
	      DstBlock		      "Sum"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      5
	      DstBlock		      "Sum"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      6
	      DstBlock		      "Sum"
	      DstPort		      6
	    }
	    Line {
	      SrcBlock		      "STN"
	      SrcPort		      1
	      DstBlock		      "Demux1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [0, 130]
	      Branch {
		Points			[-55, 0]
		Branch {
		  Points		  [-120, 0]
		  Branch {
		    Points		    [-125, 0]
		    Branch {
		    Points		    [-135, 0]
		    DstBlock		    "2 input\nchannel"
		    DstPort		    2
		    }
		    Branch {
		    DstBlock		    "2 input\nchannel1"
		    DstPort		    2
		    }
		  }
		  Branch {
		    Points		    [5, 0]
		    DstBlock		    "2 input\nchannel2"
		    DstPort		    2
		  }
		}
		Branch {
		  DstBlock		  "2 input\nchannel3"
		  DstPort		  2
		}
	      }
	      Branch {
		Points			[80, 0]
		Branch {
		  DstBlock		  "2 input\nchannel4"
		  DstPort		  2
		}
		Branch {
		  Points		  [130, 0]
		  DstBlock		  "2 input\nchannel5"
		  DstPort		  2
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      6
	      Points		      [0, 90; 350, 0]
	      DstBlock		      "2 input\nchannel5"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel3"
	      SrcPort		      1
	      Points		      [0, 15; -50, 0]
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel4"
	      SrcPort		      1
	      Points		      [0, 30; -170, 0]
	      DstBlock		      "Mux"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel5"
	      SrcPort		      1
	      Points		      [0, 40]
	      DstBlock		      "Mux"
	      DstPort		      6
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "STN"
	  Ports			  [3, 1]
	  Position		  [297, 215, 373, 265]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  DropShadow		  on
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "STN"
	    Location		    [201, 256, 710, 631]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "saliences"
	      Position		      [65, 15, 95, 30]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "GPe"
	      Position		      [195, 20, 235, 35]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      NamePlacement	      "alternate"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "cortex"
	      Position		      [300, 20, 330, 35]
	      Orientation	      "down"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "STN\ndiscrete\nmodel"
	      Ports		      [3, 1]
	      Position		      [63, 90, 137, 130]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      DropShadow	      on
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskType		      "STN"
	      MaskDescription	      "3 channel GPe"
	      MaskPromptString	      "weight from salience|weight from Cortex"
"|weight from GPe(inhib.)|membrane decay rate|output slope|output thresh"
	      MaskStyleString	      "edit,edit,edit,edit,edit,edit"
	      MaskTunableValueString  "on,on,on,on,on,on"
	      MaskCallbackString      "|||||"
	      MaskEnableString	      "on,on,on,on,on,on"
	      MaskVisibilityString    "on,on,on,on,on,on"
	      MaskToolTipString	      "on,on,on,on,on,on"
	      MaskVarAliasString      ",,,,,"
	      MaskVariables	      "W_sal=@1;W_Ctx=@2;W_GPe=@3;A_rate=@4;sl"
"ope=@5;thresh=@6;"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      MaskValueString	      "0.5|0.5|-1|25|1|-0.25"
	      MaskTabNameString	      ",,,,,"
	      System {
		Name			"STN\ndiscrete\nmodel"
		Location		[63, 122, 892, 580]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Saliences"
		  Position		  [200, 15, 220, 35]
		  Orientation		  "down"
		  ForegroundColor	  "red"
		  BackgroundColor	  "orange"
		  NamePlacement		  "alternate"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [365, 20, 385, 40]
		  Orientation		  "down"
		  ForegroundColor	  "blue"
		  BackgroundColor	  "lightBlue"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Cortex"
		  Position		  [555, 20, 575, 40]
		  Orientation		  "down"
		  BackgroundColor	  "orange"
		  NamePlacement		  "alternate"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "2 input\nchannel"
		  Ports			  [3, 1]
		  Position		  [72, 230, 128, 260]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "2 input\nchannel"
		    Location		    [393, 241, 796, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Salience"
		    Position		    [90, 55, 110, 75]
		    Orientation		    "down"
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "GPe"
		    Position		    [190, 50, 210, 70]
		    Orientation		    "down"
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "Cortex"
		    Position		    [265, 55, 285, 75]
		    Orientation		    "down"
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "input summation"
		    Ports		    [3, 1]
		    Position		    [143, 105, 227, 135]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "input summation"
		    Location		    [322, 330, 633, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 245, 35, 265]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_sal"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [70, 230, 135, 280]
		    Gain		    "W_Ctx"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -55]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [40, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		    }
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "leaky integration"
		    Ports		    [1, 1]
		    Position		    [170, 175, 200, 225]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    }
		    }
		    Block {
		    BlockType		    "S-Function"
		    Name		    "piecewise lin."
		    Ports		    [1, 1]
		    Position		    [152, 255, 218, 295]
		    Orientation		    "down"
		    FunctionName	    "Mpieclin"
		    Parameters		    "slope,thresh"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out"
		    Position		    [175, 330, 195, 350]
		    Orientation		    "down"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "piecewise lin."
		    SrcPort		    1
		    DstBlock		    "out"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "GPe"
		    SrcPort		    1
		    Points		    [0, 15]
		    DstBlock		    "input summation"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "Salience"
		    SrcPort		    1
		    DstBlock		    "input summation"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "leaky integration"
		    SrcPort		    1
		    DstBlock		    "piecewise lin."
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "input summation"
		    SrcPort		    1
		    DstBlock		    "leaky integration"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Cortex"
		    SrcPort		    1
		    Points		    [0, 10]
		    DstBlock		    "input summation"
		    DstPort		    3
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "2 input\nchannel1"
		  Ports			  [3, 1]
		  Position		  [187, 230, 243, 260]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "2 input\nchannel1"
		    Location		    [393, 241, 796, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Salience"
		    Position		    [90, 55, 110, 75]
		    Orientation		    "down"
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "GPe"
		    Position		    [190, 50, 210, 70]
		    Orientation		    "down"
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "Cortex"
		    Position		    [265, 55, 285, 75]
		    Orientation		    "down"
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "input summation"
		    Ports		    [3, 1]
		    Position		    [143, 105, 227, 135]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "input summation"
		    Location		    [322, 330, 633, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 245, 35, 265]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_sal"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [70, 230, 135, 280]
		    Gain		    "W_Ctx"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [40, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -55]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    }
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "leaky integration"
		    Ports		    [1, 1]
		    Position		    [170, 175, 200, 225]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    }
		    }
		    Block {
		    BlockType		    "S-Function"
		    Name		    "piecewise lin."
		    Ports		    [1, 1]
		    Position		    [152, 255, 218, 295]
		    Orientation		    "down"
		    FunctionName	    "Mpieclin"
		    Parameters		    "slope,thresh"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out"
		    Position		    [175, 330, 195, 350]
		    Orientation		    "down"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Cortex"
		    SrcPort		    1
		    Points		    [0, 10]
		    DstBlock		    "input summation"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "input summation"
		    SrcPort		    1
		    DstBlock		    "leaky integration"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "leaky integration"
		    SrcPort		    1
		    DstBlock		    "piecewise lin."
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Salience"
		    SrcPort		    1
		    DstBlock		    "input summation"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "GPe"
		    SrcPort		    1
		    Points		    [0, 15]
		    DstBlock		    "input summation"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "piecewise lin."
		    SrcPort		    1
		    DstBlock		    "out"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "2 input\nchannel2"
		  Ports			  [3, 1]
		  Position		  [307, 230, 363, 260]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "2 input\nchannel2"
		    Location		    [393, 241, 796, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Salience"
		    Position		    [90, 55, 110, 75]
		    Orientation		    "down"
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "GPe"
		    Position		    [190, 50, 210, 70]
		    Orientation		    "down"
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "Cortex"
		    Position		    [265, 55, 285, 75]
		    Orientation		    "down"
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "input summation"
		    Ports		    [3, 1]
		    Position		    [143, 105, 227, 135]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "input summation"
		    Location		    [322, 330, 633, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 245, 35, 265]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_sal"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [70, 230, 135, 280]
		    Gain		    "W_Ctx"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -55]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [40, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		    }
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "leaky integration"
		    Ports		    [1, 1]
		    Position		    [170, 175, 200, 225]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    }
		    }
		    Block {
		    BlockType		    "S-Function"
		    Name		    "piecewise lin."
		    Ports		    [1, 1]
		    Position		    [152, 255, 218, 295]
		    Orientation		    "down"
		    FunctionName	    "Mpieclin"
		    Parameters		    "slope,thresh"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out"
		    Position		    [175, 330, 195, 350]
		    Orientation		    "down"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "piecewise lin."
		    SrcPort		    1
		    DstBlock		    "out"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "GPe"
		    SrcPort		    1
		    Points		    [0, 15]
		    DstBlock		    "input summation"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "Salience"
		    SrcPort		    1
		    DstBlock		    "input summation"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "leaky integration"
		    SrcPort		    1
		    DstBlock		    "piecewise lin."
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "input summation"
		    SrcPort		    1
		    DstBlock		    "leaky integration"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Cortex"
		    SrcPort		    1
		    Points		    [0, 10]
		    DstBlock		    "input summation"
		    DstPort		    3
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "2 input\nchannel3"
		  Ports			  [3, 1]
		  Position		  [432, 230, 488, 260]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "2 input\nchannel3"
		    Location		    [393, 241, 796, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Salience"
		    Position		    [90, 55, 110, 75]
		    Orientation		    "down"
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "GPe"
		    Position		    [190, 50, 210, 70]
		    Orientation		    "down"
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "Cortex"
		    Position		    [265, 55, 285, 75]
		    Orientation		    "down"
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "input summation"
		    Ports		    [3, 1]
		    Position		    [143, 105, 227, 135]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "input summation"
		    Location		    [322, 330, 633, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 245, 35, 265]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_sal"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [70, 230, 135, 280]
		    Gain		    "W_Ctx"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [40, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -55]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    }
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "leaky integration"
		    Ports		    [1, 1]
		    Position		    [170, 175, 200, 225]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    }
		    }
		    Block {
		    BlockType		    "S-Function"
		    Name		    "piecewise lin."
		    Ports		    [1, 1]
		    Position		    [152, 255, 218, 295]
		    Orientation		    "down"
		    FunctionName	    "Mpieclin"
		    Parameters		    "slope,thresh"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out"
		    Position		    [175, 330, 195, 350]
		    Orientation		    "down"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Cortex"
		    SrcPort		    1
		    Points		    [0, 10]
		    DstBlock		    "input summation"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "input summation"
		    SrcPort		    1
		    DstBlock		    "leaky integration"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "leaky integration"
		    SrcPort		    1
		    DstBlock		    "piecewise lin."
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Salience"
		    SrcPort		    1
		    DstBlock		    "input summation"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "GPe"
		    SrcPort		    1
		    Points		    [0, 15]
		    DstBlock		    "input summation"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "piecewise lin."
		    SrcPort		    1
		    DstBlock		    "out"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "2 input\nchannel4"
		  Ports			  [3, 1]
		  Position		  [547, 230, 603, 260]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "2 input\nchannel4"
		    Location		    [393, 241, 796, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Salience"
		    Position		    [90, 55, 110, 75]
		    Orientation		    "down"
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "GPe"
		    Position		    [190, 50, 210, 70]
		    Orientation		    "down"
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "Cortex"
		    Position		    [265, 55, 285, 75]
		    Orientation		    "down"
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "input summation"
		    Ports		    [3, 1]
		    Position		    [143, 105, 227, 135]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "input summation"
		    Location		    [322, 330, 633, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 245, 35, 265]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_sal"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [70, 230, 135, 280]
		    Gain		    "W_Ctx"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -55]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [40, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		    }
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "leaky integration"
		    Ports		    [1, 1]
		    Position		    [170, 175, 200, 225]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    }
		    }
		    Block {
		    BlockType		    "S-Function"
		    Name		    "piecewise lin."
		    Ports		    [1, 1]
		    Position		    [152, 255, 218, 295]
		    Orientation		    "down"
		    FunctionName	    "Mpieclin"
		    Parameters		    "slope,thresh"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out"
		    Position		    [175, 330, 195, 350]
		    Orientation		    "down"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "piecewise lin."
		    SrcPort		    1
		    DstBlock		    "out"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "GPe"
		    SrcPort		    1
		    Points		    [0, 15]
		    DstBlock		    "input summation"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "Salience"
		    SrcPort		    1
		    DstBlock		    "input summation"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "leaky integration"
		    SrcPort		    1
		    DstBlock		    "piecewise lin."
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "input summation"
		    SrcPort		    1
		    DstBlock		    "leaky integration"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Cortex"
		    SrcPort		    1
		    Points		    [0, 10]
		    DstBlock		    "input summation"
		    DstPort		    3
		    }
		  }
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "2 input\nchannel5"
		  Ports			  [3, 1]
		  Position		  [667, 230, 723, 260]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "2 input\nchannel5"
		    Location		    [393, 241, 796, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Salience"
		    Position		    [90, 55, 110, 75]
		    Orientation		    "down"
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "GPe"
		    Position		    [190, 50, 210, 70]
		    Orientation		    "down"
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "Cortex"
		    Position		    [265, 55, 285, 75]
		    Orientation		    "down"
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "input summation"
		    Ports		    [3, 1]
		    Position		    [143, 105, 227, 135]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "input summation"
		    Location		    [322, 330, 633, 631]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "x1"
		    Position		    [15, 65, 35, 85]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 245, 35, 265]
		    Port		    "3"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    Inputs		    "+++"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_sal"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [70, 230, 135, 280]
		    Gain		    "W_Ctx"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [40, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "x3"
		    SrcPort		    1
		    DstBlock		    "W3"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "W2"
		    SrcPort		    1
		    Points		    [10, 0; 0, -55]
		    DstBlock		    "Sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "W1"
		    SrcPort		    1
		    Points		    [5, 0; 0, 40]
		    DstBlock		    "Sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x2"
		    SrcPort		    1
		    DstBlock		    "W2"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "x1"
		    SrcPort		    1
		    DstBlock		    "W1"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Sum"
		    SrcPort		    1
		    DstBlock		    "out_1"
		    DstPort		    1
		    }
		    }
		    }
		    Block {
		    BlockType		    SubSystem
		    Name		    "leaky integration"
		    Ports		    [1, 1]
		    Position		    [170, 175, 200, 225]
		    Orientation		    "down"
		    ShowPortLabels	    off
		    TreatAsAtomicUnit	    off
		    MinAlgLoopOccurrences   off
		    RTWSystemCode	    "Auto"
		    System {
		    Name		    "leaky integration"
		    Location		    [148, 591, 523, 783]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    }
		    }
		    Block {
		    BlockType		    "S-Function"
		    Name		    "piecewise lin."
		    Ports		    [1, 1]
		    Position		    [152, 255, 218, 295]
		    Orientation		    "down"
		    FunctionName	    "Mpieclin"
		    Parameters		    "slope,thresh"
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out"
		    Position		    [175, 330, 195, 350]
		    Orientation		    "down"
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Cortex"
		    SrcPort		    1
		    Points		    [0, 10]
		    DstBlock		    "input summation"
		    DstPort		    3
		    }
		    Line {
		    SrcBlock		    "input summation"
		    SrcPort		    1
		    DstBlock		    "leaky integration"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "leaky integration"
		    SrcPort		    1
		    DstBlock		    "piecewise lin."
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Salience"
		    SrcPort		    1
		    DstBlock		    "input summation"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "GPe"
		    SrcPort		    1
		    Points		    [0, 15]
		    DstBlock		    "input summation"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "piecewise lin."
		    SrcPort		    1
		    DstBlock		    "out"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux"
		  Ports			  [1, 6]
		  Position		  [173, 80, 247, 120]
		  Orientation		  "down"
		  ForegroundColor	  "red"
		  BackgroundColor	  "orange"
		  NamePlacement		  "alternate"
		  ShowName		  off
		  Outputs		  "6"
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux1"
		  Ports			  [1, 6]
		  Position		  [337, 70, 413, 110]
		  Orientation		  "down"
		  ForegroundColor	  "blue"
		  BackgroundColor	  "lightBlue"
		  NamePlacement		  "alternate"
		  ShowName		  off
		  Outputs		  "6"
		}
		Block {
		  BlockType		  Demux
		  Name			  "Demux2"
		  Ports			  [1, 6]
		  Position		  [528, 75, 602, 115]
		  Orientation		  "down"
		  BackgroundColor	  "orange"
		  NamePlacement		  "alternate"
		  ShowName		  off
		  Outputs		  "6"
		}
		Block {
		  BlockType		  Mux
		  Name			  "Mux"
		  Ports			  [6, 1]
		  Position		  [373, 340, 447, 380]
		  Orientation		  "down"
		  ForegroundColor	  "red"
		  BackgroundColor	  "orange"
		  NamePlacement		  "alternate"
		  ShowName		  off
		  Inputs		  "6"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Out"
		  Position		  [400, 410, 420, 430]
		  Orientation		  "down"
		  ForegroundColor	  "red"
		  BackgroundColor	  "orange"
		  NamePlacement		  "alternate"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  3
		  Points		  [0, 45; 110, 0]
		  DstBlock		  "2 input\nchannel2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  2
		  DstBlock		  "2 input\nchannel1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  1
		  Points		  [0, 15; -105, 0]
		  DstBlock		  "2 input\nchannel"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Saliences"
		  SrcPort		  1
		  DstBlock		  "Demux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Mux"
		  SrcPort		  1
		  DstBlock		  "Out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "2 input\nchannel2"
		  SrcPort		  1
		  Points		  [0, 30; 70, 0]
		  DstBlock		  "Mux"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "2 input\nchannel1"
		  SrcPort		  1
		  Points		  [0, 45; 180, 0]
		  DstBlock		  "Mux"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "2 input\nchannel"
		  SrcPort		  1
		  Points		  [0, 60]
		  DstBlock		  "Mux"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "2 input\nchannel3"
		  SrcPort		  1
		  Points		  [0, 30; -45, 0]
		  DstBlock		  "Mux"
		  DstPort		  4
		}
		Line {
		  SrcBlock		  "2 input\nchannel4"
		  SrcPort		  1
		  Points		  [0, 45; -150, 0]
		  DstBlock		  "Mux"
		  DstPort		  5
		}
		Line {
		  SrcBlock		  "2 input\nchannel5"
		  SrcPort		  1
		  Points		  [0, 60]
		  DstBlock		  "Mux"
		  DstPort		  6
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  4
		  Points		  [0, 35; 225, 0]
		  DstBlock		  "2 input\nchannel3"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  5
		  Points		  [0, 25; 330, 0]
		  DstBlock		  "2 input\nchannel4"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux"
		  SrcPort		  6
		  Points		  [0, 15; 440, 0]
		  DstBlock		  "2 input\nchannel5"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  1
		  Points		  [0, 60; -250, 0]
		  DstBlock		  "2 input\nchannel"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "GPe"
		  SrcPort		  1
		  DstBlock		  "Demux1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  2
		  Points		  [0, 65; -145, 0]
		  DstBlock		  "2 input\nchannel1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  3
		  Points		  [0, 70; -35, 0]
		  DstBlock		  "2 input\nchannel2"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  4
		  Points		  [0, 70; 80, 0]
		  DstBlock		  "2 input\nchannel3"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  5
		  Points		  [0, 65; 185, 0]
		  DstBlock		  "2 input\nchannel4"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Demux1"
		  SrcPort		  6
		  Points		  [0, 60; 295, 0]
		  DstBlock		  "2 input\nchannel5"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Cortex"
		  SrcPort		  1
		  DstBlock		  "Demux2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Demux2"
		  SrcPort		  1
		  Points		  [0, 65; -420, 0]
		  DstBlock		  "2 input\nchannel"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Demux2"
		  SrcPort		  2
		  Points		  [0, 70; -315, 0]
		  DstBlock		  "2 input\nchannel1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Demux2"
		  SrcPort		  3
		  Points		  [0, 75; -205, 0]
		  DstBlock		  "2 input\nchannel2"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Demux2"
		  SrcPort		  4
		  Points		  [0, 80; -90, 0]
		  DstBlock		  "2 input\nchannel3"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Demux2"
		  SrcPort		  5
		  Points		  [0, 95]
		  DstBlock		  "2 input\nchannel4"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Demux2"
		  SrcPort		  6
		  Points		  [0, 85; 125, 0]
		  DstBlock		  "2 input\nchannel5"
		  DstPort		  3
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [90, 260, 120, 275]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "GPe"
	      SrcPort		      1
	      Points		      [0, 15; -115, 0]
	      DstBlock		      "STN\ndiscrete\nmodel"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "saliences"
	      SrcPort		      1
	      Points		      [0, 10; -5, 0]
	      DstBlock		      "STN\ndiscrete\nmodel"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "STN\ndiscrete\nmodel"
	      SrcPort		      1
	      Points		      [0, 110]
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "cortex"
	      SrcPort		      1
	      Points		      [0, 35]
	      DstBlock		      "STN\ndiscrete\nmodel"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Striatum(D1)"
	  Ports			  [3, 1]
	  Position		  [128, 260, 192, 310]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  DropShadow		  on
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "Striatum (D1)"
	  MaskDescription	  "3 channel striatum - non-recurrent"
	  MaskPromptString	  "Salience input weight|Cortex input weight|m"
"embrane decay rate|output slope|output thresh"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskVariables		  "W_sal=@1;W_ctx=@2;A_rate=@3;slope=@4;thresh"
"=@5;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0.5|0.5|25|1|0.2"
	  MaskTabNameString	  ",,,,"
	  System {
	    Name		    "Striatum(D1)"
	    Location		    [18, 110, 914, 576]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Dopamine"
	      Position		      [170, 35, 190, 55]
	      Orientation	      "down"
	      BackgroundColor	      "yellow"
	      NamePlacement	      "alternate"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Ctx"
	      Position		      [485, 15, 505, 35]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Salience"
	      Position		      [715, 20, 735, 40]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux"
	      Ports		      [1, 6]
	      Position		      [457, 90, 533, 135]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux1"
	      Ports		      [1, 6]
	      Position		      [142, 95, 218, 140]
	      Orientation	      "down"
	      BackgroundColor	      "yellow"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux2"
	      Ports		      [1, 6]
	      Position		      [687, 85, 763, 130]
	      Orientation	      "down"
	      ForegroundColor	      "green"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [6, 1]
	      Position		      [441, 365, 534, 405]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      Inputs		      "6"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan1"
	      Ports		      [3, 1]
	      Position		      [202, 255, 258, 285]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan1"
		Location		[318, 83, 796, 544]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan2"
	      Ports		      [3, 1]
	      Position		      [302, 255, 358, 285]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan2"
		Location		[318, 83, 796, 544]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan3"
	      Ports		      [3, 1]
	      Position		      [402, 255, 458, 285]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan3"
		Location		[323, 106, 801, 567]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan4"
	      Ports		      [3, 1]
	      Position		      [502, 255, 558, 285]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan4"
		Location		[323, 106, 801, 567]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan5"
	      Ports		      [3, 1]
	      Position		      [607, 255, 663, 285]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan5"
		Location		[323, 106, 801, 567]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan6"
	      Ports		      [3, 1]
	      Position		      [702, 255, 758, 285]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan6"
		Location		[323, 106, 801, 567]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      Position		      [480, 440, 500, 460]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Ctx"
	      SrcPort		      1
	      DstBlock		      "Demux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "chan1"
	      SrcPort		      1
	      Points		      [0, 60]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "chan3"
	      SrcPort		      1
	      Points		      [0, 30; 50, 0]
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "chan2"
	      SrcPort		      1
	      Points		      [0, 45; 135, 0]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      2
	      Points		      [0, 25; -150, 0]
	      DstBlock		      "chan2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      3
	      Points		      [0, 35; -60, 0]
	      DstBlock		      "chan3"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      4
	      Points		      [0, 35; 30, 0]
	      DstBlock		      "chan4"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      5
	      Points		      [0, 25; 125, 0]
	      DstBlock		      "chan5"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      6
	      Points		      [0, 10; 210, 0]
	      DstBlock		      "chan6"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "chan4"
	      SrcPort		      1
	      Points		      [0, 30; -35, 0]
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "chan5"
	      SrcPort		      1
	      Points		      [0, 45; -125, 0]
	      DstBlock		      "Mux"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "chan6"
	      SrcPort		      1
	      Points		      [0, 60]
	      DstBlock		      "Mux"
	      DstPort		      6
	    }
	    Line {
	      SrcBlock		      "Dopamine"
	      SrcPort		      1
	      DstBlock		      "Demux1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      6
	      Points		      [0, 40; 505, 0]
	      DstBlock		      "chan6"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      5
	      Points		      [0, 50; 420, 0]
	      DstBlock		      "chan5"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      4
	      Points		      [0, 60; 325, 0]
	      DstBlock		      "chan4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      3
	      Points		      [0, 70; 235, 0]
	      DstBlock		      "chan3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      2
	      Points		      [0, 80; 145, 0]
	      DstBlock		      "chan2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      1
	      Points		      [0, 95]
	      DstBlock		      "chan1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Salience"
	      SrcPort		      1
	      DstBlock		      "Demux2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      2
	      Points		      [0, 55; -360, 0]
	      DstBlock		      "chan2"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      3
	      Points		      [0, 65; -270, 0]
	      DstBlock		      "chan3"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      4
	      Points		      [0, 75; -180, 0]
	      DstBlock		      "chan4"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      5
	      Points		      [0, 85; -85, 0]
	      DstBlock		      "chan5"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      6
	      DstBlock		      "chan6"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      1
	      Points		      [0, 15; -240, 0]
	      DstBlock		      "chan1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      1
	      Points		      [0, 45; -450, 0]
	      DstBlock		      "chan1"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Striatum(D2)"
	  Ports			  [3, 1]
	  Position		  [523, 255, 587, 305]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  DropShadow		  on
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "Striatum (D1)"
	  MaskDescription	  "3 channel striatum - non-recurrent"
	  MaskPromptString	  "Salience input weight|Cortex input weight|m"
"embrane decay rate|output slope|output thresh"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskVariables		  "W_sal=@1;W_ctx=@2;A_rate=@3;slope=@4;thresh"
"=@5;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "0.5|0.5|25|1|0.2"
	  MaskTabNameString	  ",,,,"
	  System {
	    Name		    "Striatum(D2)"
	    Location		    [28, 156, 924, 622]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Dopamine"
	      Position		      [170, 35, 190, 55]
	      Orientation	      "down"
	      BackgroundColor	      "yellow"
	      NamePlacement	      "alternate"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Ctx"
	      Position		      [485, 15, 505, 35]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Salience"
	      Position		      [715, 20, 735, 40]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux"
	      Ports		      [1, 6]
	      Position		      [457, 90, 533, 135]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux1"
	      Ports		      [1, 6]
	      Position		      [142, 95, 218, 140]
	      Orientation	      "down"
	      BackgroundColor	      "yellow"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux2"
	      Ports		      [1, 6]
	      Position		      [687, 85, 763, 130]
	      Orientation	      "down"
	      ForegroundColor	      "green"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [6, 1]
	      Position		      [441, 365, 534, 405]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      Inputs		      "6"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan1"
	      Ports		      [3, 1]
	      Position		      [202, 255, 258, 285]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan1"
		Location		[318, 83, 796, 544]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Inputs		  "+-"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan2"
	      Ports		      [3, 1]
	      Position		      [307, 255, 363, 285]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan2"
		Location		[318, 83, 796, 544]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Inputs		  "+-"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan3"
	      Ports		      [3, 1]
	      Position		      [402, 255, 458, 285]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan3"
		Location		[318, 83, 796, 544]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Inputs		  "+-"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan4"
	      Ports		      [3, 1]
	      Position		      [502, 255, 558, 285]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan4"
		Location		[318, 83, 796, 544]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Inputs		  "+-"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan5"
	      Ports		      [3, 1]
	      Position		      [607, 250, 663, 280]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan5"
		Location		[318, 83, 796, 544]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Inputs		  "+-"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "chan6"
	      Ports		      [3, 1]
	      Position		      [702, 255, 758, 285]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"chan6"
		Location		[318, 83, 796, 544]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "dopamine"
		  Position		  [190, 60, 210, 80]
		  Orientation		  "down"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "cortex"
		  Position		  [295, 15, 315, 35]
		  Orientation		  "down"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "salience"
		  Position		  [375, 15, 395, 35]
		  Orientation		  "down"
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [115, 60, 135, 80]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  ShowName		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [202, 195, 233, 230]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [142, 110, 173, 145]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Inputs		  "+-"
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [332, 130, 363, 165]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "leaky integration"
		  Ports			  [1, 1]
		  Position		  [205, 255, 235, 305]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  System {
		    Name		    "leaky integration"
		    Location		    [585, 188, 960, 380]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "Inport"
		    Position		    [25, 55, 45, 75]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    PortDimensions	    "1"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    IgnoreLimit		    off
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    IconDisplay		    "Port number"
		    BusOutputAsStruct	    off
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "decay const"
		    SrcPort		    1
		    Points		    [-50, 0; 0, -65]
		    DstBlock		    "sum"
		    DstPort		    2
		    }
		    Line {
		    SrcBlock		    "sum"
		    SrcPort		    1
		    DstBlock		    "Integrator"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Integrator"
		    SrcPort		    1
		    Points		    [10, 0]
		    Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		    }
		    }
		    Line {
		    SrcBlock		    "Inport"
		    SrcPort		    1
		    DstBlock		    "Gain"
		    DstPort		    1
		    }
		    Line {
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "sum"
		    DstPort		    1
		    }
		  }
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  "piecewise lin."
		  Ports			  [1, 1]
		  Position		  [187, 335, 253, 375]
		  Orientation		  "down"
		  FunctionName		  "Mpieclin"
		  Parameters		  "slope,thresh"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight"
		  Position		  [283, 70, 327, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_ctx"
		}
		Block {
		  BlockType		  Gain
		  Name			  "weight1"
		  Position		  [363, 70, 407, 110]
		  Orientation		  "down"
		  NamePlacement		  "alternate"
		  Gain			  "W_sal"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [210, 410, 230, 430]
		  Orientation		  "down"
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Product"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "dopamine"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  Points		  [0, 30]
		  DstBlock		  "Product"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "cortex"
		  SrcPort		  1
		  DstBlock		  "weight"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "salience"
		  SrcPort		  1
		  DstBlock		  "weight1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "weight1"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "Product"
		  DstPort		  2
		}
		Annotation {
		  Name			  "Dopamine \nmodulation"
		  Position		  [87, 108]
		}
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      Position		      [480, 440, 500, 460]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      1
	      Points		      [0, 45; -450, 0]
	      DstBlock		      "chan1"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      1
	      Points		      [0, 15; -240, 0]
	      DstBlock		      "chan1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      6
	      DstBlock		      "chan6"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      5
	      Points		      [0, 85; -85, 0]
	      DstBlock		      "chan5"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      4
	      Points		      [0, 75; -180, 0]
	      DstBlock		      "chan4"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      3
	      Points		      [0, 65; -270, 0]
	      DstBlock		      "chan3"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      2
	      Points		      [0, 55; -355, 0]
	      DstBlock		      "chan2"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Salience"
	      SrcPort		      1
	      DstBlock		      "Demux2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      1
	      Points		      [0, 95]
	      DstBlock		      "chan1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      2
	      Points		      [0, 80; 150, 0]
	      DstBlock		      "chan2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      3
	      Points		      [0, 70; 235, 0]
	      DstBlock		      "chan3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      4
	      Points		      [0, 60; 325, 0]
	      DstBlock		      "chan4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      5
	      Points		      [0, 50; 420, 0]
	      DstBlock		      "chan5"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      6
	      Points		      [0, 40; 505, 0]
	      DstBlock		      "chan6"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Dopamine"
	      SrcPort		      1
	      DstBlock		      "Demux1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "chan6"
	      SrcPort		      1
	      Points		      [0, 60]
	      DstBlock		      "Mux"
	      DstPort		      6
	    }
	    Line {
	      SrcBlock		      "chan5"
	      SrcPort		      1
	      Points		      [0, 50; -125, 0]
	      DstBlock		      "Mux"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "chan4"
	      SrcPort		      1
	      Points		      [0, 30; -35, 0]
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      6
	      Points		      [0, 10; 210, 0]
	      DstBlock		      "chan6"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      5
	      Points		      [0, 25; 125, 0]
	      DstBlock		      "chan5"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      4
	      Points		      [0, 35; 30, 0]
	      DstBlock		      "chan4"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      3
	      Points		      [0, 35; -60, 0]
	      DstBlock		      "chan3"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux"
	      SrcPort		      2
	      Points		      [0, 25; -145, 0]
	      DstBlock		      "chan2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "chan2"
	      SrcPort		      1
	      Points		      [0, 45; 130, 0]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "chan3"
	      SrcPort		      1
	      Points		      [0, 30; 50, 0]
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "chan1"
	      SrcPort		      1
	      Points		      [0, 60]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "Out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Ctx"
	      SrcPort		      1
	      DstBlock		      "Demux"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "To thalamus"
	  Position		  [255, 494, 290, 526]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "GPe"
	  SrcPort		  1
	  Points		  [0, 25; -85, 0]
	  Branch {
	    Points		    [0, -265]
	    DstBlock		    "STN"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [-40, 0]
	    Branch {
	      Points		      [-150, 0; 0, -65]
	      DstBlock		      "GPi"
	      DstPort		      3
	    }
	    Branch {
	      DstBlock		      "DiagnosticGPe"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Striatum(D2)"
	  SrcPort		  1
	  Points		  [0, 35]
	  Branch {
	    DstBlock		    "GPe"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Diagnostic\nStr(D2)"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "STN"
	  SrcPort		  1
	  Points		  [0, 15]
	  Branch {
	    Points		    [0, 15]
	    DstBlock		    "Diagnostic\nSTN"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 75; 50, 0]
	    Branch {
	      Points		      [130, 0]
	      DstBlock		      "GPe"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [-200, 0]
	      DstBlock		      "GPi"
	      DstPort		      2
	    }
	  }
	}
	Line {
	  SrcBlock		  "Striatum(D1)"
	  SrcPort		  1
	  Points		  [0, 50]
	  Branch {
	    DstBlock		    "GPi"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Diagnostic\nStr(D1)"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Dopamine"
	  SrcPort		  1
	  Points		  [0, 170]
	  DstBlock		  "Striatum(D1)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Dopamine"
	  SrcPort		  2
	  Points		  [0, 80; 460, 0]
	  DstBlock		  "Striatum(D2)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "GPi"
	  SrcPort		  1
	  Points		  [0, 15]
	  Branch {
	    DstBlock		    "DiagnosticGPi"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [55, 0]
	    DstBlock		    "To thalamus"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Salience"
	  SrcPort		  1
	  Points		  [0, 60]
	  Branch {
	    Points		    [-35, 0]
	    DstBlock		    "Striatum(D1)"
	    DstPort		    3
	  }
	  Branch {
	    Points		    [75, 0]
	    Branch {
	      Points		      [285, 0]
	      DstBlock		      "Striatum(D2)"
	      DstPort		      3
	    }
	    Branch {
	      Points		      [20, 0]
	      DstBlock		      "STN"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "From cortex"
	  SrcPort		  1
	  Points		  [0, 15]
	  Branch {
	    DstBlock		    "DiagnosticCx"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 55]
	    Branch {
	      Points		      [0, 20; -155, 0]
	      DstBlock		      "Striatum(D1)"
	      DstPort		      2
	    }
	    Branch {
	      Points		      [0, 20; 45, 0]
	      Branch {
		Points			[195, 0]
		DstBlock		"Striatum(D2)"
		DstPort			2
	      }
	      Branch {
		DstBlock		"STN"
		DstPort			3
	      }
	    }
	  }
	}
	Annotation {
	  Position		  [27, 45]
	  DropShadow		  on
	}
	Annotation {
	  Position		  [607, 293]
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Behaviour"
      Ports		      [1, 1]
      Position		      [180, 544, 230, 596]
      BackgroundColor	      "cyan"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Behaviour expression"
      MaskPromptString	      "GPi level for behav. on|GPi level for behav.  o"
"ff"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "on_thresh=@1;off_thresh=@2;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.025|0.1"
      MaskTabNameString	      ","
      System {
	Name			"Behaviour"
	Location		[527, 428, 848, 565]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "GPi1"
	  Position		  [15, 70, 35, 90]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [50, 15, 70, 35]
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay"
	  Position		  [165, 45, 195, 75]
	  OnSwitchValue		  "1 - on_thresh"
	  OffSwitchValue	  "1 - off_thresh"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [110, 42, 140, 73]
	  Inputs		  "+-"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [255, 50, 275, 70]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Relay"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "GPi1"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Relay"
	  SrcPort		  1
	  DstBlock		  "Out"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Goto
      Name		      "Diagnostic\nBehaviour"
      Position		      [315, 557, 370, 583]
      BackgroundColor	      "cyan"
      DropShadow	      on
      NamePlacement	      "alternate"
      GotoTag		      "Behav"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Diagnostics"
      Ports		      []
      Position		      [30, 20, 89, 49]
      BackgroundColor	      "green"
      DropShadow	      on
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Diagnostics"
	Location		[244, 157, 1035, 867]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 6]
	  Position		  [66, 90, 124, 130]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux1"
	  Ports			  [1, 6]
	  Position		  [417, 85, 493, 120]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux2"
	  Ports			  [1, 6]
	  Position		  [71, 450, 129, 490]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux3"
	  Ports			  [1, 6]
	  Position		  [422, 445, 498, 480]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux4"
	  Ports			  [1, 6]
	  Position		  [201, 90, 259, 130]
	  Orientation		  "down"
	  ForegroundColor	  "orange"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  From
	  Name			  "From"
	  Position		  [80, 25, 110, 55]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "Ctx"
	}
	Block {
	  BlockType		  From
	  Name			  "From1"
	  Position		  [440, 15, 470, 45]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "GPi"
	}
	Block {
	  BlockType		  From
	  Name			  "From2"
	  Position		  [215, 25, 245, 55]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "Sal"
	}
	Block {
	  BlockType		  From
	  Name			  "From3"
	  Position		  [605, 55, 635, 85]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "GPe"
	}
	Block {
	  BlockType		  From
	  Name			  "From4"
	  Position		  [725, 210, 755, 240]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "StrD2"
	}
	Block {
	  BlockType		  From
	  Name			  "From5"
	  Position		  [720, 55, 750, 85]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "StrD1"
	}
	Block {
	  BlockType		  From
	  Name			  "From6"
	  Position		  [605, 205, 635, 235]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "STN"
	}
	Block {
	  BlockType		  From
	  Name			  "From7"
	  Position		  [670, 560, 700, 590]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "Behav"
	}
	Block {
	  BlockType		  From
	  Name			  "From8"
	  Position		  [445, 390, 475, 420]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "Thal"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 1"
	  Ports			  [1]
	  Position		  [70, 315, 100, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [6, 572, 302, 873]
	  Open			  on
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "1"
	  SaveToWorkspace	  on
	  SaveName		  "GPic1_6"
	  DataFormat		  "Array"
	  MaxDataPoints		  "7000"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 2"
	  Ports			  [1]
	  Position		  [150, 315, 180, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [328, 575, 625, 876]
	  Open			  on
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "1"
	  SaveToWorkspace	  on
	  SaveName		  "GPic2_6"
	  DataFormat		  "Array"
	  MaxDataPoints		  "7000"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 3"
	  Ports			  [1]
	  Position		  [230, 315, 260, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [101, 485, 445, 762]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "1"
	  SaveToWorkspace	  on
	  SaveName		  "GPic3_6"
	  DataFormat		  "Array"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 4"
	  Ports			  [1]
	  Position		  [320, 315, 350, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [57, 445, 401, 722]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveName		  "GPic4_6"
	  DataFormat		  "Array"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 5"
	  Ports			  [1]
	  Position		  [400, 315, 430, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [425, 438, 769, 715]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveName		  "GPi3full"
	  DataFormat		  "Array"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 6"
	  Ports			  [1]
	  Position		  [480, 315, 510, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [459, 425, 803, 702]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveName		  "GPi6full6"
	  DataFormat		  "Array"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [3, 1]
	  Position		  [61, 240, 109, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "3"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [3, 1]
	  Position		  [141, 240, 189, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "3"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux10"
	  Ports			  [2, 1]
	  Position		  [314, 600, 361, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux11"
	  Ports			  [2, 1]
	  Position		  [399, 600, 441, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux12"
	  Ports			  [2, 1]
	  Position		  [481, 600, 519, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux2"
	  Ports			  [3, 1]
	  Position		  [221, 240, 269, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "3"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux4"
	  Ports			  [2, 1]
	  Position		  [64, 600, 111, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux5"
	  Ports			  [2, 1]
	  Position		  [149, 600, 191, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux6"
	  Ports			  [2, 1]
	  Position		  [231, 600, 269, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux7"
	  Ports			  [3, 1]
	  Position		  [311, 240, 359, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "3"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux8"
	  Ports			  [3, 1]
	  Position		  [391, 240, 439, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "3"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux9"
	  Ports			  [3, 1]
	  Position		  [471, 240, 519, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "3"
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator"
	  Position		  [610, 125, 630, 145]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator1"
	  Position		  [675, 625, 695, 645]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator2"
	  Position		  [730, 285, 750, 305]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator3"
	  Position		  [725, 115, 745, 135]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator4"
	  Position		  [610, 275, 630, 295]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 1"
	  Ports			  [1]
	  Position		  [75, 675, 105, 705]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [484, 215, 804, 579]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "1"
	  SaveToWorkspace	  on
	  SaveName		  "gpe1"
	  DataFormat		  "Array"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 2"
	  Ports			  [1]
	  Position		  [155, 670, 185, 700]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [452, 357, 809, 650]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveToWorkspace	  on
	  SaveName		  "gpe2"
	  DataFormat		  "Array"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 3"
	  Ports			  [1]
	  Position		  [235, 670, 265, 700]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [260, 398, 584, 675]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveName		  "ch3"
	  DataFormat		  "Array"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 4"
	  Ports			  [1]
	  Position		  [325, 675, 355, 705]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [48, 741, 392, 1018]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveName		  "ch4"
	  DataFormat		  "Array"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 5"
	  Ports			  [1]
	  Position		  [405, 675, 435, 705]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [80, 443, 424, 720]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveName		  "ch5"
	  DataFormat		  "Array"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 6"
	  Ports			  [1]
	  Position		  [485, 675, 515, 705]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Location		  [48, 485, 392, 762]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveName		  "ch6"
	  DataFormat		  "Array"
	}
	Line {
	  SrcBlock		  "From8"
	  SrcPort		  1
	  DstBlock		  "Demux3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "GPi ch 1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [0, 80; 70, 0]
	  DstBlock		  "Mux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux1"
	  SrcPort		  1
	  DstBlock		  "GPi ch 2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux2"
	  SrcPort		  1
	  DstBlock		  "GPi ch 3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  Points		  [0, 75; 140, 0]
	  DstBlock		  "Mux2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  4
	  Points		  [0, 70; 220, 0]
	  DstBlock		  "Mux7"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  5
	  Points		  [0, 65; 290, 0]
	  DstBlock		  "Mux8"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  6
	  Points		  [0, 60; 360, 0]
	  DstBlock		  "Mux9"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  3
	  Points		  [0, 35; -205, 0]
	  DstBlock		  "Mux2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "From1"
	  SrcPort		  1
	  DstBlock		  "Demux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  1
	  Points		  [0, 55; -345, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  2
	  Points		  [0, 45; -275, 0]
	  DstBlock		  "Mux1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  4
	  Points		  [0, 90; -125, 0]
	  DstBlock		  "Mux7"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  5
	  Points		  [0, 100]
	  DstBlock		  "Mux8"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  6
	  Points		  [0, 100]
	  DstBlock		  "Mux9"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Mux7"
	  SrcPort		  1
	  DstBlock		  "GPi ch 4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux8"
	  SrcPort		  1
	  DstBlock		  "GPi ch 5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux9"
	  SrcPort		  1
	  DstBlock		  "GPi ch 6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From"
	  SrcPort		  1
	  Points		  [0, 5]
	  Branch {
	    DstBlock		    "Demux"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [-90, 0; 0, 355; 95, 0]
	    DstBlock		    "Demux2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Mux4"
	  SrcPort		  1
	  DstBlock		  "ch 1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  1
	  DstBlock		  "Mux4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  2
	  Points		  [0, 80; 75, 0]
	  DstBlock		  "Mux5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux5"
	  SrcPort		  1
	  DstBlock		  "ch 2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux6"
	  SrcPort		  1
	  DstBlock		  "ch 3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  3
	  Points		  [0, 75; 145, 0]
	  DstBlock		  "Mux6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  4
	  Points		  [0, 70; 220, 0]
	  DstBlock		  "Mux10"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  5
	  Points		  [0, 65; 295, 0]
	  DstBlock		  "Mux11"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  6
	  Points		  [0, 60; 365, 0]
	  DstBlock		  "Mux12"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux3"
	  SrcPort		  3
	  Points		  [0, 35; -195, 0]
	  DstBlock		  "Mux6"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux3"
	  SrcPort		  1
	  Points		  [0, 55; -335, 0]
	  DstBlock		  "Mux4"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux3"
	  SrcPort		  2
	  Points		  [0, 45; -265, 0]
	  DstBlock		  "Mux5"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux3"
	  SrcPort		  4
	  Points		  [0, 90; -115, 0]
	  DstBlock		  "Mux10"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux3"
	  SrcPort		  5
	  Points		  [0, 100]
	  DstBlock		  "Mux11"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux3"
	  SrcPort		  6
	  Points		  [0, 100]
	  DstBlock		  "Mux12"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Mux10"
	  SrcPort		  1
	  DstBlock		  "ch 4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux11"
	  SrcPort		  1
	  DstBlock		  "ch 5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux12"
	  SrcPort		  1
	  DstBlock		  "ch 6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From2"
	  SrcPort		  1
	  DstBlock		  "Demux4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux4"
	  SrcPort		  1
	  Points		  [0, 90]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Demux4"
	  SrcPort		  2
	  Points		  [0, 85; -35, 0]
	  DstBlock		  "Mux1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Demux4"
	  SrcPort		  3
	  Points		  [0, 90]
	  DstBlock		  "Mux2"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Demux4"
	  SrcPort		  4
	  Points		  [0, 80; 115, 0]
	  DstBlock		  "Mux7"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Demux4"
	  SrcPort		  5
	  Points		  [0, 70; 185, 0]
	  DstBlock		  "Mux8"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Demux4"
	  SrcPort		  6
	  Points		  [0, 55; 255, 0]
	  DstBlock		  "Mux9"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "From3"
	  SrcPort		  1
	  DstBlock		  "Terminator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From7"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Terminator1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From4"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Terminator2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From5"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Terminator3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From6"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Terminator4"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      From
      Name		      "From"
      Position		      [125, 555, 155, 585]
      BackgroundColor	      "cyan"
      CloseFcn		      "tagdialog Close"
      GotoTag		      "GPi"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto"
      Position		      [450, 145, 480, 175]
      GotoTag		      "Thal"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "Goto1"
      Position		      [55, 155, 85, 185]
      Orientation	      "left"
      GotoTag		      "Sal"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Motor \nCortex"
      Ports		      [2, 1]
      Position		      [138, 210, 202, 260]
      Orientation	      "down"
      ForegroundColor	      "blue"
      BackgroundColor	      "lightBlue"
      DropShadow	      on
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Cortex"
      MaskDescription	      "3 channel striatum - non-recurrent"
      MaskPromptString	      "Thalamus input weight|Salience input weight|mem"
"brane decay rate|output slope|output thresh"
      MaskStyleString	      "edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on"
      MaskCallbackString      "||||"
      MaskEnableString	      "on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on"
      MaskVarAliasString      ",,,,"
      MaskVariables	      "W_Thal=@1;W_Sal=@2;A_rate=@3;slope=@4;thresh=@5"
";"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1|1|25|1|0"
      MaskTabNameString	      ",,,,"
      System {
	Name			"Motor \nCortex"
	Location		[23, 82, 873, 604]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Salience"
	  Position		  [170, 35, 190, 55]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  NamePlacement		  "alternate"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Thalamus"
	  Position		  [485, 15, 505, 35]
	  Orientation		  "down"
	  BackgroundColor	  "yellow"
	  NamePlacement		  "alternate"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 6]
	  Position		  [457, 90, 533, 135]
	  Orientation		  "down"
	  BackgroundColor	  "yellow"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux1"
	  Ports			  [1, 6]
	  Position		  [142, 95, 218, 140]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [6, 1]
	  Position		  [441, 380, 534, 420]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Inputs		  "6"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan1"
	  Ports			  [2, 1]
	  Position		  [207, 260, 263, 290]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan1"
	    Location		    [205, 82, 683, 540]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Salience"
	      Position		      [160, 55, 180, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      PortDimensions	      "1"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [300, 50, 320, 70]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [222, 190, 253, 225]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [225, 250, 255, 300]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[585, 188, 960, 380]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin.1"
	      Ports		      [1, 1]
	      Position		      [207, 345, 273, 385]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [281, 105, 339, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [140, 105, 200, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Sal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [230, 425, 250, 445]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Salience"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin.1"
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin.1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan2"
	  Ports			  [2, 1]
	  Position		  [327, 260, 383, 290]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan2"
	    Location		    [205, 82, 683, 540]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Salience"
	      Position		      [160, 55, 180, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      PortDimensions	      "1"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [300, 50, 320, 70]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [222, 190, 253, 225]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [225, 250, 255, 300]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[585, 188, 960, 380]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin.1"
	      Ports		      [1, 1]
	      Position		      [207, 345, 273, 385]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [281, 105, 339, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [140, 105, 200, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Sal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [230, 425, 250, 445]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin.1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin.1"
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Salience"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan3"
	  Ports			  [2, 1]
	  Position		  [422, 260, 478, 290]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan3"
	    Location		    [205, 82, 683, 540]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Salience"
	      Position		      [160, 55, 180, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      PortDimensions	      "1"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [300, 50, 320, 70]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [222, 190, 253, 225]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [225, 250, 255, 300]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[585, 188, 960, 380]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin.1"
	      Ports		      [1, 1]
	      Position		      [207, 345, 273, 385]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [281, 105, 339, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [140, 105, 200, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Sal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [230, 425, 250, 445]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Salience"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin.1"
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin.1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan4"
	  Ports			  [2, 1]
	  Position		  [537, 255, 593, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan4"
	    Location		    [205, 82, 683, 540]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Salience"
	      Position		      [160, 55, 180, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      PortDimensions	      "1"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [300, 50, 320, 70]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [222, 190, 253, 225]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [225, 250, 255, 300]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[585, 188, 960, 380]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin.1"
	      Ports		      [1, 1]
	      Position		      [207, 345, 273, 385]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [281, 105, 339, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [140, 105, 200, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Sal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [230, 425, 250, 445]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin.1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin.1"
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Salience"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan5"
	  Ports			  [2, 1]
	  Position		  [637, 250, 693, 280]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan5"
	    Location		    [205, 82, 683, 540]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Salience"
	      Position		      [160, 55, 180, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      PortDimensions	      "1"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [300, 50, 320, 70]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [222, 190, 253, 225]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [225, 250, 255, 300]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[585, 188, 960, 380]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin.1"
	      Ports		      [1, 1]
	      Position		      [207, 345, 273, 385]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [281, 105, 339, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [140, 105, 200, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Sal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [230, 425, 250, 445]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Salience"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin.1"
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin.1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan6"
	  Ports			  [2, 1]
	  Position		  [732, 250, 788, 280]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan6"
	    Location		    [205, 82, 683, 540]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Salience"
	      Position		      [160, 55, 180, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      PortDimensions	      "1"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [300, 50, 320, 70]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [222, 190, 253, 225]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [225, 250, 255, 300]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[585, 188, 960, 380]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin.1"
	      Ports		      [1, 1]
	      Position		      [207, 345, 273, 385]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [281, 105, 339, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [140, 105, 200, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Sal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [230, 425, 250, 445]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin.1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin.1"
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 25]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Salience"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [480, 440, 500, 460]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  1
	  Points		  [0, 95; 65, 0]
	  DstBlock		  "chan1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  2
	  Points		  [0, 80; 175, 0]
	  DstBlock		  "chan2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  3
	  Points		  [0, 70; 260, 0]
	  DstBlock		  "chan3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  4
	  Points		  [0, 60; 365, 0]
	  DstBlock		  "chan4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  5
	  Points		  [0, 50; 455, 0]
	  DstBlock		  "chan5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  6
	  Points		  [0, 40; 540, 0]
	  DstBlock		  "chan6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Salience"
	  SrcPort		  1
	  DstBlock		  "Demux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "chan6"
	  SrcPort		  1
	  Points		  [0, 80]
	  DstBlock		  "Mux"
	  DstPort		  6
	}
	Line {
	  SrcBlock		  "chan5"
	  SrcPort		  1
	  Points		  [0, 50; -155, 0]
	  DstBlock		  "Mux"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "chan4"
	  SrcPort		  1
	  Points		  [0, 30; -70, 0]
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  6
	  Points		  [0, 10; 255, 0]
	  DstBlock		  "chan6"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  5
	  Points		  [0, 25; 170, 0]
	  DstBlock		  "chan5"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  4
	  Points		  [0, 35; 80, 0]
	  DstBlock		  "chan4"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  Points		  [0, 35; -25, 0]
	  DstBlock		  "chan3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [0, 25; -110, 0]
	  DstBlock		  "chan2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [0, 15; -220, 0]
	  DstBlock		  "chan1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "chan2"
	  SrcPort		  1
	  Points		  [0, 40; 110, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "chan3"
	  SrcPort		  1
	  Points		  [0, 25; 30, 0]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Out"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Thalamus"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "chan1"
	  SrcPort		  1
	  Points		  [0, 70]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Saliences"
      Ports		      [0, 1]
      Position		      [117, 90, 193, 140]
      Orientation	      "down"
      ForegroundColor	      "red"
      BackgroundColor	      "orange"
      DropShadow	      on
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Saliences"
	Location		[594, 501, 970, 812]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Constant
	  Name			  "Do left"
	  Position		  [185, 90, 205, 110]
	  Orientation		  "down"
	  BackgroundColor	  "yellow"
	  NamePlacement		  "alternate"
	  Value			  "0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Salience\n(simple)"
	  Ports			  [0, 1]
	  Position		  [238, 55, 302, 100]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  DropShadow		  on
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Salience\n(simple)"
	    Location		    [159, 196, 502, 413]
	    Open		    on
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      DiscretePulseGenerator
	      Name		      "Saliences"
	      Ports		      [0, 1]
	      Position		      [30, 25, 60, 55]
	      Orientation	      "down"
	      PulseType		      "Time based"
	      Amplitude		      "[0.4 0.42 0.0 0.0 0.0 0.0]"
	      Period		      "10"
	      PulseWidth	      "[90 90 90 90 90 90]"
	      PhaseDelay	      "[1 1 4 3 3 4]"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [80, 120, 115, 155]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      DiscretePulseGenerator
	      Name		      "Transients"
	      Ports		      [0, 1]
	      Position		      [200, 35, 230, 65]
	      Orientation	      "down"
	      PulseType		      "Time based"
	      Amplitude		      "[0.2 0.0 0 0 0 0]"
	      Period		      "10"
	      PulseWidth	      "[10 30 10 10 10 10]"
	      PhaseDelay	      "[4 5 10 10 10 10]"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [90, 190, 110, 210]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      Points		      [175, 65; 0, 40]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [0, 0]
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Saliences"
	      SrcPort		      1
	      Points		      [0, 45]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [180, 155, 210, 185]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  NamePlacement		  "alternate"
	  Threshold		  "0.5"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "step pairs"
	  Ports			  [0, 1]
	  Position		  [68, 55, 132, 100]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  DropShadow		  on
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "step pairs"
	    Location		    [179, 117, 544, 430]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [295, 25, 315, 45]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Value		      "[0 0 0 0 ]"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant1"
	      Position		      [85, 20, 105, 40]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Value		      "0.4"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [3, 1]
	      Position		      [112, 155, 148, 195]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "3"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Repeating\nSequence"
	      Ports		      [0, 1]
	      Position		      [190, 20, 220, 50]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      SourceBlock	      "simulink/Sources/Repeating\nSequence"
	      SourceType	      "Repeating table"
	      ShowPortLabels	      on
	      rep_seq_t		      "[0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4 4.5 5]"
	      rep_seq_y		      "[0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 "
"1]"
	    }
	    Block {
	      BlockType		      Scope
	      Name		      "Scope"
	      Ports		      [1]
	      Position		      [180, 185, 210, 215]
	      Location		      [47, 396, 371, 635]
	      Open		      off
	      NumInputPorts	      "1"
	      TickLabels	      "on"
	      List {
		ListType		AxesTitles
		axes1			"%<SignalLabel>"
	      }
	      DataFormat	      "Array"
	    }
	    Block {
	      BlockType		      ZeroOrderHold
	      Name		      "Zero-Order\nHold"
	      Position		      [190, 80, 220, 110]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      SampleTime	      "0.5"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [70, 240, 90, 260]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      Points		      [0, 0]
	      Branch {
		Points			[0, 25]
		DstBlock		"out"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Scope"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      Points		      [0, 90]
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Repeating\nSequence"
	      SrcPort		      1
	      DstBlock		      "Zero-Order\nHold"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Zero-Order\nHold"
	      SrcPort		      1
	      Points		      [0, 15; -75, 0]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Constant1"
	      SrcPort		      1
	      Points		      [0, 95]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [180, 240, 210, 255]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Salience\n(simple)"
	  SrcPort		  1
	  Points		  [0, 35]
	  DstBlock		  "Switch"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "step pairs"
	  SrcPort		  1
	  Points		  [0, 35]
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Do left"
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "TRN"
      Ports		      [2, 1]
      Position		      [285, 211, 345, 264]
      ForegroundColor	      "cyan"
      BackgroundColor	      "black"
      DropShadow	      on
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Thalamic Reticular Nucleus"
      MaskDescription	      "3 channel striatum - non-recurrent"
      MaskPromptString	      "Cortex input weight|Thalamus input weight|membr"
"ane decay rate|output slope|output thresh"
      MaskStyleString	      "edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on"
      MaskCallbackString      "||||"
      MaskEnableString	      "on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on"
      MaskVarAliasString      ",,,,"
      MaskVariables	      "W_Ctx=@1;W_Thal=@2;A_rate=@3;slope=@4;thresh=@5"
";"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1|1|25|1|0"
      MaskTabNameString	      ",,,,"
      System {
	Name			"TRN"
	Location		[26, 121, 922, 622]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Thalamus"
	  Position		  [160, 25, 180, 45]
	  Orientation		  "down"
	  ForegroundColor	  "yellow"
	  BackgroundColor	  "black"
	  NamePlacement		  "alternate"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Cortex"
	  Position		  [485, 15, 505, 35]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 6]
	  Position		  [457, 90, 533, 135]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux1"
	  Ports			  [1, 6]
	  Position		  [132, 95, 208, 140]
	  Orientation		  "down"
	  ForegroundColor	  "yellow"
	  BackgroundColor	  "black"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [6, 1]
	  Position		  [441, 365, 534, 405]
	  Orientation		  "down"
	  ForegroundColor	  "cyan"
	  BackgroundColor	  "black"
	  NamePlacement		  "alternate"
	  Inputs		  "6"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan1"
	  Ports			  [2, 1]
	  Position		  [182, 255, 238, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan1"
	    Location		    [261, 159, 739, 620]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [225, 55, 245, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [206, 200, 239, 235]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [187, 335, 253, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [205, 135, 265, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [114, 135, 176, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [70, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [-5, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan2"
	  Ports			  [2, 1]
	  Position		  [302, 255, 358, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan2"
	    Location		    [261, 159, 739, 620]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [225, 55, 245, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [206, 200, 239, 235]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [187, 335, 253, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [205, 135, 265, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [114, 135, 176, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [-5, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [70, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan3"
	  Ports			  [2, 1]
	  Position		  [412, 255, 468, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan3"
	    Location		    [261, 159, 739, 620]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [225, 55, 245, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [206, 200, 239, 235]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [187, 335, 253, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [205, 135, 265, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [114, 135, 176, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [70, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [-5, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan4"
	  Ports			  [2, 1]
	  Position		  [522, 255, 578, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan4"
	    Location		    [261, 159, 739, 620]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [225, 55, 245, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [206, 200, 239, 235]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [187, 335, 253, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [205, 135, 265, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [114, 135, 176, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [-5, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [70, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan5"
	  Ports			  [2, 1]
	  Position		  [627, 250, 683, 280]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan5"
	    Location		    [261, 159, 739, 620]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [225, 55, 245, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [206, 200, 239, 235]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [187, 335, 253, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [205, 135, 265, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [114, 135, 176, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [70, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [-5, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan6"
	  Ports			  [2, 1]
	  Position		  [737, 250, 793, 280]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan6"
	    Location		    [261, 159, 739, 620]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Thalamus"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [225, 55, 245, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [206, 200, 239, 235]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [187, 335, 253, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [205, 135, 265, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [114, 135, 176, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Thal"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Thalamus"
	      SrcPort		      1
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [-5, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [70, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [480, 440, 500, 460]
	  Orientation		  "down"
	  ForegroundColor	  "cyan"
	  BackgroundColor	  "black"
	  NamePlacement		  "alternate"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [0, 100]
	  DstBlock		  "chan1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  1
	  Points		  [0, 95]
	  DstBlock		  "chan1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Out"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "chan1"
	  SrcPort		  1
	  Points		  [0, 60]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "chan3"
	  SrcPort		  1
	  Points		  [0, 30; 40, 0]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "chan2"
	  SrcPort		  1
	  Points		  [0, 45; 135, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "chan4"
	  SrcPort		  1
	  Points		  [0, 30; -55, 0]
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "chan5"
	  SrcPort		  1
	  Points		  [0, 50; -145, 0]
	  DstBlock		  "Mux"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "chan6"
	  SrcPort		  1
	  Points		  [0, 65]
	  DstBlock		  "Mux"
	  DstPort		  6
	}
	Line {
	  SrcBlock		  "Cortex"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Thalamus"
	  SrcPort		  1
	  DstBlock		  "Demux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  2
	  Points		  [0, 85; 160, 0]
	  DstBlock		  "chan2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  3
	  Points		  [0, 80; 260, 0]
	  DstBlock		  "chan3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  4
	  Points		  [0, 70; 360, 0]
	  DstBlock		  "chan4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  5
	  Points		  [0, 60; 455, 0]
	  DstBlock		  "chan5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  6
	  Points		  [0, 50; 555, 0]
	  DstBlock		  "chan6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [0, 95; -135, 0]
	  DstBlock		  "chan2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  Points		  [0, 85; -35, 0]
	  DstBlock		  "chan3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  4
	  Points		  [0, 100]
	  DstBlock		  "chan4"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  5
	  Points		  [0, 95]
	  DstBlock		  "chan5"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  6
	  Points		  [0, 85; 260, 0]
	  DstBlock		  "chan6"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Ventrolateral\nThalamus"
      Ports		      [3, 1]
      Position		      [383, 200, 447, 250]
      Orientation	      "up"
      ForegroundColor	      "yellow"
      BackgroundColor	      "black"
      DropShadow	      on
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Thalamus"
      MaskDescription	      "3 channel striatum - non-recurrent"
      MaskPromptString	      "Within input weight|Diffuse input weight|Cortex"
" input weight|BG input weight|membrane decay rate|output slope|output thresh"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on"
      MaskCallbackString      "||||||"
      MaskEnableString	      "on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,"
      MaskVariables	      "W_TRNwit=@1;W_TRNdif=@2;W_Ctx=@3;W_BG=@4;A_rate"
"=@5;slope=@6;thresh=@7;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "-0.1|-0.7|1|-1|25|1|0"
      MaskTabNameString	      ",,,,,,"
      System {
	Name			"Ventrolateral\nThalamus"
	Location		[70, 133, 966, 634]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "BG"
	  Position		  [160, 25, 180, 45]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  NamePlacement		  "alternate"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Cortex"
	  Position		  [485, 20, 505, 40]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "TRN"
	  Position		  [695, 15, 715, 35]
	  Orientation		  "down"
	  ForegroundColor	  "cyan"
	  BackgroundColor	  "black"
	  NamePlacement		  "alternate"
	  Port			  "3"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 6]
	  Position		  [457, 95, 533, 140]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux1"
	  Ports			  [1, 6]
	  Position		  [132, 95, 208, 140]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux2"
	  Ports			  [1, 6]
	  Position		  [567, 90, 643, 135]
	  Orientation		  "down"
	  BackgroundColor	  "cyan"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Inhibition between channels"
	  Ports			  [1, 6]
	  Position		  [672, 90, 738, 140]
	  Orientation		  "down"
	  ForegroundColor	  "cyan"
	  BackgroundColor	  "black"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Inhibition between channels"
	    Location		    [171, 159, 767, 481]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [265, 15, 295, 30]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux2"
	      Ports		      [1, 6]
	      Position		      [158, 65, 402, 110]
	      Orientation	      "down"
	      ForegroundColor	      "cyan"
	      BackgroundColor	      "black"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [5, 1]
	      Position		      [21, 230, 79, 270]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "+++++"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      Ports		      [5, 1]
	      Position		      [106, 230, 164, 270]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "+++++"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      Ports		      [5, 1]
	      Position		      [196, 230, 254, 270]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "+++++"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum3"
	      Ports		      [5, 1]
	      Position		      [291, 230, 349, 270]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "+++++"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum4"
	      Ports		      [5, 1]
	      Position		      [386, 230, 444, 270]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "+++++"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum5"
	      Ports		      [5, 1]
	      Position		      [491, 230, 549, 270]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "+++++"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [35, 285, 65, 300]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out2"
	      Position		      [120, 285, 150, 300]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out3"
	      Position		      [210, 285, 240, 300]
	      Orientation	      "down"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out4"
	      Position		      [305, 285, 335, 300]
	      Orientation	      "down"
	      Port		      "4"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out5"
	      Position		      [400, 285, 430, 300]
	      Orientation	      "down"
	      Port		      "5"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out6"
	      Position		      [505, 285, 535, 300]
	      Orientation	      "down"
	      Port		      "6"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Demux2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      2
	      Points		      [0, 85]
	      Branch {
		Points			[0, 5; -190, 0]
		DstBlock		"Sum"
		DstPort			1
	      }
	      Branch {
		Points			[0, 15]
		DstBlock		"Sum2"
		DstPort			2
	      }
	      Branch {
		Points			[0, 5; 90, 0]
		Branch {
		  DstBlock		  "Sum3"
		  DstPort		  2
		}
		Branch {
		  Points		  [95, 0]
		  Branch {
		    DstBlock		    "Sum4"
		    DstPort		    2
		  }
		  Branch {
		    Points		    [105, 0]
		    DstBlock		    "Sum5"
		    DstPort		    2
		  }
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      1
	      Points		      [0, 95]
	      Branch {
		Points			[-65, 0]
		DstBlock		"Sum1"
		DstPort			1
	      }
	      Branch {
		Points			[25, 0]
		Branch {
		  DstBlock		  "Sum2"
		  DstPort		  1
		}
		Branch {
		  Points		  [95, 0]
		  Branch {
		    DstBlock		    "Sum3"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [95, 0]
		    Branch {
		    DstBlock		    "Sum4"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [105, 0]
		    DstBlock		    "Sum5"
		    DstPort		    1
		    }
		  }
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      3
	      Points		      [0, 85]
	      Branch {
		Points			[-135, 0]
		Branch {
		  Points		  [-85, 0]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Branch {
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
	      }
	      Branch {
		Points			[60, 0]
		Branch {
		  DstBlock		  "Sum3"
		  DstPort		  3
		}
		Branch {
		  Points		  [95, 0]
		  Branch {
		    DstBlock		    "Sum4"
		    DstPort		    3
		  }
		  Branch {
		    Points		    [105, 0]
		    DstBlock		    "Sum5"
		    DstPort		    3
		  }
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      4
	      Points		      [0, 80]
	      Branch {
		Points			[-75, 0]
		Branch {
		  Points		  [-90, 0]
		  Branch {
		    Points		    [-85, 0]
		    DstBlock		    "Sum"
		    DstPort		    3
		  }
		  Branch {
		    DstBlock		    "Sum1"
		    DstPort		    3
		  }
		}
		Branch {
		  DstBlock		  "Sum2"
		  DstPort		  3
		}
	      }
	      Branch {
		Points			[125, 0]
		Branch {
		  DstBlock		  "Sum4"
		  DstPort		  4
		}
		Branch {
		  Points		  [105, 0]
		  DstBlock		  "Sum5"
		  DstPort		  4
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      5
	      Points		      [0, 75]
	      Branch {
		Points			[-10, 0]
		Branch {
		  Points		  [-95, 0]
		  Branch {
		    Points		    [-90, 0]
		    Branch {
		    Points		    [-85, 0]
		    DstBlock		    "Sum"
		    DstPort		    4
		    }
		    Branch {
		    DstBlock		    "Sum1"
		    DstPort		    4
		    }
		  }
		  Branch {
		    DstBlock		    "Sum2"
		    DstPort		    4
		  }
		}
		Branch {
		  DstBlock		  "Sum3"
		  DstPort		  4
		}
	      }
	      Branch {
		Points			[200, 0]
		DstBlock		"Sum5"
		DstPort			5
	      }
	    }
	    Line {
	      SrcBlock		      "Demux2"
	      SrcPort		      6
	      Points		      [0, 70]
	      Branch {
		Points			[-40, 0]
		Branch {
		  Points		  [-95, 0]
		  Branch {
		    Points		    [-90, 0]
		    Branch {
		    Points		    [-85, 0]
		    DstBlock		    "Sum"
		    DstPort		    5
		    }
		    Branch {
		    DstBlock		    "Sum1"
		    DstPort		    5
		    }
		  }
		  Branch {
		    DstBlock		    "Sum2"
		    DstPort		    5
		  }
		}
		Branch {
		  DstBlock		  "Sum3"
		  DstPort		  5
		}
	      }
	      Branch {
		Points			[55, 0]
		DstBlock		"Sum4"
		DstPort			5
	      }
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      DstBlock		      "Out2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      DstBlock		      "Out3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum3"
	      SrcPort		      1
	      DstBlock		      "Out4"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum4"
	      SrcPort		      1
	      DstBlock		      "Out5"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum5"
	      SrcPort		      1
	      DstBlock		      "Out6"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [6, 1]
	  Position		  [441, 365, 534, 405]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Inputs		  "6"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan1"
	  Ports			  [4, 1]
	  Position		  [174, 285, 231, 315]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan1"
	    Location		    [233, 217, 761, 678]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "BG"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [210, 55, 230, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN"
	      Position		      [335, 50, 355, 70]
	      Orientation	      "down"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN1"
	      Position		      [420, 50, 440, 70]
	      Orientation	      "down"
	      Port		      "4"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [4, 1]
	      Position		      [220, 205, 270, 240]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "++++"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [230, 260, 260, 310]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [212, 335, 278, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [190, 135, 250, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [54, 135, 116, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_BG"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight2"
	      Position		      [315, 135, 375, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNwit"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight3"
	      Position		      [400, 135, 460, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNdif"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [235, 410, 255, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 5; 145, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "BG"
	      SrcPort		      1
	      Points		      [0, 40]
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight2"
	      SrcPort		      1
	      Points		      [-95, 0]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "TRN"
	      SrcPort		      1
	      DstBlock		      "weight2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "TRN1"
	      SrcPort		      1
	      DstBlock		      "weight3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight3"
	      SrcPort		      1
	      Points		      [0, 10]
	      DstBlock		      "Sum"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan2"
	  Ports			  [4, 1]
	  Position		  [294, 285, 351, 315]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan2"
	    Location		    [233, 217, 761, 678]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "BG"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [210, 55, 230, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN"
	      Position		      [335, 50, 355, 70]
	      Orientation	      "down"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN1"
	      Position		      [420, 50, 440, 70]
	      Orientation	      "down"
	      Port		      "4"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [4, 1]
	      Position		      [220, 205, 270, 240]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "++++"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [230, 260, 260, 310]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [212, 335, 278, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [190, 135, 250, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [54, 135, 116, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_BG"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight2"
	      Position		      [315, 135, 375, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNwit"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight3"
	      Position		      [400, 135, 460, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNdif"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [235, 410, 255, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight3"
	      SrcPort		      1
	      Points		      [0, 10]
	      DstBlock		      "Sum"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "TRN1"
	      SrcPort		      1
	      DstBlock		      "weight3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "TRN"
	      SrcPort		      1
	      DstBlock		      "weight2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight2"
	      SrcPort		      1
	      Points		      [-95, 0]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "BG"
	      SrcPort		      1
	      Points		      [0, 40]
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 5; 145, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan3"
	  Ports			  [4, 1]
	  Position		  [429, 285, 486, 315]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan3"
	    Location		    [233, 217, 761, 678]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "BG"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [210, 55, 230, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN"
	      Position		      [335, 50, 355, 70]
	      Orientation	      "down"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN1"
	      Position		      [420, 50, 440, 70]
	      Orientation	      "down"
	      Port		      "4"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [4, 1]
	      Position		      [220, 205, 270, 240]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "++++"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [230, 260, 260, 310]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [212, 335, 278, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [190, 135, 250, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [54, 135, 116, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_BG"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight2"
	      Position		      [315, 135, 375, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNwit"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight3"
	      Position		      [400, 135, 460, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNdif"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [235, 410, 255, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 5; 145, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "BG"
	      SrcPort		      1
	      Points		      [0, 40]
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight2"
	      SrcPort		      1
	      Points		      [-95, 0]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "TRN"
	      SrcPort		      1
	      DstBlock		      "weight2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "TRN1"
	      SrcPort		      1
	      DstBlock		      "weight3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight3"
	      SrcPort		      1
	      Points		      [0, 10]
	      DstBlock		      "Sum"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan4"
	  Ports			  [4, 1]
	  Position		  [544, 285, 601, 315]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan4"
	    Location		    [233, 217, 761, 678]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "BG"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [210, 55, 230, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN"
	      Position		      [335, 50, 355, 70]
	      Orientation	      "down"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN1"
	      Position		      [420, 50, 440, 70]
	      Orientation	      "down"
	      Port		      "4"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [4, 1]
	      Position		      [220, 205, 270, 240]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "++++"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [230, 260, 260, 310]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [212, 335, 278, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [190, 135, 250, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [54, 135, 116, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_BG"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight2"
	      Position		      [315, 135, 375, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNwit"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight3"
	      Position		      [400, 135, 460, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNdif"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [235, 410, 255, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight3"
	      SrcPort		      1
	      Points		      [0, 10]
	      DstBlock		      "Sum"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "TRN1"
	      SrcPort		      1
	      DstBlock		      "weight3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "TRN"
	      SrcPort		      1
	      DstBlock		      "weight2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight2"
	      SrcPort		      1
	      Points		      [-95, 0]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "BG"
	      SrcPort		      1
	      Points		      [0, 40]
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 5; 145, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan5"
	  Ports			  [4, 1]
	  Position		  [654, 290, 711, 320]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan5"
	    Location		    [233, 217, 761, 678]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "BG"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [210, 55, 230, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN"
	      Position		      [335, 50, 355, 70]
	      Orientation	      "down"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN1"
	      Position		      [420, 50, 440, 70]
	      Orientation	      "down"
	      Port		      "4"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [4, 1]
	      Position		      [220, 205, 270, 240]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "++++"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [230, 260, 260, 310]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [212, 335, 278, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [190, 135, 250, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [54, 135, 116, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_BG"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight2"
	      Position		      [315, 135, 375, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNwit"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight3"
	      Position		      [400, 135, 460, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNdif"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [235, 410, 255, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 5; 145, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "BG"
	      SrcPort		      1
	      Points		      [0, 40]
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight2"
	      SrcPort		      1
	      Points		      [-95, 0]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "TRN"
	      SrcPort		      1
	      DstBlock		      "weight2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "TRN1"
	      SrcPort		      1
	      DstBlock		      "weight3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight3"
	      SrcPort		      1
	      Points		      [0, 10]
	      DstBlock		      "Sum"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan6"
	  Ports			  [4, 1]
	  Position		  [754, 285, 811, 315]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "chan6"
	    Location		    [233, 217, 761, 678]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "BG"
	      Position		      [135, 55, 155, 75]
	      Orientation	      "down"
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [210, 55, 230, 75]
	      Orientation	      "down"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN"
	      Position		      [335, 50, 355, 70]
	      Orientation	      "down"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "TRN1"
	      Position		      [420, 50, 440, 70]
	      Orientation	      "down"
	      Port		      "4"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [4, 1]
	      Position		      [220, 205, 270, 240]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "++++"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [230, 260, 260, 310]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[580, 165, 955, 357]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Inport"
		  Position		  [25, 55, 45, 75]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  PortDimensions	  "1"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  IgnoreLimit		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "Gain"
		  SrcPort		  1
		  DstBlock		  "sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Inport"
		  SrcPort		  1
		  DstBlock		  "Gain"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Integrator"
		  SrcPort		  1
		  Points		  [10, 0]
		  Branch {
		    DstBlock		    "Outport"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 70]
		    DstBlock		    "decay const"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "sum"
		  SrcPort		  1
		  DstBlock		  "Integrator"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "decay const"
		  SrcPort		  1
		  Points		  [-50, 0; 0, -65]
		  DstBlock		  "sum"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "piecewise lin."
	      Ports		      [1, 1]
	      Position		      [212, 335, 278, 375]
	      Orientation	      "down"
	      FunctionName	      "Mpieclin"
	      Parameters	      "slope,thresh"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [190, 135, 250, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_Ctx"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight1"
	      Position		      [54, 135, 116, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_BG"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight2"
	      Position		      [315, 135, 375, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNwit"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight3"
	      Position		      [400, 135, 460, 175]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_TRNdif"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [235, 410, 255, 430]
	      Orientation	      "down"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "piecewise lin."
	      SrcPort		      1
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight3"
	      SrcPort		      1
	      Points		      [0, 10]
	      DstBlock		      "Sum"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "TRN1"
	      SrcPort		      1
	      DstBlock		      "weight3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "TRN"
	      SrcPort		      1
	      DstBlock		      "weight2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight2"
	      SrcPort		      1
	      Points		      [-95, 0]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "BG"
	      SrcPort		      1
	      Points		      [0, 40]
	      DstBlock		      "weight1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "weight1"
	      SrcPort		      1
	      Points		      [0, 5; 145, 0]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "leaky integration"
	      SrcPort		      1
	      DstBlock		      "piecewise lin."
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [480, 440, 500, 460]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Out"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "chan1"
	  SrcPort		  1
	  Points		  [0, 30]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "chan3"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "chan2"
	  SrcPort		  1
	  Points		  [0, 15; 140, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "chan4"
	  SrcPort		  1
	  Points		  [-80, 0]
	  DstBlock		  "Mux"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "chan5"
	  SrcPort		  1
	  Points		  [0, 10; -175, 0]
	  DstBlock		  "Mux"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "chan6"
	  SrcPort		  1
	  Points		  [0, 30]
	  DstBlock		  "Mux"
	  DstPort		  6
	}
	Line {
	  SrcBlock		  "BG"
	  SrcPort		  1
	  DstBlock		  "Demux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  2
	  Points		  [0, 85; 145, 0]
	  DstBlock		  "chan2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  3
	  Points		  [0, 80; 270, 0]
	  DstBlock		  "chan3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  4
	  Points		  [0, 70; 375, 0]
	  DstBlock		  "chan4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  5
	  Points		  [0, 60; 475, 0]
	  DstBlock		  "chan5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Cortex"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  6
	  Points		  [0, 50; 565, 0]
	  DstBlock		  "chan6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  1
	  Points		  [0, 125]
	  DstBlock		  "chan1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "TRN"
	  SrcPort		  1
	  Points		  [0, 20]
	  Branch {
	    DstBlock		    "Inhibition between channels"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [-100, 0]
	    DstBlock		    "Demux2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  1
	  Points		  [0, 100; -370, 0]
	  DstBlock		  "chan1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Inhibition between channels"
	  SrcPort		  1
	  Points		  [0, 100; -455, 0]
	  DstBlock		  "chan1"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  2
	  Points		  [0, 115; -260, 0]
	  DstBlock		  "chan2"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  3
	  Points		  [0, 130]
	  DstBlock		  "chan3"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  4
	  Points		  [0, 135; -30, 0]
	  DstBlock		  "chan4"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  5
	  Points		  [0, 135]
	  DstBlock		  "chan5"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  6
	  Points		  [0, 125; 160, 0]
	  DstBlock		  "chan6"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Inhibition between channels"
	  SrcPort		  2
	  Points		  [0, 115; -345, 0]
	  DstBlock		  "chan2"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Inhibition between channels"
	  SrcPort		  3
	  Points		  [0, 120; -220, 0]
	  DstBlock		  "chan3"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Inhibition between channels"
	  SrcPort		  4
	  Points		  [0, 130; -115, 0]
	  DstBlock		  "chan4"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Inhibition between channels"
	  SrcPort		  5
	  Points		  [0, 130]
	  DstBlock		  "chan5"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Inhibition between channels"
	  SrcPort		  6
	  Points		  [0, 125]
	  DstBlock		  "chan6"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [0, 90; -165, 0]
	  DstBlock		  "chan2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  Points		  [0, 80; -40, 0]
	  DstBlock		  "chan3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  4
	  Points		  [0, 130; 65, 0]
	  DstBlock		  "chan4"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  5
	  Points		  [0, 115; 165, 0]
	  DstBlock		  "chan5"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  6
	  Points		  [0, 80; 255, 0]
	  DstBlock		  "chan6"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [0, 105; -275, 0]
	  DstBlock		  "chan1"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Ventrolateral\nThalamus"
      SrcPort		      1
      Points		      [0, 0; 0, -35]
      Branch {
	Labels			[1, 0]
	DstBlock		"Goto"
	DstPort			1
      }
      Branch {
	Points			[-170, 0]
	Branch {
	  Points		  [-60, 0]
	  DstBlock		  "Motor \nCortex"
	  DstPort		  2
	}
	Branch {
	  Points		  [5, 0; 0, 65]
	  DstBlock		  "TRN"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "From"
      SrcPort		      1
      DstBlock		      "Behaviour"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Behaviour"
      SrcPort		      1
      DstBlock		      "Diagnostic\nBehaviour"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Saliences"
      SrcPort		      1
      Points		      [0, 0; 0, 25]
      Branch {
	Labels			[1, 0]
	DstBlock		"Goto1"
	DstPort			1
      }
      Branch {
	Points			[0, 15]
	Branch {
	  DstBlock		  "Motor \nCortex"
	  DstPort		  1
	}
	Branch {
	  Points		  [-30, 0]
	  DstBlock		  "Basal Ganglia"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Motor \nCortex"
      SrcPort		      1
      Points		      [0, 0; 0, 25]
      Branch {
	Points			[-90, 0]
	DstBlock		"Basal Ganglia"
	DstPort			1
      }
      Branch {
	Points			[80, 0]
	Branch {
	  Points		  [0, -40]
	  DstBlock		  "TRN"
	  DstPort		  2
	}
	Branch {
	  Points		  [165, 0]
	  DstBlock		  "Ventrolateral\nThalamus"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Basal Ganglia"
      SrcPort		      1
      Points		      [0, 25; 290, 0]
      DstBlock		      "Ventrolateral\nThalamus"
      DstPort		      1
    }
    Line {
      SrcBlock		      "TRN"
      SrcPort		      1
      Points		      [10, 0; 0, 40; 75, 0]
      DstBlock		      "Ventrolateral\nThalamus"
      DstPort		      3
    }
    Annotation {
      Name		      "The extended (TRN) model - Humphries & Gurney ("
"2002)"
      Position		      [324, 38]
      DropShadow	      on
    }
  }
}