Warning

This is A PREVIEW for NEST 3.0 and NOT an OFFICIAL RELEASE! Some functionality may not be available and information may be incomplete!

step_current_generator – provides a piecewise constant DC input current

Description

The dc_generator provides a piecewise constant DC input to the connected node(s). The amplitude of the current is changed at the specified times. The unit of the current is pA.

If allow_offgrid_spikes is set false, times will be rounded to the nearest step if they are less than tic/2 from the step, otherwise NEST reports an error. If true, times are rounded to the nearest step if within tic/2 from the step, otherwise they are rounded up to the end of the step.

Times of amplitude changes must be strictly increasing after conversion to simulation time steps. The option allow_offgrid_times may be useful, e.g., if you are using randomized times for current changes which typically would not fall onto simulation time steps.

Parameters

The following parameters can be set in the status dictionary:

amplitude_times

list of ms

Times at which current changes

amplitude_values

list of pA

Amplitudes of step current current

allow_offgrid_times

boolean

Default false

Sends

CurrentEvent

See also

Device, Generator