Class SetFixedVoltage
Represents an operator that sets a constant voltage on an output channel.
public class SetFixedVoltage : Sink
- Inheritance
-
SetFixedVoltage
- Inherited Members
Properties
Channel
Gets or sets a value specifying the output channel to set to a fixed voltage.
public OutputChannel Channel { get; set; }
Property Value
DeviceName
Gets or sets the name of the Pulse Pal device.
[TypeConverter(typeof(DeviceNameConverter))]
public string DeviceName { get; set; }
Property Value
Voltage
Gets or sets the constant voltage for the output channel.
[Range(-10, 10)]
[Precision(3, 0.001)]
public double Voltage { get; set; }
Property Value
Methods
Process<TSource>(IObservable<TSource>)
Sets a constant voltage on an output channel in the Pulse Pal device whenever an observable sequence emits a notification.
public override IObservable<TSource> Process<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence containing the notifications used to set the fixed voltage on the specified Pulse Pal channel.
Returns
- IObservable<TSource>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of setting a single channel on the Pulse Pal device to a constant voltage whenever the sequence emits a notification.
Type Parameters
TSource
The type of the elements in the
source
sequence.