Table of Contents

Class SendCustomPulseTrain

Namespace
Bonsai.PulsePal
Assembly
Bonsai.PulsePal.dll

Represents an operator that uploads each custom pulse train in the sequence to the Pulse Pal device.

public class SendCustomPulseTrain : Sink<PulseOnset[]>
Inheritance
SendCustomPulseTrain
Inherited Members

Properties

CustomTrainIdentity

Gets or sets the identity of the custom pulse train to program.

public CustomTrainId CustomTrainIdentity { get; set; }

Property Value

CustomTrainId

DeviceName

Gets or sets the name of the Pulse Pal device.

[TypeConverter(typeof(DeviceNameConverter))]
public string DeviceName { get; set; }

Property Value

string

Methods

Process(IObservable<PulseOnset[]>)

Uploads each custom pulse train in an observable sequence to the Pulse Pal device, where each pulse train is specified by an array of pulse onset times and voltages.

public override IObservable<PulseOnset[]> Process(IObservable<PulseOnset[]> source)

Parameters

source IObservable<PulseOnset[]>

A sequence of custom pulse trains, where each pulse train is specified by an array of pulse onset times and voltages.

Returns

IObservable<PulseOnset[]>

An observable sequence that is identical to the source sequence but where there is an additional side effect of uploading each custom pulse train in the sequence to the Pulse Pal device.

Process(IObservable<Mat>)

Uploads each custom pulse train in an observable sequence to the Pulse Pal device, where each pulse train is specified by a matrix of pulse onset times and voltages.

public IObservable<Mat> Process(IObservable<Mat> source)

Parameters

source IObservable<Mat>

A sequence of custom pulse trains, where each pulse train is specified by a matrix of pulse onset times and voltages. The first row of the matrix represents the vector of pulse onset times in seconds, and the second row the corresponding vector of pulse voltages in volts.

Returns

IObservable<Mat>

An observable sequence that is identical to the source sequence but where there is an additional side effect of uploading each custom pulse train in the sequence to the Pulse Pal device.

Process(IObservable<double[,]>)

Uploads each custom pulse train in an observable sequence to the Pulse Pal device, where each pulse train is specified by a rectangular array of pulse onset times and voltages.

public IObservable<double[,]> Process(IObservable<double[,]> source)

Parameters

source IObservable<double[,]>

A sequence of custom pulse trains, where each pulse train is specified by a rectangular array of pulse onset times and voltages. The first row of the array represents the vector of pulse onset times in seconds, and the second row the corresponding vector of pulse voltages in volts.

Returns

IObservable<double[,]>

An observable sequence that is identical to the source sequence but where there is an additional side effect of uploading each custom pulse train in the sequence to the Pulse Pal device.