User`s guide
Universal Library User's Guide Analog Input Boards - USB-1608HS, USB-1608HS-2AO
101
*Although cbCIn() and CIn() are valid for use with this counter, cbCIn32() or
CIn32() may be more appropriate, since the values returned may be greater than
the data types used by cbCIn() and CIn() can handle.
**cbCLoad(), cbCLoad32(), CLoad() and CLoad32() only accept Count=0. These
functions are used to reset the counter.
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 integers‖ guidelines 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
Configuration
Configuration functions and methods supported
UL: cbGetConfig(), cbSetConfig(), cbGetConfigString(), cbSetConfigString()
ConfigItem: BIADTRIGCOUNT, BINODEID
Device Number: 0
maxConfigLen: At least 64 for BINODEID
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.
Device identifier
You can enter up to 64 characters for the value of the device's text identifier using the ConfigItem option
BINODEID with cbSetConfigString().