Next: Input to Synaptic Channels Up: Setup of Experiments Previous: Setup of Experiments Contents

#### Current Injection

Assume that you want to apply injection of a current into the soma. Since the compartment has a special (input) field to do this kind of experiment, `hsolve` has a corresponding (input) field for this too. We can find this field with the `findsolvefield` command. Having a current injection for halve a second and then switching it off can be done by adding the following code at point 2:

        genesis > // point 2
        genesis > setfield /main {findsolvefield /main /main/soma inject} 1e-9
        genesis > step 0.5 -time
        genesis > setfield /main {findsolvefield /main /main/soma inject} 0
        genesis > step 0.5 -time