com.acces.aiousb
Class AI16_DataPoint

java.lang.Object
  extended by com.acces.aiousb.AI16_DataPoint

public class AI16_DataPoint
extends java.lang.Object

Class AI16_DataPoint represents a single data point captured from a USB_AI16_Family device. It encapsulates not only the captured sample, but the channel from which the sample was captured and the range and differential mode in effect when the sample was captured, providing a fairly complete representation of the captured data. This class also provides methods to retrieve the captured data in either A/D counts or volts.


Method Summary
 int getChannel()
          Gets the channel number from which this data point was captured.
 int getCounts()
          Gets the captured data in A/D counts.
 int getRange()
          Gets the range that was in effect when this data point was captured.
 java.lang.String getRangeText()
          Gets the textual representation of the range that was in effect when this data point was captured.
 double getVolts()
          Gets the captured data in volts.
 boolean isDifferentialMode()
          Gets the differential/single-ended mode that was in effect when this data point was captured.
 java.lang.String toString()
          Gets a single-line string summary of this data point.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getChannel

public int getChannel()
Gets the channel number from which this data point was captured.

Returns:
The channel number from which this data point was captured.

getRange

public int getRange()
Gets the range that was in effect when this data point was captured.

Returns:
The range that was in effect when this data point was captured.
See Also:
AnalogInputSubsystem.getRange()

getRangeText

public java.lang.String getRangeText()
Gets the textual representation of the range that was in effect when this data point was captured.

Returns:
The textual representation of the range that was in effect when this data point was captured.

isDifferentialMode

public boolean isDifferentialMode()
Gets the differential/single-ended mode that was in effect when this data point was captured.

Returns:
The differential/single-ended mode that was in effect when this data point was captured.
See Also:
AnalogInputSubsystem.isDifferentialMode()

getCounts

public int getCounts()
Gets the captured data in A/D counts.

Returns:
The captured data in A/D counts.

getVolts

public double getVolts()
Gets the captured data in volts.

Returns:
The captured data in volts.

toString

public java.lang.String toString()
Gets a single-line string summary of this data point. Mainly useful for diagnostic purposes.

Overrides:
toString in class java.lang.Object
Returns:
A single-line string summary of this data point.