source: project/release/4/9ML-toolkit/trunk/examples/Brunel00/AlphaPSR.xml @ 30883

Last change on this file since 30883 was 30883, checked in by Ivan Raikov, 6 years ago

9ML-toolkit: further synapse tweaks in brunel example

File size: 2.0 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<NineML xmlns="http://nineml.incf.org/9ML/0.3"
3    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4    xsi:schemaLocation="http://nineml.incf.org/9ML/0.3 ../NineML_v0.3.xsd">
5
6  <ComponentClass name="AlphaPSR">
7
8    <Parameter name="tau_syn" dimension='time'/> <!-- synapse time constant -->
9
10    <Parameter name="scale" /> <!-- scaling factor -->
11
12    <EventPort name="spike"/>
13
14    <AnalogPort name="Ispike" mode='reduce' dimension='current'/>
15
16    <AnalogPort name="tspike" mode='recv' dimension='time'/>
17
18    <AnalogPort name="A" mode="send" dimension='current'/>
19    <AnalogPort name="B" mode="send" dimension='current'/>
20    <AnalogPort name="Isyn" mode="send" dimension='current'/>
21
22    <Dynamics>
23
24        <StateVariable name="A" dimension="current"/>
25        <StateVariable name="B" dimension="current"/>
26        <StateVariable name="Isyn" dimension="current"/>
27
28        <Regime name="default">
29         
30          <TimeDerivative variable="A">
31            <MathInline> (- A) / (tau_syn * 0.9999) </MathInline>
32          </TimeDerivative>
33
34          <TimeDerivative variable="B">
35            <MathInline> (- B) / tau_syn </MathInline>
36          </TimeDerivative>
37
38          <StateAssignment variable="Isyn" >
39            <MathInline> B - A </MathInline>
40          </StateAssignment>
41
42          <OnEvent src_port="spike">
43           
44            <StateAssignment variable="A" >
45              <MathInline> A + Ispike * scale </MathInline>
46            </StateAssignment>
47
48            <StateAssignment variable="B" >
49              <MathInline> B + Ispike * scale </MathInline>
50            </StateAssignment>
51
52            <StateAssignment variable="Isyn" >
53              <MathInline> B - A </MathInline>
54            </StateAssignment>
55
56            <StateAssignment variable="t" >
57              <MathInline> t + h </MathInline>
58            </StateAssignment>
59           
60          </OnEvent>
61
62        </Regime>
63
64    </Dynamics>
65
66
67  </ComponentClass>
68</NineML>
Note: See TracBrowser for help on using the repository browser.