Measurement Specialties USB-1616HS-2 Analog and digital scanning, once per scan mode example

Page 21

USB-1616HS-2 User's Guide

Functional Details

The counter channels may return only the lower 16-bits of count value if that is sufficient for the application. They could also return the full 32-bit result if necessary. Similarly, the digital input channel could be the full 24 bits if desired or only eight bits if that is sufficient. If the three counter channels are all returning 32-bit values and the digital input channel is returning a 16-bit value, then 13 samples are being returned to the PC every scan period, with each sample being 16-bits. The 32-bit counter channels are divided into two 16-bit samples—one for the low word, and the other for the high word. If the maximum scan frequency is 166,666 Hz, then the data bandwidth streaming into the PC is 2.167 MS/s. Some slower PCs may have a problem with data bandwidths greater than 6 MS/s.

The USB-1616HS-2 has an onboard 1 MS buffer for acquired data.

Example: Sampling digital inputs for every analog sample in a scan group

The scan is programmed pre-acquisition and is made up of six analog channels (Ch0, Ch2, Ch5, Ch11, Ch13, Ch15) and four digital channels (16-bits of digital input, three counter inputs.) Each of the analog channels can have a different gain.

The acquisition is triggered and the samples stream to the PC via the USB cable. Each analog channel requires one microsecond of scan time therefore the scan period can be no shorter than 6 µs for this example. All of the digital channels are sampled at the start of scan and do not require additional scanning bandwidth as long as there is at least one analog channel in the scan group. The 16-bits of digital input are sampled for every analog sample in the scan group. This allows up to 1 MHz digital input sampling while the 1 MHz analog sampling bandwidth is aggregated across many analog input channels.

The scan period can be made much longer than 6 µs—up to 1 second. The maximum scan frequency is one divided by 6 µs, or 166,666 Hz. Note that digital input channel sampling is not done during the "dead time" of the scan period where no analog sampling is being done either.

Figure 10. Analog and digital scanning, once per scan mode example

If the three counter channels are all returning 32-bit values and the digital input channel is returning a 1-bit value, then 18 samples are returned to the PC every scan period, with each sample being 16-bits. Each 32-bit counter channel is divided into two 16-bit samples—one for the low word and the other for the high word. If the maximum scan frequency is 166,666 Hz, then the data bandwidth streaming into the PC is 3 MS/s. Some slower PCs may have a problem with data bandwidths greater than 6 MS/s.

The USB-1616HS-2 has an onboard 1 MS buffer for acquired data.

21

Image 21
Contents Page USB-1616HS-2 Management committed to your satisfaction Trademark and Copyright Information Table of Contents USB-1616HS-2 Users Guide About this Users Guide Where to find more informationWhat you will learn from this users guide Conventions used in this users guideSoftware features Overview USB-1616HS-2 featuresIntroducing the USB-1616HS-2 ChapterTR-2U power supply and CA-1* line cord Installing the USB-1616HS-2What comes with your USB-1616HS-2 shipment? HardwareUnpacking the USB-1616HS-2 Installing the softwareAdditional documentation CA-96A expansion cableInstalling the hardware Connecting the board for I/O operations Configuring the hardwareConnectors, cables main I/O connector Information on signal connectionsUSB-1616HS-2 screw terminal pin out single-ended connections Screw terminal pin outsDSUB25 expansion connector pin out DSUB25F expansion connectorCA-96A expansion cable CablingUSB-1616HS-2 components Functional DetailsUSB-1616HS-2 components rear view External power connectorUSB-1616HS-2 functional block diagram USB-1616HS-2 block diagramAnalog input scanning Analog inputSettling time Example Analog channel scanning of voltage inputsAnalog and digital scanning, once per scan mode example Example Analog and digital scanning, once per scan modeAnalog and digital scanning, once per scan mode example Thermocouple input Tips for making accurate temperature measurementsShielding AveragingAnalog output Triggering Digital I/ODigital input scanning Digital outputs and pattern generationHardware analog triggering Digital triggeringSoftware-based triggering Counter inputs Stop trigger modesPre-triggering and post-triggering modes Tips for making high-speed counter measurements 1 MHz Totalize modeMapped channels Counter modesDebounce modes Trigger before stable mode Trigger after stable modeDebounce module Trigger before stable mode Debounce mode comparisonsOptimal debounce time for trigger before stable mode Encoder modeRepresentation of rotary shaft quadrature encoder Maximizing encoder accuracy Connecting the USB-1616HS-2 to an encoderTimer outputs Example Timer outputsTimer output frequency examples Detection setpoint overview Using multiple USB-1616HS-2s per PCCriteria input signal is equal to Action driven by condition Using the setpoint status register Setpoint configurationExamples of control outputs Detecting on analog input, DAC, and Firstportc updatesAnalog inputs with setpoints update on True and False Detection on an analog input, timer output updatesTimer output update on True and False Using the hysteresis functionDetecting setpoints on a totalizing counter Using multiple inputs to control one DAC outputFIRSTPORTC, DAC, or timer update latency Controlling analog, digital, and timer outputsDetection setpoint details Firstportc Calibrating the USB-1616HS-2 Analog input specifications SpecificationsAnalog input accuracy specifications AccuracyAnalog outputs Analog output specificationsThermocouples Thermocouple TC types and accuracy NoteDigital input/output Digital input/output specificationsInput sequencer specifications Counter specificationsCounters Input sequencerFrequency/pulse generator specifications Power consumptionPower consumption specifications Note Frequency/pulse generatorsUSB specifications External powerSignal I/O connectors and pin out EnvironmentalUSB-1616HS-2 screw terminal pin out single-ended connections USB-1616HS-2 screw terminal pin out differential connections USA Declaration of ConformityMailinfo@mccdaq.com