Table of Contents

Class ConfigureChannelParameter

Namespace
Bonsai.PulsePal
Assembly
Bonsai.PulsePal.dll

Represents an operator that configures a single channel parameter on a Pulse Pal device.

[WorkflowElementCategory(ElementCategory.Sink)]
public class ConfigureChannelParameter : PolymorphicCombinator, ICustomTypeDescriptor, INamedElement
Inheritance
ConfigureChannelParameter
Implements
Inherited Members

Constructors

ConfigureChannelParameter()

Initializes a new instance of the ConfigureChannelParameter class.

public ConfigureChannelParameter()

Properties

DeviceName

Gets or sets the name of the Pulse Pal device.

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

Property Value

string

Parameter

Gets or sets the channel parameter to configure.

[Externalizable(false)]
[TypeConverter(typeof(CombinatorTypeConverter))]
public ChannelParameterConfiguration Parameter { get; set; }

Property Value

ChannelParameterConfiguration

Methods

Process(IObservable<PulsePalDevice>)

Configures a single channel parameter on every Pulse Pal device in the observable sequence.

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

Parameters

source IObservable<PulsePalDevice>

The sequence of Pulse Pal devices to configure.

Returns

IObservable<PulsePalDevice>

An observable sequence that is identical to the source sequence but where there is an additional side effect of configuring a single channel parameter on each Pulse Pal device.

Process<TSource>(IObservable<TSource>)

Configures a single channel parameter on the Pulse Pal device whenever an observable sequence emits a notification.

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

Parameters

source IObservable<TSource>

The sequence containing the notifications used to trigger configuration of the Pulse Pal channel parameter.

Returns

IObservable<TSource>

An observable sequence that is identical to the source sequence but where there is an additional side effect of configuring a single channel parameter on the Pulse Pal device whenever the sequence emits a notification.

Type Parameters

TSource

The type of the elements in the source sequence.