User`s guide

Universal Library User's Guide Analog Input Boards - miniLAB 1008
85
Counter I/O argument values
CounterNum 1
Count: 2
32
-1 when reading the counter.
LoadValue 0 when loading the counter.
cbCLoad() and cbCLoad32() / CLoad() and CLoad32()are only used to reset the
counter for this board to 0. No other values are valid.
The ―Basic signed integersguidelines on page 140 apply when using cbCIn() or
CIn() for values greater than 32767, and when using cbCIn32() or CIn32() for
values greater than 2147483647.
RegNum: LOADREG1
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
Resolution
When configured for single-ended mode, the resolution of the data is 11-bits (data values between 0 and
2047). However, the Universal Library maps this data to 12-bit values, so the range of data is no different
from the differential configuration. Consequently, the data returned contains only even numbers between 0
and 4094 when the NOCALIBRATEDATA option is used.
BURSTIO
Allows higher sampling rates (up to 8000 Hz) for sample counts up to 4096. Data is collected into the
miniLAB 1008's local FIFO. Data is collected into the USB 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 the default mode for non-CONTINUOUS fast scans (aggregate sample rates above 1000 Hz) with
sample counts up to 4096. BURSTIO mode allows higher sampling rates (up to 8000 Hz) for sample counts up
to 4096. Non-BURSTIO scans are limited to a maximum of 1200 Hz. To avoid the BURSTIO default, specify
BLOCKIO mode.
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.
Concurrent operations
Concurrent operations on a particular USB device are not allowed. If you invoke a UL or UL for .NET
function on a USB device while another function is running on that USB device, the ALREADYACTIVE error is
returned.