Skip to content

voltage instabilities when combining multiple voltageClampTriple elements #51

@JustasB

Description

@JustasB

I have a vclamp protocol that has more than three steps (to test channel inactivation and deactivation eg. p52 of ICG paper). When I chain two voltageClampTriple elements with non-overlapping durations, I get voltage and current instabilities at step transitions.

    <voltageClampTriple id="Input_1"
        active = "1"
        delay="50ms" duration="200ms"
        conditioningVoltage="-84mV"
        testingVoltage="50mV"
        returnVoltage="-30mV"
        simpleSeriesResistance="1e6ohm"/>
        
    <voltageClampTriple id="Input_2"
        active = "1"
        delay="300ms" duration="100ms"
        conditioningVoltage="-30mV"
        testingVoltage="-84mV"
        returnVoltage="-84mV"
        simpleSeriesResistance="1e6ohm"/>

Results in:
screen shot 2017-05-18 at 2 58 14 pm

screen shot 2017-05-18 at 3 00 04 pm
screen shot 2017-05-18 at 2 59 29 pm

It seems that this could be avoided if the voltageClampTriple specified the duration of the final step, and the element logic only applied non-zero current during times inside the vclamp's time window.

This is the only place I could find the LEMS definition of the voltageClampTriple component. Is this the right place? I could add the bounds check to fix the problem. https://github.com/openworm/hodgkin_huxley_tutorial/blob/3915d4e393f520ce2f5dba6585357b439146cb38/Tutorial2/NeuroML2/vclamp.xml

CC @scrook

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions