User`s guide
Universal Library User's Guide Analog Input Boards - USB-1616HS, USB-1616HS-2, and USB-1616HS-4
113
Setpoints
You enable setpoints with the SETPOINT_ENABLE flag. This flag must be OR'ed with the ChanTypeArray
argument values. You set the setpoint criteria with cbDaqSetSetpoints()/DaqSetSetpoints(). The number
of channels set with the SETPOINT_ENABLE flag must match the number of setpoints set by the SetpointCount
argument (cbDaqSetSetpoints()/DaqSetSetpoints()).
Output non-streamed data to a DAC output channel
With NONSTREAMEDIO mode, you can output non-streamed data to a specific DAC output channel. The
aggregate size of the data output buffer must be less than or equal to the size of the internal data output FIFO
in the device. The FIFO holds 524288 samples. This allows the data output buffer to be loaded into the
device's internal output FIFO. Once the sample updates are transferred or downloaded to the device, the
device is responsible for outputting the data. You can't change the output buffer once the output begins.
Trigger DAC output operations with the ADC clock
Specify the ADCCLOCKTRIG option to trigger a data output operation upon the start of the ADC clock.
DIO PortNum
For cbDOutScan()/DOutScan() and cbDaqOutScan()/DaqOutScan(), FIRSTPORTA and FIRSTPORTB are
treated as one 16-bit port. These functions can only be used with FIRSTPORTA. You must configure both
FIRSTPORTA and FIRSTPORTB for output using cbDConfigPort()/DConfigPort().
Synchronous scanning with multiple boards
You can operate up to four USB-1616HS Series boards synchronously by setting the direction of the A/D and
D/A pacer pins (APR or DPR) in InstaCal.
On the board used to pace each device, set the pacer pin that you want to use (APR or DPR) for Output. On
the board(s) that you want to synchronize with this board, set the pacer pin that you want to use (APR or
DPR) for Input.
You set the direction using the InstaCal configuration dialog's APR Pin Direction and DPR Pin Direction
settings
Wire the pacer pin configured for output to each of the pacer input pins that you want to synchronize.
Quadrature encoder operations
To configure a counter channel as a multi-axis quadrature encoder, use the cbCConfigScan()/CConfigScan()
Mode argument values to set a specified counter to encoder mode, set the encoder measurement mode to X1,
X2, or X4, and then set the count to be latched either by the internal "start of scan" signal (default) or by the
signal on the mapped counter.
You can optionally perform the following operations:
Enable gating, so that the counter is enabled when the mapped channel to gate the counter is high. When
the mapped channel is low, the counter is disabled but holds the count value.
Enable "latch on Z" to latch counter outputs using the Encoder Z mapped signal.
Enable "clear on Z" so that the counter is cleared on the rising edge of the mapped (Z) counter. By
default, clear on Z" is disabled, and the counter is not cleared.