Population-level model of the basal ganglia and action selection (Gurney et al 2001, 2004)

 Download zip file 
Help downloading and running models
Accession:83560
We proposed a new functional architecture for the basal ganglia (BG) based on the premise that these brain structures play a central role in behavioural action selection. The papers quantitatively describes the properties of the model using analysis and simulation. In the first paper, we show that the decomposition of the BG into selection and control pathways is supported in several ways. First, several elegant features are exposed--capacity scaling, enhanced selectivity and synergistic dopamine modulation--which might be expected to exist in a well designed action selection mechanism. Second, good matches between model GPe output and GPi and SNr output, and neurophysiological data, have been found. Third, the behaviour of the model as a signal selection mechanism has parallels with some kinds of action selection observed in animals under various levels of dopaminergic modulation. In the second paper, we extend the BG model to include new connections, and show that action selection is maintained. In addition, we provide quantitative measures for defining different forms of selection, and methods for assessing performance changes in computational neuroscience models.
References:
1 . Gurney K, Prescott TJ, Redgrave P (2001) A computational model of action selection in the basal ganglia. II. Analysis and simulation of behaviour. Biol Cybern 84:411-23 [PubMed]
2 . Gurney KN, Humphries M, Wood R, Prescott TJ, Redgrave P (2004) Testing computational hypotheses of brain systems function: a case study with the basal ganglia. Network 15:263-90 [PubMed]
3 . Gurney K, Prescott TJ, Redgrave P (2001) A computational model of action selection in the basal ganglia. I. A new functional anatomy. Biol Cybern 84:401-10 [PubMed]
4 . Humphries MD (2003) High level modeling of dopamine mechanisms in striatal neurons Technical Report ABRG 3
Model Information (Click on a link to find other models with that property)
Model Type: Realistic Network;
Brain Region(s)/Organism: Basal ganglia;
Cell Type(s):
Channel(s):
Gap Junctions:
Receptor(s):
Gene(s):
Transmitter(s): Dopamine;
Simulation Environment: MATLAB; Simulink;
Model Concept(s): Parkinson's; Action Selection/Decision Making;
Implementer(s): Humphries, Mark D [m.d.humphries at shef.ac.uk];
Search NeuronDB for information about:  Dopamine;
Model {
  Name			  "multi_opts"
  Version		  4.00
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  on
  ShowLineDimensions	  on
  ShowPortDataTypes	  off
  ShowStorageClass	  off
  ExecutionOrder	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Mon Nov 18 10:04:30 2002"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "mark"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Mon Nov 18 10:04:55 2002"
  ModelVersionFormat	  "1.%<AutoIncrement:1>"
  ConfigurationManager	  "None"
  SimParamPage		  "Solver"
  StartTime		  "0"
  StopTime		  "5"
  SolverMode		  "SingleTasking"
  Solver		  "ode45"
  RelTol		  "1e-3"
  AbsTol		  "1e-3"
  Refine		  "5"
  MaxStep		  "0.1"
  MinStep		  "auto"
  MaxNumMinSteps	  "-1"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  off
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  off
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Array"
  LimitDataPoints	  off
  MaxDataPoints		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  SingleTaskRateTransMsg  "none"
  MultiTaskRateTransMsg	  "error"
  IntegerOverflowMsg	  "warning"
  CheckForMatrixSingularity "none"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  InvalidFcnCallConnMsg	  "error"
  SignalLabelMismatchMsg  "none"
  LinearizationMsg	  "none"
  VectorMatrixConversionMsg "none"
  SfunCompatibilityCheckMsg "none"
  BlockPriorityViolationMsg "warning"
  ArrayBoundsChecking	  "none"
  ConsistencyChecking	  "none"
  ZeroCross		  on
  Profile		  off
  SimulationMode	  "normal"
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_unix.tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  TLCProfiler		  off
  TLCDebug		  off
  TLCCoverage		  off
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  ExtModeMexFile	  "ext_comm"
  ExtModeBatchMode	  off
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock on
  OptimizeBlockIOStorage  on
  BufferReuse		  on
  ParameterPooling	  on
  BlockReductionOpt	  on
  RTWExpressionDepthLimit 5
  BooleanDataType	  off
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "multi_opts"
    Location		    [236, 82, 983, 798]
    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		      "Behaviour"
      Ports		      [1, 1]
      Position		      [540, 109, 590, 161]
      BackgroundColor	      "cyan"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "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"
      MaskVariables	      "on_thresh=@1;off_thresh=@2;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.025|0.1"
      MaskVariableAliases     ","
      System {
	Name			"Behaviour"
	Location		[668, 433, 989, 570]
	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"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [50, 15, 70, 35]
	  Value			  "1"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay"
	  Position		  [165, 45, 195, 75]
	  OnSwitchValue		  "1 - on_thresh"
	  OffSwitchValue	  "1 - off_thresh"
	  OnOutputValue		  "1"
	  OffOutputValue	  "0"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [110, 42, 140, 73]
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [255, 50, 275, 70]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  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		      [675, 122, 730, 148]
      BackgroundColor	      "cyan"
      DropShadow	      on
      NamePlacement	      "alternate"
      GotoTag		      "Behav"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "Diagnostic\nSTN"
      Position		      [410, 360, 435, 380]
      ForegroundColor	      "red"
      DropShadow	      on
      GotoTag		      "STN"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "Diagnostic\nStr(D1)"
      Position		      [125, 422, 155, 448]
      Orientation	      "left"
      ForegroundColor	      "blue"
      DropShadow	      on
      NamePlacement	      "alternate"
      GotoTag		      "StrD1"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "Diagnostic\nStr(D2)"
      Position		      [630, 402, 660, 428]
      ForegroundColor	      "blue"
      DropShadow	      on
      NamePlacement	      "alternate"
      GotoTag		      "StrD2"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "DiagnosticCx"
      Position		      [390, 175, 415, 195]
      ForegroundColor	      "red"
      DropShadow	      on
      GotoTag		      "Ctx"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "DiagnosticGPe"
      Position		      [423, 560, 447, 585]
      Orientation	      "down"
      ForegroundColor	      "blue"
      DropShadow	      on
      NamePlacement	      "alternate"
      GotoTag		      "GPe"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      Goto
      Name		      "DiagnosticGPi"
      Position		      [198, 565, 222, 590]
      Orientation	      "down"
      ForegroundColor	      "blue"
      DropShadow	      on
      NamePlacement	      "alternate"
      GotoTag		      "GPi"
      TagVisibility	      "global"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Diagnostics"
      Ports		      []
      Position		      [645, 180, 704, 209]
      BackgroundColor	      "green"
      DropShadow	      on
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      System {
	Name			"Diagnostics"
	Location		[402, 173, 1250, 959]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Clock
	  Name			  "Clock"
	  Position		  [600, 130, 620, 150]
	  DisplayTime		  off
	  Decimation		  "10"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 6]
	  Position		  [66, 90, 124, 130]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	  BusSelectionMode	  off
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux1"
	  Ports			  [1, 6]
	  Position		  [417, 85, 493, 120]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	  BusSelectionMode	  off
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux2"
	  Ports			  [1, 6]
	  Position		  [71, 450, 129, 490]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	  BusSelectionMode	  off
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux3"
	  Ports			  [1, 6]
	  Position		  [422, 445, 498, 480]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	  BusSelectionMode	  off
	}
	Block {
	  BlockType		  From
	  Name			  "From"
	  Position		  [80, 20, 110, 50]
	  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			  "From3"
	  Position		  [445, 390, 475, 420]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "GPe"
	}
	Block {
	  BlockType		  From
	  Name			  "From4"
	  Position		  [585, 435, 615, 465]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "StrD2"
	}
	Block {
	  BlockType		  From
	  Name			  "From5"
	  Position		  [590, 365, 620, 395]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "StrD1"
	}
	Block {
	  BlockType		  From
	  Name			  "From6"
	  Position		  [520, 385, 550, 415]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "STN"
	}
	Block {
	  BlockType		  From
	  Name			  "From7"
	  Position		  [710, 385, 740, 415]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  CloseFcn		  "tagdialog Close"
	  GotoTag		  "Behav"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 1"
	  Ports			  [1]
	  Position		  [70, 315, 100, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [9, 276, 301, 587]
	  Open			  on
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "on"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  List {
	    ListType		    SelectedSignals
	    axes1		    ""
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "1"
	  SaveToWorkspace	  on
	  SaveName		  "GPic1_6"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "7000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 2"
	  Ports			  [1]
	  Position		  [150, 315, 180, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [6, 450, 332, 762]
	  Open			  on
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "on"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  List {
	    ListType		    SelectedSignals
	    axes1		    ""
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "1"
	  SaveToWorkspace	  on
	  SaveName		  "GPic2_6"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "7000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 3"
	  Ports			  [1]
	  Position		  [230, 315, 260, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [101, 730, 445, 1007]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "1"
	  SaveToWorkspace	  on
	  SaveName		  "GPic3_6"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 4"
	  Ports			  [1]
	  Position		  [320, 315, 350, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [287, 741, 631, 1018]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveToWorkspace	  off
	  SaveName		  "GPic4_6"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 5"
	  Ports			  [1]
	  Position		  [400, 315, 430, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [425, 438, 769, 715]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveToWorkspace	  off
	  SaveName		  "GPi3full"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "GPi ch 6"
	  Ports			  [1]
	  Position		  [480, 315, 510, 345]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [423, 104, 767, 381]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveToWorkspace	  off
	  SaveName		  "GPi6full6"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  HitCross
	  Name			  "Hit \nCrossing"
	  Ports			  [1, 1]
	  Position		  [600, 55, 630, 85]
	  HitCrossingOffset	  "0.5"
	  HitCrossingDirection	  "falling"
	  ShowOutputPort	  on
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [59, 240, 106, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [2, 1]
	  Position		  [144, 240, 186, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux10"
	  Ports			  [2, 1]
	  Position		  [314, 600, 361, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux11"
	  Ports			  [2, 1]
	  Position		  [399, 600, 441, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux12"
	  Ports			  [2, 1]
	  Position		  [481, 600, 519, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux2"
	  Ports			  [2, 1]
	  Position		  [226, 240, 264, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux3"
	  Ports			  [2, 1]
	  Position		  [660, 62, 695, 98]
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux4"
	  Ports			  [2, 1]
	  Position		  [64, 600, 111, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux5"
	  Ports			  [2, 1]
	  Position		  [149, 600, 191, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux6"
	  Ports			  [2, 1]
	  Position		  [231, 600, 269, 635]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux7"
	  Ports			  [2, 1]
	  Position		  [309, 240, 356, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux8"
	  Ports			  [2, 1]
	  Position		  [394, 240, 436, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux9"
	  Ports			  [2, 1]
	  Position		  [476, 240, 514, 275]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "Pulse\nGenerator"
	  Position		  [535, 55, 565, 85]
	  PulseType		  "Time-based"
	  Amplitude		  "1"
	  Period		  "0.5"
	  PulseWidth		  "50"
	  PhaseDelay		  "0.0"
	  SampleTime		  "1"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  ToWorkspace
	  Name			  "To Workspace"
	  Position		  [715, 65, 760, 95]
	  VariableName		  "mark"
	  MaxDataPoints		  "inf"
	  Decimation		  "1"
	  SampleTime		  "-1"
	  SaveFormat		  "Array"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 1"
	  Ports			  [1]
	  Position		  [75, 675, 105, 705]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [275, 257, 543, 633]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "1"
	  SaveToWorkspace	  on
	  SaveName		  "gpe1"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 2"
	  Ports			  [1]
	  Position		  [155, 670, 185, 700]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [48, 462, 405, 755]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveToWorkspace	  on
	  SaveName		  "gpe2"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 3"
	  Ports			  [1]
	  Position		  [235, 675, 265, 705]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [430, 741, 754, 1018]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveToWorkspace	  off
	  SaveName		  "ch3"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 4"
	  Ports			  [1]
	  Position		  [325, 675, 355, 705]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [48, 741, 392, 1018]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveToWorkspace	  off
	  SaveName		  "ch4"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 5"
	  Ports			  [1]
	  Position		  [405, 675, 435, 705]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [48, 741, 392, 1018]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveToWorkspace	  off
	  SaveName		  "ch5"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "ch 6"
	  Ports			  [1]
	  Position		  [485, 675, 515, 705]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Floating		  off
	  Location		  [48, 741, 392, 1018]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "on"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "0"
	  YMax			  "0.75"
	  SaveToWorkspace	  off
	  SaveName		  "ch6"
	  DataFormat		  "Array"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Line {
	  SrcBlock		  "From3"
	  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; 75, 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; 145, 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; 295, 0]
	  DstBlock		  "Mux8"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  6
	  Points		  [0, 60; 365, 0]
	  DstBlock		  "Mux9"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  3
	  Points		  [0, 35; -195, 0]
	  DstBlock		  "Mux2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "From1"
	  SrcPort		  1
	  DstBlock		  "Demux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  1
	  Points		  [0, 55; -335, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  2
	  Points		  [0, 45; -265, 0]
	  DstBlock		  "Mux1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  4
	  Points		  [0, 90; -115, 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, 10]
	  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		  "Pulse\nGenerator"
	  SrcPort		  1
	  DstBlock		  "Hit \nCrossing"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Hit \nCrossing"
	  SrcPort		  1
	  DstBlock		  "Mux3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Clock"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Mux3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Mux3"
	  SrcPort		  1
	  DstBlock		  "To Workspace"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Dopamine"
      Ports		      [0, 2]
      Position		      [53, 95, 117, 140]
      Orientation	      "down"
      BackgroundColor	      "yellow"
      DropShadow	      on
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      System {
	Name			"Dopamine"
	Location		[459, 387, 908, 646]
	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			  "0.2"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "D2 base level"
	  Position		  [290, 25, 410, 55]
	  Orientation		  "left"
	  Value			  "0.2"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [6, 1]
	  Position		  [140, 100, 200, 140]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Inputs		  "6"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [6, 1]
	  Position		  [220, 100, 280, 140]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Inputs		  "6"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Outport
	  Name			  "GPi(D1)"
	  Position		  [160, 170, 180, 190]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "GPe(D2)"
	  Position		  [240, 175, 260, 195]
	  Orientation		  "down"
	  Port			  "2"
	  OutputWhenDisabled	  "held"
	  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		      From
      Name		      "From"
      Position		      [465, 120, 495, 150]
      BackgroundColor	      "cyan"
      CloseFcn		      "tagdialog Close"
      GotoTag		      "GPi"
    }
    Block {
      BlockType		      SubSystem
      Name		      "GPe"
      Ports		      [2, 1]
      Position		      [522, 465, 598, 505]
      Orientation	      "down"
      ForegroundColor	      "blue"
      BackgroundColor	      "lightBlue"
      DropShadow	      on
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "GPe"
      MaskDescription	      "3 channel GPe"
      MaskPromptString	      "weight from Striatum|weight from STN (exc.)|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"
      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"
      MaskVariableAliases     ",,,,"
      System {
	Name			"GPe"
	Location		[615, 494, 1397, 1051]
	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"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "Striatum"
	  Position		  [145, 90, 165, 110]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Port			  "2"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "2 input\nchannel"
	  Ports			  [2, 1]
	  Position		  [20, 275, 75, 305]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "2 input\nchannel"
	    Location		    [916, 642, 1319, 1032]
	    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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [215, 55, 235, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [2, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 180, 35, 200]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 165, 130, 215]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [215, 55, 235, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [2, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 180, 35, 200]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 165, 130, 215]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [215, 55, 235, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [2, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 180, 35, 200]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 165, 130, 215]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [215, 55, 235, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [2, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 180, 35, 200]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 165, 130, 215]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [215, 55, 235, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [2, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 180, 35, 200]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 165, 130, 215]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [215, 55, 235, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [2, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 180, 35, 200]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 165, 130, 215]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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"
	  BusSelectionMode	  off
	}
	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"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [1, 1]
	  Position		  [598, 155, 652, 175]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  NamePlacement		  "alternate"
	  IconShape		  "rectangular"
	  Inputs		  "+"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [325, 460, 345, 480]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  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		      [172, 485, 248, 525]
      Orientation	      "down"
      ForegroundColor	      "blue"
      BackgroundColor	      "lightBlue"
      DropShadow	      on
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "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"
      MaskVariables	      "W_str=@1;W_STN=@2;W_GPe=@3;A_rate=@4;slope=@5;t"
"hresh=@6;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "-1|0.8|-0.4|25|1|-0.2"
      MaskVariableAliases     ",,,,,"
      System {
	Name			"GPi"
	Location		[36, 404, 972, 935]
	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"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "STN"
	  Position		  [530, 15, 550, 35]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  NamePlacement		  "alternate"
	  Port			  "2"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "GPe"
	  Position		  [385, 40, 405, 60]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Port			  "3"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "2 input\nchannel"
	  Ports			  [3, 1]
	  Position		  [77, 345, 133, 375]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "2 input\nchannel"
	    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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [175, 55, 195, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "GPe"
	      Position		      [255, 55, 275, 75]
	      Orientation	      "down"
	      Port		      "3"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [3, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 155, 35, 175]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x3"
		  Position		  [15, 230, 35, 250]
		  Port			  "3"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [3, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "+++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 140, 130, 190]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W3"
		  Position		  [65, 215, 130, 265]
		  Gain			  "W_GPe"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [175, 55, 195, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "GPe"
	      Position		      [255, 55, 275, 75]
	      Orientation	      "down"
	      Port		      "3"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [3, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 155, 35, 175]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x3"
		  Position		  [15, 230, 35, 250]
		  Port			  "3"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [3, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "+++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 140, 130, 190]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W3"
		  Position		  [65, 215, 130, 265]
		  Gain			  "W_GPe"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [175, 55, 195, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "GPe"
	      Position		      [255, 55, 275, 75]
	      Orientation	      "down"
	      Port		      "3"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [3, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 155, 35, 175]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x3"
		  Position		  [15, 230, 35, 250]
		  Port			  "3"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [3, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "+++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 140, 130, 190]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W3"
		  Position		  [65, 215, 130, 265]
		  Gain			  "W_GPe"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [175, 55, 195, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "GPe"
	      Position		      [255, 55, 275, 75]
	      Orientation	      "down"
	      Port		      "3"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [3, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 155, 35, 175]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x3"
		  Position		  [15, 230, 35, 250]
		  Port			  "3"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [3, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "+++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 140, 130, 190]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W3"
		  Position		  [65, 215, 130, 265]
		  Gain			  "W_GPe"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [175, 55, 195, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "GPe"
	      Position		      [255, 55, 275, 75]
	      Orientation	      "down"
	      Port		      "3"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [3, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 155, 35, 175]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x3"
		  Position		  [15, 230, 35, 250]
		  Port			  "3"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [3, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "+++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 140, 130, 190]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W3"
		  Position		  [65, 215, 130, 265]
		  Gain			  "W_GPe"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "STN"
	      Position		      [175, 55, 195, 75]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "GPe"
	      Position		      [255, 55, 275, 75]
	      Orientation	      "down"
	      Port		      "3"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "input summation"
	      Ports		      [3, 1]
	      Position		      [156, 105, 214, 135]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x2"
		  Position		  [15, 155, 35, 175]
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "x3"
		  Position		  [15, 230, 35, 250]
		  Port			  "3"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [3, 1]
		  Position		  [195, 104, 230, 166]
		  IconShape		  "rectangular"
		  Inputs		  "+++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W1"
		  Position		  [70, 47, 130, 103]
		  Gain			  "W_str"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W2"
		  Position		  [65, 140, 130, 190]
		  Gain			  "W_STN"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Gain
		  Name			  "W3"
		  Position		  [65, 215, 130, 265]
		  Gain			  "W_GPe"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "out_1"
		  Position		  [265, 125, 285, 145]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [175, 330, 195, 350]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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"
	  BusSelectionMode	  off
	}
	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"
	  BusSelectionMode	  off
	}
	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"
	  BusSelectionMode	  off
	}
	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"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [6, 1]
	  Position		  [507, 150, 573, 185]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "++++++"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [420, 500, 440, 520]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  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		      [2, 1]
      Position		      [322, 280, 398, 330]
      Orientation	      "down"
      ForegroundColor	      "red"
      BackgroundColor	      "orange"
      DropShadow	      on
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      System {
	Name			"STN"
	Location		[712, 641, 1221, 1016]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "salineces"
	  Position		  [65, 15, 95, 30]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  Port			  "1"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "GPe"
	  Position		  [240, 15, 280, 30]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  NamePlacement		  "alternate"
	  Port			  "2"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "Do\ndiscrete\nSTN"
	  Position		  [175, 160, 195, 180]
	  Orientation		  "down"
	  BackgroundColor	  "yellow"
	  NamePlacement		  "alternate"
	  Value			  "1"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "STN\ndiscrete\nmodel"
	  Ports			  [2, 1]
	  Position		  [61, 90, 134, 130]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  DropShadow		  on
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  MaskType		  "STN"
	  MaskDescription	  "3 channel GPe"
	  MaskPromptString	  "weight from Cortex|weight from GPe(inhib.)|"
"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"
	  MaskVariables		  "W_ctx=@1;W_GPe=@2;A_rate=@3;slope=@4;thresh"
"=@5;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "1|-1|25|1|-0.25"
	  MaskVariableAliases	  ",,,,"
	  System {
	    Name		    "STN\ndiscrete\nmodel"
	    Location		    [19, 395, 848, 853]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [200, 15, 220, 35]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      Port		      "1"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "GPe"
	      Position		      [580, 25, 600, 45]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "2 input\nchannel"
	      Ports		      [2, 1]
	      Position		      [70, 230, 125, 260]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"2 input\nchannel"
		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			  "Cortex"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_ctx"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    ExternalReset	    "none"
		    InitialConditionSource  "internal"
		    InitialCondition	    "0"
		    LimitOutput		    off
		    UpperSaturationLimit    "inf"
		    LowerSaturationLimit    "-inf"
		    ShowSaturationPort	    off
		    ShowStatePort	    off
		    AbsoluteTolerance	    "auto"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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"
		  PortCounts		  "[]"
		  SFunctionModules	  "''"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "GPe"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Cortex"
		  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\nchannel1"
	      Ports		      [2, 1]
	      Position		      [180, 230, 235, 260]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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			  "Cortex"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_ctx"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    ExternalReset	    "none"
		    InitialConditionSource  "internal"
		    InitialCondition	    "0"
		    LimitOutput		    off
		    UpperSaturationLimit    "inf"
		    LowerSaturationLimit    "-inf"
		    ShowSaturationPort	    off
		    ShowStatePort	    off
		    AbsoluteTolerance	    "auto"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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"
		  PortCounts		  "[]"
		  SFunctionModules	  "''"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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		  "Cortex"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "GPe"
		  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		      [2, 1]
	      Position		      [300, 230, 355, 260]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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			  "Cortex"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_ctx"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    ExternalReset	    "none"
		    InitialConditionSource  "internal"
		    InitialCondition	    "0"
		    LimitOutput		    off
		    UpperSaturationLimit    "inf"
		    LowerSaturationLimit    "-inf"
		    ShowSaturationPort	    off
		    ShowStatePort	    off
		    AbsoluteTolerance	    "auto"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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"
		  PortCounts		  "[]"
		  SFunctionModules	  "''"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "GPe"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Cortex"
		  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\nchannel3"
	      Ports		      [2, 1]
	      Position		      [430, 230, 485, 260]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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			  "Cortex"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_ctx"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    ExternalReset	    "none"
		    InitialConditionSource  "internal"
		    InitialCondition	    "0"
		    LimitOutput		    off
		    UpperSaturationLimit    "inf"
		    LowerSaturationLimit    "-inf"
		    ShowSaturationPort	    off
		    ShowStatePort	    off
		    AbsoluteTolerance	    "auto"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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"
		  PortCounts		  "[]"
		  SFunctionModules	  "''"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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		  "Cortex"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "GPe"
		  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		      [2, 1]
	      Position		      [540, 230, 595, 260]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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			  "Cortex"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_ctx"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    ExternalReset	    "none"
		    InitialConditionSource  "internal"
		    InitialCondition	    "0"
		    LimitOutput		    off
		    UpperSaturationLimit    "inf"
		    LowerSaturationLimit    "-inf"
		    ShowSaturationPort	    off
		    ShowStatePort	    off
		    AbsoluteTolerance	    "auto"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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"
		  PortCounts		  "[]"
		  SFunctionModules	  "''"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "GPe"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Cortex"
		  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\nchannel5"
	      Ports		      [2, 1]
	      Position		      [660, 230, 715, 260]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "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			  "Cortex"
		  Position		  [130, 55, 150, 75]
		  Orientation		  "down"
		  Port			  "1"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [215, 55, 235, 75]
		  Orientation		  "down"
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [2, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [2, 1]
		    Position		    [195, 104, 230, 166]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_ctx"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    ExternalReset	    "none"
		    InitialConditionSource  "internal"
		    InitialCondition	    "0"
		    LimitOutput		    off
		    UpperSaturationLimit    "inf"
		    LowerSaturationLimit    "-inf"
		    ShowSaturationPort	    off
		    ShowStatePort	    off
		    AbsoluteTolerance	    "auto"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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"
		  PortCounts		  "[]"
		  SFunctionModules	  "''"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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		  "Cortex"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "GPe"
		  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		      [173, 80, 247, 120]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	      BusSelectionMode	      off
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux1"
	      Ports		      [1, 6]
	      Position		      [552, 75, 628, 115]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Outputs		      "6"
	      BusSelectionMode	      off
	    }
	    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"
	      DisplayOption	      "none"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      Position		      [400, 410, 420, 430]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      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; -100, 0]
	      DstBlock		      "2 input\nchannel"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      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; 75, 0]
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "2 input\nchannel1"
	      SrcPort		      1
	      Points		      [0, 45; 185, 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; -145, 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; 230, 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		      "GPe"
	      SrcPort		      1
	      DstBlock		      "Demux1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      1
	      Points		      [0, 60; -455, 0]
	      DstBlock		      "2 input\nchannel"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      2
	      Points		      [0, 70; -355, 0]
	      DstBlock		      "2 input\nchannel1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      3
	      Points		      [0, 80; -245, 0]
	      DstBlock		      "2 input\nchannel2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      4
	      Points		      [0, 90; -125, 0]
	      DstBlock		      "2 input\nchannel3"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      5
	      Points		      [0, 95]
	      DstBlock		      "2 input\nchannel4"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Demux1"
	      SrcPort		      6
	      Points		      [0, 70; 85, 0]
	      DstBlock		      "2 input\nchannel5"
	      DstPort		      2
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "STN\nhomogeneous\nmodel"
	  Ports			  [2, 1]
	  Position		  [205, 90, 280, 130]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  DropShadow		  on
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  MaskType		  "STN"
	  MaskDescription	  "3 channel GPe"
	  MaskPromptString	  "Ctx tonic rate (per channel)|weight from Ct"
"x|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"
	  MaskVariables		  "epsilon_p=@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.25|1|-1|25|1|0"
	  MaskVariableAliases	  ",,,,,"
	  System {
	    Name		    "STN\nhomogeneous\nmodel"
	    Location		    [19, 574, 576, 964]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Cortex"
	      Position		      [80, 85, 100, 105]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      Port		      "1"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "GPe"
	      Position		      [225, 70, 245, 90]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "3 input\nchannel"
	      Ports		      [3, 1]
	      Position		      [189, 230, 281, 260]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"3 input\nchannel"
		Location		[740, 599, 1143, 989]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Cortex"
		  Position		  [75, 55, 95, 75]
		  Orientation		  "down"
		  Port			  "1"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "GPe"
		  Position		  [175, 55, 195, 75]
		  Orientation		  "down"
		  Port			  "2"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Inport
		  Name			  "Tonic Ctx"
		  Position		  [235, 55, 255, 75]
		  Orientation		  "down"
		  Port			  "3"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "input summation"
		  Ports			  [3, 1]
		  Position		  [156, 105, 214, 135]
		  Orientation		  "down"
		  ShowPortLabels	  off
		  TreatAsAtomicUnit	  off
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "Auto"
		  System {
		    Name		    "input summation"
		    Location		    [963, 639, 1272, 992]
		    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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x2"
		    Position		    [15, 180, 35, 200]
		    Port		    "2"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Inport
		    Name		    "x3"
		    Position		    [15, 265, 35, 285]
		    Port		    "3"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum"
		    Ports		    [3, 1]
		    Position		    [195, 104, 230, 166]
		    IconShape		    "rectangular"
		    Inputs		    "+++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W1"
		    Position		    [70, 47, 130, 103]
		    Gain		    "W_ctx"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W2"
		    Position		    [65, 165, 130, 215]
		    Gain		    "W_GPe"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "W3"
		    Position		    [65, 250, 130, 300]
		    Gain		    "1"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "out_1"
		    Position		    [265, 125, 285, 145]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    InitialOutput	    "0"
		    }
		    Line {
		    SrcBlock		    "W3"
		    SrcPort		    1
		    Points		    [10, 0; 0, -55; 35, 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
		  RTWSystemCode		  "Auto"
		  RTWFcnNameOpts	  "Auto"
		  RTWFileNameOpts	  "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"
		    LatchInput		    off
		    Interpolate		    on
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [70, 46, 130, 84]
		    Gain		    "A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Integrator
		    Name		    "Integrator"
		    Ports		    [1, 1]
		    Position		    [220, 58, 260, 92]
		    ExternalReset	    "none"
		    InitialConditionSource  "internal"
		    InitialCondition	    "0"
		    LimitOutput		    off
		    UpperSaturationLimit    "inf"
		    LowerSaturationLimit    "-inf"
		    ShowSaturationPort	    off
		    ShowStatePort	    off
		    AbsoluteTolerance	    "auto"
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "decay const"
		    Position		    [180, 122, 250, 168]
		    Orientation		    "left"
		    Gain		    "-A_rate"
		    Multiplication	    "Element-wise(K.*u)"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "sum"
		    Ports		    [2, 1]
		    Position		    [150, 55, 180, 90]
		    IconShape		    "rectangular"
		    Inputs		    "++"
		    SaturateOnIntegerOverflow on
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Outport"
		    Position		    [315, 65, 335, 85]
		    Port		    "1"
		    OutputWhenDisabled	    "held"
		    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"
		  PortCounts		  "[]"
		  SFunctionModules	  "''"
		}
		Block {
		  BlockType		  Outport
		  Name			  "out"
		  Position		  [175, 330, 195, 350]
		  Orientation		  "down"
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "leaky integration"
		  SrcPort		  1
		  DstBlock		  "piecewise lin."
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Cortex"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "GPe"
		  SrcPort		  1
		  DstBlock		  "input summation"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Tonic Ctx"
		  SrcPort		  1
		  Points		  [0, 10]
		  DstBlock		  "input summation"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "input summation"
		  SrcPort		  1
		  DstBlock		  "leaky integration"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "piecewise lin."
		  SrcPort		  1
		  DstBlock		  "out"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "No. Channels"
	      Position		      [35, 265, 55, 285]
	      Value		      "6"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [212, 290, 243, 325]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [1, 1]
	      Position		      [63, 160, 117, 180]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "+"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      Ports		      [1, 1]
	      Position		      [213, 135, 257, 160]
	      Orientation	      "down"
	      ForegroundColor	      "blue"
	      BackgroundColor	      "lightBlue"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "+"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      Ports		      [6, 1]
	      Position		      [336, 135, 404, 170]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "++++++"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Tonic Ctx"
	      Position		      [326, 60, 424, 80]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      Value		      "epsilon_p"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "inverse"
	      Position		      [100, 260, 140, 290]
	      Expr		      "1/u"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      Position		      [220, 350, 240, 370]
	      Orientation	      "down"
	      ForegroundColor	      "red"
	      BackgroundColor	      "orange"
	      NamePlacement	      "alternate"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      DstBlock		      "3 input\nchannel"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "Out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "No. Channels"
	      SrcPort		      1
	      DstBlock		      "inverse"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "inverse"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "3 input\nchannel"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [0, 30]
	      DstBlock		      "3 input\nchannel"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      Points		      [0, 40]
	      DstBlock		      "3 input\nchannel"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "GPe"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Cortex"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Tonic Ctx"
	      SrcPort		      1
	      Points		      [0, 35]
	      Branch {
		Points			[10, 0]
		Branch {
		  DstBlock		  "Sum2"
		  DstPort		  6
		}
		Branch {
		  Points		  [0, 10]
		}
	      }
	      Branch {
		Points			[0, 15]
		DstBlock		"Sum2"
		DstPort			5
	      }
	      Branch {
		DstBlock		"Sum2"
		DstPort			4
	      }
	      Branch {
		Points			[-10, 0]
		Branch {
		  DstBlock		  "Sum2"
		  DstPort		  3
		}
		Branch {
		  Points		  [-10, 0]
		  Branch {
		    DstBlock		    "Sum2"
		    DstPort		    2
		  }
		  Branch {
		    DstBlock		    "Sum2"
		    DstPort		    1
		  }
		}
	      }
	    }
	  }
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch1"
	  Position		  [162, 230, 208, 260]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  NamePlacement		  "alternate"
	  Threshold		  "0.5"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [170, 285, 200, 300]
	  Orientation		  "down"
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "STN\nhomogeneous\nmodel"
	  SrcPort		  1
	  Points		  [0, 80]
	  DstBlock		  "Switch1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "GPe"
	  SrcPort		  1
	  Points		  [0, 20]
	  Branch {
	    Points		    [-145, 0]
	    DstBlock		    "STN\ndiscrete\nmodel"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "STN\nhomogeneous\nmodel"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "salineces"
	  SrcPort		  1
	  Points		  [0, 10; 85, 0]
	  Branch {
	    Points		    [60, 0]
	    DstBlock		    "STN\nhomogeneous\nmodel"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [-85, 0]
	    DstBlock		    "STN\ndiscrete\nmodel"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Switch1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Do\ndiscrete\nSTN"
	  SrcPort		  1
	  DstBlock		  "Switch1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "STN\ndiscrete\nmodel"
	  SrcPort		  1
	  Points		  [0, 80]
	  DstBlock		  "Switch1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Saliences"
      Ports		      [0, 1]
      Position		      [302, 110, 378, 160]
      Orientation	      "down"
      ForegroundColor	      "red"
      BackgroundColor	      "orange"
      DropShadow	      on
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      System {
	Name			"Saliences"
	Location		[359, 298, 735, 595]
	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"
	  VectorParams1D	  on
	}
	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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "Salience\n(simple)"
	    Location		    [712, 623, 1076, 941]
	    Open		    on
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      DiscretePulseGenerator
	      Name		      "6 Saliences"
	      Position		      [135, 75, 165, 105]
	      Orientation	      "down"
	      PulseType		      "Time-based"
	      Amplitude		      "[0.4 0.6 0 0 0 0]"
	      Period		      "10"
	      PulseWidth	      "[90 90 10 10 10 10]"
	      PhaseDelay	      "[1 2 4 10 10 10]"
	      SampleTime	      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      DiscretePulseGenerator
	      Name		      "Aux steps"
	      Position		      [215, 75, 245, 105]
	      Orientation	      "down"
	      PulseType		      "Time-based"
	      Amplitude		      "[0.2 0.0 0 0 0 0]"
	      Period		      "10"
	      PulseWidth	      "[10 10 10 10 10 10]"
	      PhaseDelay	      "[3 10 10 10 10 10]"
	      SampleTime	      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [30, 90, 50, 110]
	      Value		      "[0 0 0 0 0]"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [2, 1]
	      Position		      [85, 17, 120, 73]
	      Inputs		      "2"
	      DisplayOption	      "none"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Repeating\nSequence"
	      Ports		      [0, 1]
	      Position		      [20, 15, 50, 45]
	      SourceBlock	      "simulink3/Sources/Repeating\nSequence"
	      SourceType	      "Repeating table"
	      rep_seq_t		      "[0 1 1.1 1.2 1.3 1.4 1.5 1.6 2 3]"
	      rep_seq_y		      "[0 0.0 0.6 0.8 0.8 0.6 0.3 0.1 0.0 0]"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [182, 175, 213, 210]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "++"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [190, 250, 210, 270]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "6 Saliences"
	      SrcPort		      1
	      Points		      [0, 50]
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      Points		      [15, 0]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Repeating\nSequence"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Aux steps"
	      SrcPort		      1
	      Points		      [0, 50]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "out"
	      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
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "step pairs"
	    Location		    [402, 330, 887, 614]
	    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]"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [3, 1]
	      Position		      [112, 155, 148, 195]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "3"
	      DisplayOption	      "none"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Repeating\nSequence"
	      Ports		      [0, 1]
	      Position		      [65, 20, 95, 50]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      SourceBlock	      "simulink3/Sources/Repeating\nSequence"
	      SourceType	      "Repeating table"
	      rep_seq_t		      "[0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4 4.5]"
	      rep_seq_y		      "[0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1]"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Repeating\nSequence1"
	      Ports		      [0, 1]
	      Position		      [185, 20, 215, 50]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      SourceBlock	      "simulink3/Sources/Repeating\nSequence"
	      SourceType	      "Repeating table"
	      rep_seq_t		      "[0 4.5 9 13.5 18 22.5 27 31.5 36 40.5]"
	      rep_seq_y		      "[0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1]"
	    }
	    Block {
	      BlockType		      Scope
	      Name		      "Scope"
	      Ports		      [1]
	      Position		      [180, 185, 210, 215]
	      Floating		      off
	      Location		      [188, 365, 512, 604]
	      Open		      off
	      NumInputPorts	      "1"
	      TickLabels	      "on"
	      ZoomMode		      "yonly"
	      List {
		ListType		AxesTitles
		axes1			"%<SignalLabel>"
	      }
	      Grid		      "on"
	      TimeRange		      "auto"
	      YMin		      "-5"
	      YMax		      "5"
	      SaveToWorkspace	      off
	      SaveName		      "ScopeData"
	      DataFormat	      "Array"
	      LimitDataPoints	      on
	      MaxDataPoints	      "5000"
	      Decimation	      "1"
	      SampleInput	      off
	      SampleTime	      "0"
	    }
	    Block {
	      BlockType		      ZeroOrderHold
	      Name		      "Zero-Order\nHold"
	      Position		      [65, 80, 95, 110]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      SampleTime	      "0.5"
	    }
	    Block {
	      BlockType		      ZeroOrderHold
	      Name		      "Zero-Order\nHold1"
	      Position		      [185, 80, 215, 110]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      SampleTime	      "4.5"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [70, 240, 90, 260]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Repeating\nSequence"
	      SrcPort		      1
	      DstBlock		      "Zero-Order\nHold"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Zero-Order\nHold"
	      SrcPort		      1
	      Points		      [0, 10; 40, 0]
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Zero-Order\nHold1"
	      SrcPort		      1
	      Points		      [0, 10; -70, 0]
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Repeating\nSequence1"
	      SrcPort		      1
	      DstBlock		      "Zero-Order\nHold1"
	      DstPort		      1
	    }
	    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, 85; -165, 0]
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [180, 240, 210, 255]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  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		      "Striatum(D1)"
      Ports		      [2, 1]
      Position		      [153, 290, 217, 340]
      Orientation	      "down"
      ForegroundColor	      "blue"
      BackgroundColor	      "lightBlue"
      DropShadow	      on
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "Striatum (D1)"
      MaskDescription	      "3 channel striatum - non-recurrent"
      MaskPromptString	      "External input weight|membrane decay rate|outpu"
"t slope|output thresh"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString	      "on,on,on,on"
      MaskVariables	      "W_ext=@1;A_rate=@2;slope=@3;thresh=@4;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1|25|1|0.2"
      MaskVariableAliases     ",,,"
      System {
	Name			"Striatum(D1)"
	Location		[55, 446, 951, 912]
	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"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "Ctx"
	  Position		  [485, 15, 505, 35]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  NamePlacement		  "alternate"
	  Port			  "2"
	  LatchInput		  off
	  Interpolate		  on
	}
	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"
	  BusSelectionMode	  off
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux1"
	  Ports			  [1, 6]
	  Position		  [142, 95, 218, 140]
	  Orientation		  "down"
	  BackgroundColor	  "yellow"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	  BusSelectionMode	  off
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [6, 1]
	  Position		  [441, 365, 534, 405]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Inputs		  "6"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan1"
	  Ports			  [2, 1]
	  Position		  [202, 255, 258, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan1"
	    Location		    [391, 482, 869, 943]
	    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"
	      LatchInput	      off
	      PortDimensions	      "1"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "++"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[590, 211, 965, 403]
		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"
		  LatchInput		  off
		  PortDimensions	  "1"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      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, 20]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan2"
	  Ports			  [2, 1]
	  Position		  [297, 255, 353, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan2"
	    Location		    [669, 524, 1147, 985]
	    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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "++"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[590, 211, 965, 403]
		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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [0, 20]
	      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		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan3"
	  Ports			  [2, 1]
	  Position		  [397, 255, 453, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan3"
	    Location		    [669, 524, 1147, 985]
	    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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "++"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[638, 191, 1013, 383]
		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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      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, 20]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan4"
	  Ports			  [2, 1]
	  Position		  [502, 255, 558, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan4"
	    Location		    [391, 482, 869, 943]
	    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"
	      LatchInput	      off
	      PortDimensions	      "1"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "++"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[590, 211, 965, 403]
		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"
		  LatchInput		  off
		  PortDimensions	  "1"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [0, 20]
	      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		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan5"
	  Ports			  [2, 1]
	  Position		  [597, 255, 653, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan5"
	    Location		    [669, 524, 1147, 985]
	    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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "++"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[590, 211, 965, 403]
		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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      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, 20]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan6"
	  Ports			  [2, 1]
	  Position		  [697, 255, 753, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan6"
	    Location		    [669, 524, 1147, 985]
	    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"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "++"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[590, 211, 965, 403]
		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"
		  LatchInput		  off
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [0, 20]
	      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		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [480, 440, 500, 460]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  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; 55, 0]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "chan2"
	  SrcPort		  1
	  Points		  [0, 45; 140, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [0, 15; -225, 0]
	  DstBlock		  "chan1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [0, 25; -140, 0]
	  DstBlock		  "chan2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  Points		  [0, 35; -50, 0]
	  DstBlock		  "chan3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  4
	  Points		  [0, 35; 45, 0]
	  DstBlock		  "chan4"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  5
	  Points		  [0, 25; 130, 0]
	  DstBlock		  "chan5"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  6
	  Points		  [0, 10; 220, 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; -115, 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; 415, 0]
	  DstBlock		  "chan5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  4
	  Points		  [0, 60; 330, 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
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Striatum(D2)"
      Ports		      [2, 1]
      Position		      [548, 280, 612, 330]
      Orientation	      "down"
      ForegroundColor	      "blue"
      BackgroundColor	      "lightBlue"
      DropShadow	      on
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskType		      "Striatum (D1)"
      MaskDescription	      "3 channel striatum - non-recurrent"
      MaskPromptString	      "External input weight|membrane decay rate|outpu"
"t slope|output thresh"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString	      "on,on,on,on"
      MaskVariables	      "W_ext=@1;A_rate=@2;slope=@3;thresh=@4;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1|25|1|0.2"
      MaskVariableAliases     ",,,"
      System {
	Name			"Striatum(D2)"
	Location		[299, 372, 1195, 838]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Dopamine"
	  Position		  [175, 45, 195, 65]
	  Orientation		  "down"
	  BackgroundColor	  "yellow"
	  NamePlacement		  "alternate"
	  Port			  "1"
	  LatchInput		  off
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "Ctx"
	  Position		  [485, 15, 505, 35]
	  Orientation		  "down"
	  ForegroundColor	  "red"
	  BackgroundColor	  "orange"
	  NamePlacement		  "alternate"
	  Port			  "2"
	  LatchInput		  off
	  Interpolate		  on
	}
	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"
	  BusSelectionMode	  off
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux1"
	  Ports			  [1, 6]
	  Position		  [147, 90, 223, 135]
	  Orientation		  "down"
	  BackgroundColor	  "yellow"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Outputs		  "6"
	  BusSelectionMode	  off
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [6, 1]
	  Position		  [441, 365, 534, 405]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Inputs		  "6"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan1"
	  Ports			  [2, 1]
	  Position		  [202, 255, 258, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan1"
	    Location		    [391, 482, 869, 943]
	    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"
	      LatchInput	      off
	      PortDimensions	      "1"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "+-"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[590, 211, 965, 403]
		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"
		  LatchInput		  off
		  PortDimensions	  "1"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [0, 20]
	      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		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan2"
	  Ports			  [2, 1]
	  Position		  [297, 255, 353, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan2"
	    Location		    [391, 482, 869, 943]
	    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"
	      LatchInput	      off
	      PortDimensions	      "1"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "+-"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[590, 211, 965, 403]
		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"
		  LatchInput		  off
		  PortDimensions	  "1"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      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, 20]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan3"
	  Ports			  [2, 1]
	  Position		  [397, 255, 453, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan3"
	    Location		    [391, 482, 869, 943]
	    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"
	      LatchInput	      off
	      PortDimensions	      "1"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "+-"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[590, 211, 965, 403]
		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"
		  LatchInput		  off
		  PortDimensions	  "1"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [0, 20]
	      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		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan4"
	  Ports			  [2, 1]
	  Position		  [502, 255, 558, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan4"
	    Location		    [391, 482, 869, 943]
	    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"
	      LatchInput	      off
	      PortDimensions	      "1"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "+-"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[590, 211, 965, 403]
		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"
		  LatchInput		  off
		  PortDimensions	  "1"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      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, 20]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan5"
	  Ports			  [2, 1]
	  Position		  [597, 255, 653, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan5"
	    Location		    [391, 482, 869, 943]
	    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"
	      LatchInput	      off
	      PortDimensions	      "1"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "+-"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[590, 211, 965, 403]
		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"
		  LatchInput		  off
		  PortDimensions	  "1"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [0, 20]
	      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		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "chan6"
	  Ports			  [2, 1]
	  Position		  [697, 255, 753, 285]
	  Orientation		  "down"
	  ShowPortLabels	  off
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  System {
	    Name		    "chan6"
	    Location		    [391, 482, 869, 943]
	    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"
	      LatchInput	      off
	      PortDimensions	      "1"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "external"
	      Position		      [295, 50, 315, 70]
	      Orientation	      "down"
	      Port		      "2"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [115, 60, 135, 80]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      Value		      "1"
	      VectorParams1D	      on
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [202, 185, 233, 220]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [142, 110, 173, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      IconShape		      "rectangular"
	      Inputs		      "+-"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "leaky integration"
	      Ports		      [1, 1]
	      Position		      [205, 255, 235, 305]
	      Orientation	      "down"
	      ShowPortLabels	      off
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      System {
		Name			"leaky integration"
		Location		[590, 211, 965, 403]
		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"
		  LatchInput		  off
		  PortDimensions	  "1"
		  Interpolate		  on
		}
		Block {
		  BlockType		  Gain
		  Name			  "Gain"
		  Position		  [70, 46, 130, 84]
		  Gain			  "A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Integrator
		  Name			  "Integrator"
		  Ports			  [1, 1]
		  Position		  [220, 58, 260, 92]
		  ExternalReset		  "none"
		  InitialConditionSource  "internal"
		  InitialCondition	  "0"
		  LimitOutput		  off
		  UpperSaturationLimit	  "inf"
		  LowerSaturationLimit	  "-inf"
		  ShowSaturationPort	  off
		  ShowStatePort		  off
		  AbsoluteTolerance	  "auto"
		}
		Block {
		  BlockType		  Gain
		  Name			  "decay const"
		  Position		  [180, 122, 250, 168]
		  Orientation		  "left"
		  Gain			  "-A_rate"
		  Multiplication	  "Element-wise(K.*u)"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Sum
		  Name			  "sum"
		  Ports			  [2, 1]
		  Position		  [150, 55, 180, 90]
		  IconShape		  "rectangular"
		  Inputs		  "++"
		  SaturateOnIntegerOverflow on
		}
		Block {
		  BlockType		  Outport
		  Name			  "Outport"
		  Position		  [315, 65, 335, 85]
		  Port			  "1"
		  OutputWhenDisabled	  "held"
		  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"
	      PortCounts	      "[]"
	      SFunctionModules	      "''"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "weight"
	      Position		      [283, 105, 327, 145]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      Gain		      "W_ext"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [210, 410, 230, 430]
	      Orientation	      "down"
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "weight"
	      SrcPort		      1
	      Points		      [0, 20]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "leaky integration"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "external"
	      SrcPort		      1
	      DstBlock		      "weight"
	      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, 20]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Annotation {
	      Position		      [87, 108]
	      Text		      "Dopamine \nmodulation"
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out"
	  Position		  [480, 440, 500, 460]
	  Orientation		  "down"
	  ForegroundColor	  "blue"
	  BackgroundColor	  "lightBlue"
	  NamePlacement		  "alternate"
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "chan6"
	  SrcPort		  1
	  Points		  [0, 60]
	  DstBlock		  "Mux"
	  DstPort		  6
	}
	Line {
	  SrcBlock		  "chan5"
	  SrcPort		  1
	  Points		  [0, 45; -115, 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; 220, 0]
	  DstBlock		  "chan6"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  5
	  Points		  [0, 25; 130, 0]
	  DstBlock		  "chan5"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  4
	  Points		  [0, 35; 45, 0]
	  DstBlock		  "chan4"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  Points		  [0, 35; -50, 0]
	  DstBlock		  "chan3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [0, 25; -140, 0]
	  DstBlock		  "chan2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [0, 15; -225, 0]
	  DstBlock		  "chan1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "chan2"
	  SrcPort		  1
	  Points		  [0, 45; 140, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "chan3"
	  SrcPort		  1
	  Points		  [0, 30; 55, 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
	}
	Line {
	  SrcBlock		  "Dopamine"
	  SrcPort		  1
	  DstBlock		  "Demux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  6
	  Points		  [0, 50; 500, 0]
	  DstBlock		  "chan6"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  5
	  Points		  [0, 60; 410, 0]
	  DstBlock		  "chan5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  4
	  Points		  [0, 70; 325, 0]
	  DstBlock		  "chan4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  3
	  Points		  [0, 80; 230, 0]
	  DstBlock		  "chan3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  2
	  Points		  [0, 90; 140, 0]
	  DstBlock		  "chan2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  1
	  Points		  [0, 100]
	  DstBlock		  "chan1"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Saliences"
      SrcPort		      1
      Points		      [0, 20]
      Branch {
	DstBlock		"DiagnosticCx"
	DstPort			1
      }
      Branch {
	Points			[0, 40]
	Branch {
	  Points		  [0, 15; 255, 0]
	  DstBlock		  "Striatum(D2)"
	  DstPort		  2
	}
	Branch {
	  Points		  [0, 15; -140, 0]
	  DstBlock		  "Striatum(D1)"
	  DstPort		  2
	}
	Branch {
	  DstBlock		  "STN"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "From"
      SrcPort		      1
      DstBlock		      "Behaviour"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Behaviour"
      SrcPort		      1
      DstBlock		      "Diagnostic\nBehaviour"
      DstPort		      1
    }
    Line {
      SrcBlock		      "GPe"
      SrcPort		      1
      Points		      [0, 25; -85, 0]
      Branch {
	Points			[0, -270]
	DstBlock		"STN"
	DstPort			2
      }
      Branch {
	Points			[-40, 0]
	Branch {
	  Points		  [-165, 0; 0, -65]
	  DstBlock		  "GPi"
	  DstPort		  3
	}
	Branch {
	  DstBlock		  "DiagnosticGPe"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Striatum(D2)"
      SrcPort		      1
      Points		      [0, 80]
      Branch {
	DstBlock		"GPe"
	DstPort			2
      }
      Branch {
	DstBlock		"Diagnostic\nStr(D2)"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "STN"
      SrcPort		      1
      Points		      [0, 20]
      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		      "GPi"
      SrcPort		      1
      DstBlock		      "DiagnosticGPi"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Striatum(D1)"
      SrcPort		      1
      Points		      [0, 90]
      Branch {
	DstBlock		"GPi"
	DstPort			1
      }
      Branch {
	DstBlock		"Diagnostic\nStr(D1)"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Dopamine"
      SrcPort		      2
      Points		      [0, 70; 465, 0]
      DstBlock		      "Striatum(D2)"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Dopamine"
      SrcPort		      1
      Points		      [0, 130]
      DstBlock		      "Striatum(D1)"
      DstPort		      1
    }
    Annotation {
      Position		      [52, 115]
      DropShadow	      on
    }
    Annotation {
      Position		      [392, 47]
      Text		      "piecewise linear model with 6 channels. No recu"
"rrence in \nstriatum. Independantly controlled dopamine"
      DropShadow	      on
      FontSize		      12
    }
  }
}

Loading data, please wait...