stimulus.sinus

stimulus.sinus(start, duration, amplitude, freq, offset=0, phase=0, dt=0)[source]

Create a sinusoidal waveform

Parameters:
  • start (float) – starting time of the waveform, in ms

  • duration (float) – duration of the waveform, in ms

  • amplitude (float) – amplitude of the waveform, in uA

  • freq (float) – frequency of the waveform, in kHz

  • offset (float) – offset current of the waveform, in uA, by default set to 0

  • phase (float) – initial phase of the waveform, in rad, by default set to 0

  • anod_first (bool) – if true, stimulation is anodic and begins with the anodic value and is balanced with cathodic value, else stimuation is cathodic and begins with the cathodic value and is balances with anodic value, by default set to False (cathodic first as most stimulation protocols)