com.acces.aiousb
Class USB_DIO_16_Family

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

public class USB_DIO_16_Family
extends USBDevice

Class USB_DIO_16_Family represents a USB-DIO-16-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_DIO_16_Family(int productID, int deviceIndex)
          Constructor for USB device.
 
Method Summary
 DigitalIOSubsystem dio()
          Gets a reference to the digital I/O subsystem of this device.
 DIOStreamSubsystem diostream()
          Gets a reference to the digital I/O streaming 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_DIO_16_Family

public USB_DIO_16_Family(int productID,
                         int deviceIndex)
Constructor for USB device. This constructor should not be called explicitly. Instances of class USB_DIO_16_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_DIO_16_Family instance. You can then cast the USBDevice reference obtained from one of those methods to a USB_DIO_16_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_DIO_16_Family device = ( USB_DIO_16_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

dio

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

Returns:
reference to the digital I/O subsystem.

diostream

public DIOStreamSubsystem diostream()
Gets a reference to the digital I/O streaming subsystem of this device.

Returns:
reference to the digital I/O streaming 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.