com.acces.aiousb
Class USB_DIO_Family
java.lang.Object
com.acces.aiousb.USBDevice
com.acces.aiousb.USB_DIO_Family
public class USB_DIO_Family
- extends USBDevice
Class USB_DIO_Family represents a USB-DIO-family device, which performs basic digital I/O and
encompasses the following product IDs:
Constructor Summary |
USB_DIO_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. |
java.io.PrintStream |
print(java.io.PrintStream stream)
Prints the properties of this device and all of its subsystems. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USB_DIO_Family
public USB_DIO_Family(int productID,
int deviceIndex)
- Constructor for USB device. This constructor should not be called explicitly. Instances
of class USB_DIO_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_Family instance. You can then cast the USBDevice
reference obtained from one of those methods to a USB_DIO_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_Family device = ( USB_DIO_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
dio
public DigitalIOSubsystem dio()
- Gets a reference to the digital I/O subsystem of this device.
- Returns:
- reference to the digital I/O 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.