User`s guide
Universal Library User's Guide Analog Input Boards - USB-1608FS
98
Event notification
Even notification functions and methods supported
UL: cbEnableEvent(), cbDisableEvent()
UL for .NET: EnableEvent(), DisableEvent()
Event types: ON_SCAN_ERROR, ON_DATA_AVAILABLE, ON_END_OF_AI_SCAN
Hardware considerations
Acquisition rate
Since the maximum data acquisition rate depends on the system connected to the device, it is possible to
"lose" data points when scanning at higher rates. If the requested speed cannot be sustained, an OVERRUN error
will occur.
Maximum rates may be lower in Windows operating systems that predate Windows XP.
Continuous scans
When running cbAInScan() with the CONTINUOUS option, you should consider the packet size and the number
of channels being scanned. In order to keep the data aligned properly in the array, make the total number of
samples an integer multiple of the packet size and the number of channels.
EXTCLOCK
You can set the SYNC pin on the USB-1608FS as a pacer input or a pacer output from InstaCal. By default,
this pin is set for pacer input. If set for output when using the cbAInScan()/AInScan() option, EXTCLOCK
results in a BADOPTION error.
BURSTIO
BURSTIO mode allows higher sampling rates for sample counts up to the size of the FIFO. The USB-1608FS
device's FIFO holds 32,768 samples. Data is collected into the device's local FIFO. Data transfers to the PC
don't occur until the scan completes. For BACKGROUND scans, the Count and Index returned by cbGetStatus()
and GetStatus() remain 0, and Status=RUNNING until the scan finishes. The Count and Index are not
updated until the scan is completed. When the scan is complete and the data is retrieved, cbGetStatus() and
GetStatus() are updated to the current Count and Index, and Status = IDLE.
BURSTIO is required for aggregate Rate settings above 100 kHz, but Count is limited to sample counts up to
the size of the FIFO (32,768 samples). Count settings must be an integer multiple of the number of channels
in the scan.
Miscellaneous functions and methods supported
UL: cbFlashLED()
UL for .NET: FlashLED()
Causes the LED on a USB device to blink. When you have several USB devices connected to the computer,
use these functions to identify a particular device by making its LED blink.