Table of Contents

Method SendCustomWaveform

Namespace
Bonsai.PulsePal
Assembly
Bonsai.PulsePal.dll

SendCustomWaveform(CustomTrainId, double, double[])

Sends a sequence of voltages describing a train of continuous monophasic pulses, with periodic onset times.

public void SendCustomWaveform(CustomTrainId id, double samplingPeriod, double[] pulseVoltages)

Parameters

id CustomTrainId

The identity of the custom pulse train to program.

samplingPeriod double

The width of all pulses in the train in the range [0.0001, 3600] seconds. Pulses are continuous.

pulseVoltages double[]

The array of pulse voltages, with one voltage per pulse.

Exceptions

ArgumentOutOfRangeException

samplingPeriod is outside the range [0.0001, 3600] seconds.-or- The maximum length of 1,000 pulses has been exceeded.

ArgumentNullException

pulseVoltages is null.