@@ -29,26 +29,29 @@ public class BreakoutAnalogOutput : Sink<Mat>
29
29
/// Gets or sets the data type used to represent analog samples.
30
30
/// </summary>
31
31
/// <remarks>
32
- /// If <see cref="BreakoutAnalogIODataType.S16"/> is selected, each DAC value is represented by a signed, twos-complement encoded
33
- /// 16-bit integer. In this case, the output voltage always corresponds to <see cref="BreakoutAnalogIOVoltageRange.TenVolts"/>.
34
- /// When <see cref="BreakoutAnalogIODataType.Volts"/> is selected, 32-bit floating point voltages between -10 and 10 volts are sent
35
- /// directly to the DACs.
32
+ /// If <see cref="BreakoutAnalogIODataType.S16"/> is selected, each DAC value is represented by a
33
+ /// signed, twos-complement encoded 16-bit integer. In this case, the output voltage always
34
+ /// corresponds to <see cref="BreakoutAnalogIOVoltageRange.TenVolts"/>. When <see
35
+ /// cref="BreakoutAnalogIODataType.Volts"/> is selected, 32-bit floating point voltages between -10
36
+ /// and 10 volts are sent directly to the DACs.
36
37
/// </remarks>
37
38
[ Description ( "The data type used to represent analog samples." ) ]
38
39
[ Category ( DeviceFactory . ConfigurationCategory ) ]
39
40
public BreakoutAnalogIODataType DataType { get ; set ; } = BreakoutAnalogIODataType . S16 ;
40
41
41
42
/// <summary>
42
- /// Send a matrix of samples to analog outputs
43
+ /// Send an matrix of samples to all enabled analog outputs.
43
44
/// </summary>
44
45
/// <remarks>
45
- /// If a matrix contains multiple samples, they will be written to hardware as quickly as communication allows.
46
- /// The data within each input matrix must have <see cref="Depth.S16"/> when <see
47
- /// cref=" DataType"/ > is set to <see cref="BreakoutAnalogIODataType.S16"/> or <see cref="Depth.F32"/>
48
- /// when <see cref=" DataType"/ > is set to <see cref="BreakoutAnalogIODataType.Volts"/>.
46
+ /// If a matrix contains multiple samples, they will be written to hardware as quickly as
47
+ /// communication allows. The data within each input matrix must have <see cref="Depth.S16"/> when
48
+ /// <c> DataType</c > is set to <see cref="BreakoutAnalogIODataType.S16"/> or <see cref="Depth.F32"/>
49
+ /// when <c> DataType</c > is set to <see cref="BreakoutAnalogIODataType.Volts"/>.
49
50
/// </remarks>
50
- /// <param name="source"> A sequence of 12xN sample matrices containing the analog data to write to channels 0 to 11.</param>
51
- /// <returns> A sequence of 12xN sample matrices containing the analog data that were written to channels 0 to 11.</returns>
51
+ /// <param name="source"> A sequence of 12xN sample matrices containing the analog data to write to
52
+ /// channels 0 to 11.</param>
53
+ /// <returns> A sequence of 12xN sample matrices containing the analog data that were written to
54
+ /// channels 0 to 11.</returns>
52
55
public override unsafe IObservable < Mat > Process ( IObservable < Mat > source )
53
56
{
54
57
var dataType = DataType ;
@@ -109,15 +112,17 @@ public override unsafe IObservable<Mat> Process(IObservable<Mat> source)
109
112
}
110
113
111
114
/// <summary>
112
- /// Send an 12-element array of values to update all analog outputs.
115
+ /// Send an 12-element array of values to update all enabled analog outputs.
113
116
/// </summary>
114
117
/// <remarks>
115
- /// This overload should be used when <see cref=" DataType"/ > is set to <see
118
+ /// This overload should be used when <c> DataType</c > is set to <see
116
119
/// cref="BreakoutAnalogIODataType.S16"/> and values should be within -32,768 to 32,767, which
117
120
/// correspond to -10.0 to 10.0 volts.
118
121
/// </remarks>
119
- /// <param name="source"> A sequence of 12x1 element arrays each containing the analog data to write to channels 0 to 11.</param>
120
- /// <returns> A sequence of 12x1 element arrays each containing the analog data to write to channels 0 to 11.</returns>
122
+ /// <param name="source"> A sequence of 12x1 element arrays each containing the analog data to write
123
+ /// to channels 0 to 11.</param>
124
+ /// <returns> A sequence of 12x1 element arrays each containing the analog data to write to channels 0
125
+ /// to 11.</returns>
121
126
public IObservable < short [ ] > Process ( IObservable < short [ ] > source )
122
127
{
123
128
if ( DataType != BreakoutAnalogIODataType . S16 )
@@ -141,14 +146,16 @@ public IObservable<short[]> Process(IObservable<short[]> source)
141
146
}
142
147
143
148
/// <summary>
144
- /// Send an 12-element array of values to update all analog outputs.
149
+ /// Send an 12-element array of values to update all enabled analog outputs.
145
150
/// </summary>
146
151
/// <remarks>
147
- /// This overload should be used when <see cref=" DataType"/ > is set to <see
152
+ /// This overload should be used when <c> DataType</c > is set to <see
148
153
/// cref="BreakoutAnalogIODataType.Volts"/> and values should be within -10.0 to 10.0 volts.
149
154
/// </remarks>
150
- /// <param name="source"> A sequence of 12x1 element arrays each containing the analog data to write to channels 0 to 11.</param>
151
- /// <returns> A sequence of 12x1 element arrays each containing the analog data to write to channels 0 to 11.</returns>
155
+ /// <param name="source"> A sequence of 12x1 element arrays each containing the analog data to write
156
+ /// to channels 0 to 11.</param>
157
+ /// <returns> A sequence of 12x1 element arrays each containing the analog data to write to channels 0
158
+ /// to 11.</returns>
152
159
public IObservable < float [ ] > Process ( IObservable < float [ ] > source )
153
160
{
154
161
if ( DataType != BreakoutAnalogIODataType . Volts )
0 commit comments