stimulus.square

stimulus.square(start, duration, freq, amplitude, offset, anod_first=False)[source]

Create a repetitive (periodic) square 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

  • dt (float) – sampling time period to generate the sinusoidal shape. If equal to 0, dt is automatically set to match 100 samples per sinusoid period by default set to 0