Manual USB-DIO24-CTR6
15
Chapter 5: Programming
The onboard firmware of the device can be controlled directly using any USB compatible
operating system driver (such as VISA, or libusb) but we provide a convenient linux and
Windows compatible wrapper library. In Windows, the AIOUSB.DLL (available in both 32-bit
and 64-bit versions) provides a wide variety of functions for your use.
The following functions represent those most commonly used for this device. For more
details, consult the USB Software Reference Manual (.pdf), or the linux /doc/ trees, as
appropriate.
unsigned long DIO_Configure(DeviceIndex, bTristate, pOutMask, pData)
unsigned long DIO_WriteAll(DeviceIndex,pData)
unsigned long DIO_ReadAll(DeviceIndex,Buffer)
unsigned long CTR_8254ModeLoad(DeviceIndex, BlockIndex, CounterIndex,Mode,
LoadValue)
unsigned long CTR_8254Read(DeviceIndex, BlockIndex, CounterIndex, pReadValue)