Method SendCustomPulseTrain
SendCustomPulseTrain(CustomTrainId, double[], double[])
Sends a sequence of onset times and voltages describing a train of pulses.
public void SendCustomPulseTrain(CustomTrainId id, double[] pulseTimes, double[] pulseVoltages)
Parameters
idCustomTrainIdThe identity of the custom pulse train to program.
pulseTimesdouble[]The array of pulse onset times, where each time is specified in seconds from the start of the pulse train.
pulseVoltagesdouble[]The array of pulse voltages, with one voltage per pulse.
Remarks
Pulses that are continuous or overlapping will merge. If an output channel is set to produce biphasic pulses, the voltage specified for each pulse is sign-inverted for the second phase, i.e. if +5 V is used for phase 1, -5 V is used automatically for phase 2.
Exceptions
- ArgumentException
The specified pulse train
idis invalid.- ArgumentNullException
Either
pulseTimesorpulseVoltagesis null.- ArgumentOutOfRangeException
The maximum length of 1,000 pulses has been exceeded.
SendCustomPulseTrain(CustomTrainId, PulseOnset[])
Sends a sequence of onset times and voltages describing a train of pulses.
public void SendCustomPulseTrain(CustomTrainId id, PulseOnset[] pulseTrain)
Parameters
idCustomTrainIdThe identity of the custom pulse train to program.
pulseTrainPulseOnset[]The array specifying all pulse onset times and voltages, respectively in seconds and volts.
Remarks
Pulses that are continuous or overlapping will merge. If an output channel is set to produce biphasic pulses, the voltage specified for each pulse is sign-inverted for the second phase, i.e. if +5 V is used for phase 1, -5 V is used automatically for phase 2.
Exceptions
- ArgumentException
The specified pulse train
idis invalid.- ArgumentNullException
pulseTrainis null.- ArgumentOutOfRangeException
The maximum length of 1,000 pulses has been exceeded.
SendCustomPulseTrain(CustomTrainId, double[,])
Sends a sequence of onset times and voltages describing a train of pulses.
public void SendCustomPulseTrain(CustomTrainId id, double[,] pulseTrain)
Parameters
idCustomTrainIdThe identity of the custom pulse train to program.
pulseTraindouble[,]A rectangular array of pulse times and pulse voltages, where the first row represents the vector of pulse onset times in seconds, and the second row the corresponding vector of pulse voltages in volts.
Exceptions
- ArgumentException
The specified pulse train
idis invalid.-or-pulseTraindoes not have exactly two rows.- ArgumentNullException
pulseTrainis null.- ArgumentOutOfRangeException
The maximum length of 1,000 pulses has been exceeded.