opensourcebrain/HodgkinHuxleyTutorial
0
1<Lems xmlns="http://www.neuroml.org/lems/0.7.4"2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"3 xsi:schemaLocation="http://www.neuroml.org/lems/0.7.4 ../../LEMS/Schemas/LEMS/LEMS_v0.7.4.xsd"4 description="New voltage clamp">5 6 7 <ComponentType name="voltageClamp2" extends="baseVoltageDepPointCurrent"8 description="Voltage clamp. Applies a variable current _i to try to keep parent at _targetVoltage. ">9 10 <Parameter name="delay" dimension="time" description="Delay before switching from conditioningVoltage to testingVoltage."/>11 <Parameter name="duration" dimension="time" description="Duration to hold at testingVoltage."/>12 <Parameter name="conditioningVoltage" dimension="voltage" description="Target voltage before time delay"/>13 <Parameter name="testingVoltage" dimension="voltage" description="Target voltage between times delay and delay + duration"/>14 <Parameter name="returnVoltage" dimension="voltage" description="Target voltage after time duration"/>15 16 <!-- seriesResistance renamed to simpleSeriesResistance & factor of 1e-5 removed from calculation of current. Still being tested... -->17 <Parameter name="simpleSeriesResistance" dimension="resistance" description="Current will be calculated by the difference in voltage between the target and parent, divided by this value"/>18 19 <!--TODO: remove! Only required as EventConnection is used in explicitInput to20 connect inputs to cells. Events aren't passed! ... -->21 <EventPort name="in" direction="in" description="Note this is not used here. Will be removed in future"/>22 23 <Dynamics>24 25 <StateVariable name="i" exposure="i" dimension="current"/>26 27 <OnEvent port="in"><!--TODO: remove, see above...28 <StateAssignment variable="i" value="0"/>-->29 </OnEvent>30 31 <OnCondition test="t .lt. delay">32 <StateAssignment variable="i" value="(conditioningVoltage - v) / simpleSeriesResistance"/>33 </OnCondition>34 35 <OnCondition test="t .geq. delay">36 <StateAssignment variable="i" value="(testingVoltage - v) / simpleSeriesResistance"/>37 </OnCondition>38 39 <OnCondition test="t .gt. duration + delay">40 <StateAssignment variable="i" value="(returnVoltage - v) / simpleSeriesResistance"/>41 </OnCondition>42 43 </Dynamics>44 45 </ComponentType>46 47 48 <voltageClamp2 id="vClamp" delay="10ms" duration="30ms"49 conditioningVoltage="-63.77mV" 50 testingVoltage="10mV" 51 returnVoltage="-63.77mV" 52 simpleSeriesResistance="1e4ohm"/>53 54</Lems>55 