The USB-1616HS-BNC supports the following features.
Functions
UL: cbAIn(), cbAInScan(), cbALoadQueue(), cbFileAInScan(), cbAPretrig()*
UL for .NET: AIn(), AInScan(), ALoadQueue(), FileAInScan(), APretrig()*
Python for Windows: a_in(), a_in_scan(), a_load_queue(), a_pretrig()
* Pretrigger capability is implemented in software. PretrigCount must be less than the TotalCount and cannot exceed 100000 samples. TotalCount must be greater than the PretrigCount. If a trigger occurs while the number of collected samples is less than the PretrigCount, that trigger is ignored. Pretrigger requires calling to cbSetTrigger/SetTrigger/set_trigger() to set the analog trigger type.
Options
BACKGROUND, CONTINUOUS, EXTCLOCK, DMAIO, BLOCKIO, EXTTRIGGER*
* With EXTTRIGGER mode, the first channel in the scan is the analog trigger channel.
HighChan
0 to 15 (only differential mode is available)
Rate
Up to 1 MHz
Range
| BIP10VOLTS (±10 volts) | BIPPT5VOLTS (±0.5 volts) |
| BIP5VOLTS (±5 volts) | BIPPT2VOLTS (±0.2 volts) |
| BIP2VOLTS (±2 volts) | BIPPT1VOLTS (±0.1 volts) |
| BIP1VOLTS (±1 volts) |
Functions
UL: cbAOut(), cbAOutScan(), cbVOut()
UL for .NET: AOut(), AOutScan(), VOut()
Python for Windows: a_out(), a_out_scan(), v_out()
Options
BACKGROUND, CONTINUOUS, EXTCLOCK, SIMULTANEOUS, NONSTREAMEDIO, ADCCLOCKTRIG, ADCCLOCK
NONSTREAMEDIO can only be used with the number of samples set equal to the size of the FIFO or less. The FIFO holds 524288 samples.
HighChan
0 to 1
Rate
1 MHz
Range
Ignored - not programmable; fixed at BIP10VOLTS (±10 volts)
DataValue
0 to 65,535 (Refer to 16-bit values using a signed integer data type for information on 16-bit values using unsigned integers.)
Pacing
Hardware pacing, external or internal clock supported.
Configuration
Functions
UL: cbDConfigPort()
UL for .NET: DConfigPort()
Python for Windows: d_config_port()
PortNum
FIRSTPORTA, FIRSTPORTB
Port I/O
Functions
UL: cbDIn(), cbDOut(), cbDInScan(), cbDOutScan()*
UL for .NET: DIn(), DOut(), DInScan(), DOutScan()*
Python for Windows: d_in(), d_out(), d_in_scan(), d_out_scan()*
*FIRSTPORTA and FIRSTPORTB must be set for output to use this function. Refer to DIO PortNum in the Hardware Considerations section for more information.
Options
BACKGROUND, CONTINUOUS, EXTCLOCK, EXTTRIGGER, WORDXFER, NONSTREAMEDIO, ADCCLOCKTRIG, ADCCLOCK
Rate
12 MHz
PortNum
FIRSTPORTA, FIRSTPORTB
DataValue
0 to 255
0 to 65,535 using the WORDXFER option with FIRSTPORTA
Bit I/O
Functions
UL: cbDBitIn(), cbDBitOut()
UL for .NET: DBitIn(), DBitOut()
Python for Windows: d_bit_in(), d_bit_out()
PortType
FIRSTPORTA
BitNum
0 to 23
Functions
UL: cbCClear(), cbCConfigScan(), cbCIn(), cbCIn32(), cbCInScan(),
UL for .NET: CClear(), CConfigScan, CIn(), CIn32(), CInScan(),
Python for Windows: c_clear(), c_config_scan() c_in(), c_in_32(), c_in_scan
Counters on these boards are zero-based – the first counter number is "0".
Rate
6 MHz
CounterNum
0 to 3
Options
BACKGROUND, CONTINUOUS, EXTTRIGGER
You can use cbSetTrigger()/SetTrigger() to program the trigger for rising edge, falling edge, or the level of the digital trigger input (TTL).
Mode
When using Period and PulseWidth modes, note that the initial period is dependent upon the frequency of the signal being measured, a signal is required in order to latch data into the register, and the first sample in a scan is always zero, since it is not data that has been latched by the measured signal.
LoadValue
0 to 65,535 (Refer to 16-bit values using a signed integer data type in the Universal Library Description and Use section for information on 16-bit values using unsigned integers.)
Functions
UL: cbTimerOutStart(), cbTimerOutStop()
UL for .NET: TimerOutStart(), TimerOutStop()
Python for Windows: timer_out_start(), timer_out_stop()
TimerNum
0 to 1
Frequency
15.260 Hz to 1.0 MHz
Functions
UL: cbSetTrigger()
UL for .NET: SetTrigger()
Python for Windows: set_trigger()
TrigType
TRIGABOVE, TRIGBELOW, TRIGHIGH, TRIGLOW, TRIGPOSEDGE, TRIGNEGEDGE
Digital triggering (TRIGHIGH, TRIGLOW, TRIGPOSEDGE, TRIGNEGEDGE) is not supported for pre-trigger acquisitions (cbAPretrig() function).
Analog triggering (TRIGABOVE, TRIGBELOW) is not supported for cbDInScan() and cbCInScan().
Threshold
Analog hardware triggering, 12-bit resolution: 0 to 4,095 (supported for cbAInScan()/AInScan only).
Analog software triggering, 16-bit resolution: 0 to 65,535 (supported for cbAPretrig()/APreTrig() only)
Functions
UL: cbDaqInScan()
UL for .NET: DaqInScan()
Python for Windows: daq_in_scan()
Options
BACKGROUND, BLOCKIO, CONTINUOUS, DMAIO, EXTCLOCK, EXTTRIGGER
ChanTypeArray
ANALOG, DIGITAL8, DIGITAL16, CTR16, CTR32LOW, CTR32HIGH, CJC, TC, SETPOINTSTATUS
When mixing the ANALOG channel type with any other input types, the ANALOG channels should be first in the list.
ChanArray
ANALOG:
DIGITAL8: FIRSTPORTA, FIRSTPORTB
DIGITAL16: FIRSTPORTA
CTR16: 0-3 counters
CTR32LOW: 0-3 counters
CTR32HIGH: 0-3 counters
CJC: 0 to 5 (0 to 11 if the AI-EXP48 is installed.)
TC: 0 to 7 (0 to 31 if the AI-EXP48 is installed.)
SETPOINTSTATUS: 16-bit port that indicates the current state of the 16 possible setpoints.
ChanTypeArray flag value:
Rate
Analog: Up to 1 MHz.
Digital: Up to 12 MHz if no analog channel is selected. Otherwise up to 1 MHz.
Counter: Up to 12 MHz if no analog channel is selected. Otherwise up to 1 MHz.
GainArray
ANALOG only; ignore for other ChanTypeArray values.
BIP10VOLTS (±10 volts)
BIP5VOLTS (±5 volts)
BIP2VOLTS (±2 volts)
BIP1VOLTS (±1 volts)
BIPPT5VOLTS (±0.5 volts)
BIPPT2VOLTS (±0.2 volts)
BIPPT1VOLTS (±0.1 volts)
PretrigCount
100000 max
Functions
UL for .NET: DaqSetTrigger()
Python for Windows: daq_set_trigger()
TrigSource
TRIG_IMMEDIATE, TRIG_EXTTTL, TRIG_ANALOGHW, TRIG_ ANALOGSW, TRIG_DIGPATTERN, TRIG_COUNTER, TRIG_SCANCOUNT
TrigSense
RISING_EDGE, FALLING_EDGE, ABOVE_LEVEL, BELOW_LEVEL, EQ_LEVEL, NE_LEVEL
TrigEvent
START_EVENT, STOP_EVENT
Functions
UL for .NET: DaqSetSetpoints()
Python for Windows: daq_set_setpoints()
SetpointFlagsArray
SF_EQUAL_LIMITA, SF_LESSTHAN_LIMITA, SF_GREATERTHAN_LIMITB, SF_OUTSIDE_LIMITS, SF_HYSTERESIS, SF_UPDATEON_TRUEONLY, SF_UPDATEON_TRUEANDFALSE
SetpointOutputArray
SO_NONE, SO_FIRSTPORTC, SO_TMR0, SO_TMR1, SO_DAC0, SO_DAC1
LimitAArray
Any value valid for the associated input channel.
Ignored for SF_GREATERTHAN_LIMITB
LimitBArray
Any value valid for the associated input channel and less than LimitA.
Ignored for SF_EQUAL_LIMITA, SF_LESSTHAN_LIMITA
Output#Array
For SetpointOutputArray = SO_NONE: Ignored
For SetpointOutputArray = SO_TMR#: 0 (to disable the timer) or 15.26 to 1000000 (to set the output frequency)
For SetpointOutputArray = SO_DAC#: Voltage values between -10 and +10
OutputMask#Array
Ignored
SetpointCount
0 (to disable setpoints) to 16
Functions
UL: cbDaqOutScan()
UL for .NET: DaqOutScan()
Python for Windows: daq_out_scan()
Options
ADCCLOCK, ADCCLOCKTRIG, BACKGROUND, CONTINUOUS, NONSTREAMEDIO, SIMULTANEOUS
ChanType
ANALOG, DIGITAL16
ChanArray
ANALOG: 0 to 1
DIGITAL16: FIRSTPORTA (FIRSTPORTB must be configured as an output)
Rate
ANALOG: Up to 1 MHz
DIGITAL16: Up to 12 MHz (system-dependent) if no analog channel is selected. Otherwise up to 1 MHz.
Range
BIP10VOLTS (±10 volts)
This hardware supports device detection with the API. Refer to the InstaCal, API Detection, or Both? section for information about whether to use InstaCal or the API to detect and configure hardware.
Factory serial number
Listed as Serial # (read only)
Number of channels
No. of Channels drop-down combo box.
Calibration coefficients table
Calibration Coefficients drop-down combo box.
Input pacer clock edge
XAPCR Edge drop-down combo box.
Input pacer clock direction
XAPCR Pin Direction drop-down combo box.
ADC settling time
ADC Settling Time drop-down combo box.
Factory serial number
ConfigItem = BIDEVSERIALNUM
UL for .NET: GetDeviceSerialNum()
Python for Windows: get_config_string()
config_item = DEVSERIALNUM
Input mode
UL: cbAInputMode()
UL for .NET: AInputMode()
Python for Windows: a_input_mode
Calibration coefficients table
UL: cbGetConfig(), cbSetConfig()
ConfigItem = BICALTABLETYPE
ConfigVal = CAL_TABLE_FACTORY, CAL_TABLE_FIELD
UL for .NET: GetCalTableType(), SetCalTableType()
Python for Windows: get_config(), set_config()
config_item = CALTABLETYPE
config_val = FACTORY, FIELD
Input pacer clock edge
UL: cbGetConfig(), cbSetConfig()
ConfigItem = BIEXTINPACEREDGE
ConfigVal = EXT_PACER_EDGE_RISING, EXT_PACER_EDGE_FALLING
UL for .NET: GetExtInPacerEdge(), SetExtInPacerEdge()
Python for Windows: get_config(), set_config()
config_item = EXTINPACEREDGE
config_val = ExtPacerEdge enum
Input pacer clock direction
UL: cbGetConfig(), cbSetConfig()
ConfigItem = BIINPUTPACEROUT
ConfigVal = ENABLED, DISABLED
UL for .NET: GetInputPacerOut(), SetInputPacerOut()
Python for Windows: get_config(), set_config()
config_item = INPUTPACEROUT
config_val = State enum. When enabled, the input clock is set for output.
ADC settling time
UL: cbGetConfig(), cbSetConfig()
ConfigItem = BIADCSETTLINGTIME
ConfigVal = SETTLE_DEFAULT, SETTLE_1us, SETTLE_5us, SETTLE_10us, SETTLE_1ms
UL for .NET: GetAdSettlingTime(), SetAdSettlingTime()
Python for Windows: get_config(), set_config()
config_item = ADCSETTLETIME
config_val = SettleTime
For input and output scans, the count must be set to an integer multiple of the number of channels or a BADCOUNT error is returned.
Sampling and update rates are system-dependent. Data overruns/underruns may occur with higher sampling rates when using BACKGROUND and CONTINUOUS modes. To avoid this, use a larger buffer/count size, or use NONSTREAMEDIO mode, if supported.
The minimum size buffer is 256 for cbAOutScan()/AOutScan()/a_out_scan(). Values less than that result in a BADBUFFERSIZE error.
For most applications, settling time should be left at the default value of 1 µs. However, if you are scanning multiple channels and one or more channels are connected to a high impedance source, you may get better results by increasing the settling time. Keep in mind that increasing the settling time reduces the maximum acquisition rate. You can set the time between A/D conversions with the ADC Settling Time option in InstaCal. Select between 1 µs, 5 µs, 10 µs, or 1 ms.
You enable setpoints with the SETPOINT_ENABLE flag. This flag must be OR'ed with the ChanTypeArray argument values. 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()).
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 make any changes to the output buffer once the output begins.
Specify the ADCCLOCK option to trigger a data output operation upon the start of the ADC clock.
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().
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 channel.
You can optionally perform the following operations:
When using Period and PulseWidth modes, note that the initial period is dependent upon the frequency of the signal being measured, a signal is required in order to latch data into the register, and the first sample in a scan is always zero, since it is not data that has been latched by the measured signal.
Concurrent operations are not allowed. If you invoke a function while another function is already running on the device, the ALREADYACTIVE error is returned.