com.acces.aiousb
Class USB_AI16_Family

java.lang.Object
  extended by com.acces.aiousb.USBDevice
      extended by com.acces.aiousb.USB_AI16_Family

public class USB_AI16_Family
extends USBDevice

Class USB_AI16_Family represents a USB-AI16-family device, which encompasses the following product IDs:


Field Summary
 
Fields inherited from class com.acces.aiousb.USBDevice
CLEAR_FIFO_METHOD_AUTO, CLEAR_FIFO_METHOD_IMMEDIATE, CLEAR_FIFO_METHOD_IMMEDIATE_AND_ABORT, CLEAR_FIFO_METHOD_WAIT, CUSTOM_EEPROM_SIZE
 
Constructor Summary
USB_AI16_Family(int productID, int deviceIndex)
          Constructor for USB device.
 
Method Summary
 AnalogInputSubsystem adc()
          Gets a reference to the analog input subsystem of this device.
 CounterSubsystem ctr()
          Gets a reference to the counter/timer subsystem of this device.
 DigitalIOSubsystem dio()
          Gets a reference to the digital I/O subsystem of this device.
 java.io.PrintStream print(java.io.PrintStream stream)
          Prints the properties of this device and all of its subsystems.
 
Methods inherited from class com.acces.aiousb.USBDevice
customEEPROMRead, customEEPROMWrite, getCommTimeout, getDeviceIndex, getName, getProductID, getSerialNumber, reset, setCommTimeout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

USB_AI16_Family

public USB_AI16_Family(int productID,
                       int deviceIndex)
Constructor for USB device. This constructor should not be called explicitly. Instances of class USB_AI16_Family are automatically created by the USB device manager when they are detected on the bus. You should use one of the USBDeviceManager.getDeviceByProductID() search methods to obtain a reference to a USB_AI16_Family instance. You can then cast the USBDevice reference obtained from one of those methods to a USB_AI16_Family and make use of this class' methods, like so:

Vector<USBDevice> devices = deviceManager.getDeviceByProductID( deviceManager.USB_AI16_16A, deviceManager.USB_AI12_128E );
if( devices.size() > 0 )
  USB_AI16_Family device = ( USB_AI16_Family ) devices.get( 0 );

Parameters:
productID - the product ID of the device.
deviceIndex - the index of the device on the USB bus.
Throws:
java.lang.IllegalArgumentException
Method Detail

adc

public AnalogInputSubsystem adc()
Gets a reference to the analog input subsystem of this device.

Returns:
reference to the analog input subsystem.

dio

public DigitalIOSubsystem dio()
Gets a reference to the digital I/O subsystem of this device.

Returns:
reference to the digital I/O subsystem.

ctr

public CounterSubsystem ctr()
Gets a reference to the counter/timer subsystem of this device.

Returns:
reference to the counter/timer subsystem.

print

public java.io.PrintStream print(java.io.PrintStream stream)
Prints the properties of this device and all of its subsystems. Mainly useful for diagnostic purposes.

Overrides:
print in class USBDevice
Parameters:
stream - the print stream where properties will be printed.
Returns:
The print stream.