47
Digitizers - Fundamentals Chinmay Anand Misra High-Speed Digitizers Chinmay Anand Misra Certified LabVIEW Developer Staff Applications Engineer

Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Embed Size (px)

Citation preview

Page 1: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Digitizers - Fundamentals

Chinmay Anand Misra

High-Speed Digitizers

Chinmay Anand Misra

Certified LabVIEW Developer

Staff Applications Engineer

Page 2: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Agenda

Introduction

DAQ and Digitizers

Programming High Speed Digitizers

NI Digitizers FamilyNI Digitizers Family

Digitizers – Additional Features (OSP, Flex Resolution, etc.)

Advanced Topics (TDC, RIS, etc.)

High-Speed Digitizers

Page 3: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Digitizer - Introduction

• Also known as oscilloscopes

• Observe continuously varying signal voltages

over time

High-Speed Digitizers

Page 4: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

ApplicationsCable Fault Testing

• Using a DMM to measure a line voltage, and triggering a digitizer to examine the waveform when the RMS power drops below a given threshold.

Video Signal Analysis

• Capturing video signals with a frame grabber, and triggering a digitizer to check the quality of the scan lines.

Communication Protocol TestingCommunication Protocol Testing

• Checking communication protocols with a protocol analyzer, and triggering a digitizer to check the signal quality of the line when the protocol analyzer detects an error.

Disk Drive Testing, Ultrasonic Material Testing,Switching Power Supplies Testing,…….

High-Speed Digitizers

Page 5: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Compared to DAQ, Digitizers Have…

• Higher sampling rates

• Deeper onboard memory

• Faster rearm times

• More accurate timestamps vs.• More accurate timestamps

• Programmed with NI-Scope

• No counters, AO or DIO

• No terminal blocks

• Fewer input channels

High-Speed Digitizers

vs.

Page 6: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

SMIO (611x, 6120) High Speed Digitizers

80kS/s to 10MS/s 20 to 1000 MS/s

10 to 16 bits 8 to 24 bits

2 or 4 AI and 2 AO Channels 1, 2 or 8 AI Channels

16MB to 32 MB onboard mem 1MB to 512MB onboard mem

DAQ vs. Digitizers

High-Speed Digitizers

16MB to 32 MB onboard mem 1MB to 512MB onboard mem

$3595 to $4995 $900 to $14000

Page 7: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

5105 5114 5922 5122 5124 5152 5153 5154

Form Factor PCI/PXI PCI/PXI PCI/PXIPCI/PXI/

PXIePCI/PXI PCI/PXI PCI/PXI PCI/PXI

Resolution (bits) 12 8 16-24 14 12 8 8 8

Sample Rate

(MS/s)60 250 0.5-15 100 200 2000 2000 2000

Bandwidth

(MHz)60 125 6 100 150 300 500 1000

NI Digitizers Product Line

(MHz)

Input

Impedance50Ω/1MΩ 50Ω/1MΩ 50Ω/1MΩ 50Ω/1MΩ 50Ω/1MΩ 50Ω/1MΩ 50Ω 50Ω

Max Range

(Vpp)6/30 10/40 10 10/20 10/20 10 5 5

# Channels 8 2 2 2 2 2 2 2

Cost$4800-

$9600

$3000-

$6500

$7900-

$12100

$6500-

$14000

$7500-

$13500

$5500-

$10000

$7000-

$12000

$9000-

$14000

SMC-based device

Page 8: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

5102 5112 5132 5133 5142 5620 5621 5622

Form Factor PCI PCI/PXI USB USB PCI/PXI PXI PXI PXIe

Resolution

(bits)8 8 8 8 14 14 14 16

Sample Rate

(MS/s)20 100 50 100 100 64 64 150

Bandwidth

(MHz)15 100 50 50 100 0.01-36 36

3-250

162.5-212.5

NI Digitizers Product Line

(MHz) 162.5-212.5

Input

Impedance1MΩ 50Ω/1MΩ 1MΩ 1MΩ 50Ω/1MΩ 50Ω 50Ω 50Ω

Max Range

(Vpp)10 50 40 40 10/20 2 2 2.8

# Channels 2 2 2 2 2 1 1 1

Cost $1600$3100-

$4700

$900-

$1200

$1200-

$1500

$8800-

$13500

$3700-

$5700n/a

$8000-

$11000

SMC-based device Legacy device

Page 9: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

NI-Scope and LabVIEW• Driver for all high-speed digitizers

• Requires NI-DAQ, NI-VISA, and NI-IVI

• LabVIEW, CVI, Visual C++, Visual Basic, .NET and Microsoft C

• Available for Windows, Linux, and PharLap Operating Systems

• Includes the Scope Soft Front Panel

• IVI compliant

High-Speed Digitizers

• IVI compliant

• Located in Measurement I/O

Page 10: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Measurements• Over 50 built-in measurements in NI-Scope!

• Measurements are done in software by the driver.

• Scalar measurements including:

• Array measurements including:

• Frequency

• Rise/fall time

• Peak to peak voltage

• Period

• RMS voltage

• Max/min voltage

• Array measurements including:

• FFT Amplitude Spectrum

• Waveform math → Add, Subtract, Multiply, Divide

• Time and Voltage Histograms

• Can combine processing steps before final measurement (eg- filter

signal before returning RMS voltage)

High-Speed Digitizers

Page 11: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

LabVIEW RT Support

Supported Devices

• NI 5105

• NI 5114

• NI 5122

• NI 5124

NOTE: No legacy devices are

supported

• NI 5124

• NI 5142

• NI 515x

• NI 5922

• Any Digitizer with SMC

High-Speed Digitizers

Page 12: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Scope Soft Front Panel

• Get started quickly

• Mimics look & feel of boxed scope

• Save waveforms

• Save configuration• Save configuration

• Simulation

• Multiple SFP Launches

• View time domain, freq. domain, or XY plot (CH0 vs CH1)

• View measurements

High-Speed Digitizers

Page 13: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

• Introduced in NI-SCOPE 2.7

• Allows quick and simple

configuration of an

acquisition

NI-Scope Express VI

• Provides access to most of

the functionality of the

digitizer

High-Speed Digitizers

Page 14: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Programming Flow

1. Initialize session

2. Configure acquisition

3. Acquire/read data3. Acquire/read data

4. Include error information

5. Close session

High-Speed Digitizers

Page 15: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Initialize

• Initialize opens a session to the instrument

• Initialize with options allows more custom

configuration

High-Speed Digitizers

Page 16: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Vertical Parameters

Range Full Scale (peak to peak) voltage range

Vertical Offset Middle of the input range

Coupling Rejects or accepts the DC signal component

AC - rejects any DC component

DC - passes all frequencies including DC

High-Speed Digitizers

DC - passes all frequencies including DC

Probe Attenuation Scales the acquired data

Channel Enabled Allows a channel to acquire data

Page 17: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Advanced Vertical Parameters

Input Impedance 50 Ω or 1 MΩ impedance for channel

Max Input Frequency Cutoff frequency of the analog input filter

High-Speed Digitizers

Page 18: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Horizontal Parameters

Number of Records Number of records to acquire

Sample Rate Frequency at which digitized samples are acquired

Enforce Realtime Allows random interleaved sampling

Min Record Length Samples to store for each record

Reference Position Pretrigger versus posttrigger points specified in

High-Speed Digitizers

Reference Position Pretrigger versus posttrigger points specified in

percentage

Page 19: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

• Immediate

• Software

• Edge

• Digital

Trigger Types

High-Speed Digitizers

• Digital

• Hysteresis

• Window

• Video (NI 5114, 5142 & 5122/5124 only)

Page 20: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Immediate Trigger

• The digitizer does not wait for a trigger of any kind

High-Speed Digitizers

Page 21: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Software Trigger

• Triggers on a Software call

• Not supported on the 5102

High-Speed Digitizers

Page 22: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Edge Trigger

• Trigger when a signal crosses a specified level with a specified slope

• Source can be a channel or the external trigger input

High-Speed Digitizers

Page 23: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Digital Trigger

• Trigger on either a rising or falling edge of a digital signal

• Source can be a RTSI line, PFI line, or the PXI Star trigger

High-Speed Digitizers

Page 24: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Hysteresis Trigger

• Positive slope • Negative slope

High-Speed Digitizers

• Source can be a channel or the external trigger input

Page 25: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Window Trigger

• Entering window • Leaving window

High-Speed Digitizers

• Source can be a channel or the external trigger input

Page 26: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Trigger Holdoff

• After a trigger is received, the digitizer will wait for a specified amount of time before starting the next record

High-Speed Digitizers

Page 27: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Trigger Delay• Digitizer waits a specified amount of time after a trigger to start

post trigger acquisition

– Only on the NI 5105, 5112, 5114, 5122, 5124, 5142,. 5152 and 5922

– Not supported with Random Interleaved Sampling (Discussed Later)

High-Speed Digitizers

Page 28: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Initiate Acquisition

• Commits settings to hardware

• Starts the acquisition (starts taking pretrigger

samples)

High-Speed Digitizers

Page 29: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Fetch

• Retrieves the data from the board’s memory– Timeout - how long to wait for data

– NumSamples - how many samples to retrieve

• Scaled or binary data

High-Speed Digitizers

Scaled or binary data– Scaled - applies a gain, offset and probe attenuation to the

retrieved data

– Binary - retrieves the data unformatted for faster transfer

rates

Page 30: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Fetch Versus Multi-Fetch

• Fetch– Single channel, single record acquisition in LabVIEW

– Single channel, multiple channel and/or multiple record in

non-LabVIEW environments

• Multi-Fetch– Multiple channel and/or multiple record acquisition

– LabVIEW only

High-Speed Digitizers

Page 31: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Read

• Initiates and fetches data– timeout - how long to wait for data

– numSamples - how many samples to retrieve

• Scaled data onlyScaled data only

• Read and Multi-Read in LabVIEW

High-Speed Digitizers

Page 32: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Reading vs. Fetching

• Fetch supports binary data

• Read is a blocking function – You cannot do other things in the thread while this

function waits for the data

– Initiate, Acquisition Status and Fetch for non-blocking

retrieval

• Fetch supports software triggering

High-Speed Digitizers

Page 33: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Digitizers – Additional Features

• Onboard Signal Processing (OSP)

– 5142

– 5622

• Flexible Resolution• Flexible Resolution

– 5922

• USB

– 5132

– 5133

High-Speed Digitizers

Page 34: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Onboard Signal Processing

• Equalization FIR Filter

• Digital Gain/Offset

• Digital Downconverter (DDC)

– Frequency Translation – Frequency Translation

– Filtering and Decimation

– Data Processing Mode Selection

High-Speed Digitizers

Page 35: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Onboard Signal Processing

High-Speed Digitizers

Page 36: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

5922 Flex Resolution

• 16 to 24 bit Resolution

• 500 kS/s to 15 MS/s

• Anti-aliasing hardware filter

• Large dynamic range• Large dynamic range

High-Speed Digitizers

Page 37: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

USBUSB--513x513x

• Bus Powered!

• 2 ch, 50/100 MS/s

• 8-bit resolution

• 8 or 64 MB onboard memory• 8 or 64 MB onboard memory

• Analog and digital triggering

• 0.04 V – 40 V software selectable input range

• BNC connectivity with 1 MΩ input impedance

• 20 MHz noise filter

High-Speed Digitizers

Page 38: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Advanced Topics

1. Timestamps

2. Random Interleaved Sampling (RIS)

3. Multiple Record Acquisition

4. Continuous Acquisition4. Continuous Acquisition

5. Onboard Memory

High-Speed Digitizers

Page 39: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Time Stamps

• A free running clock and a counter is used to accurately record the time of an event

• A time is recorded for the first point in an acquisition and for the time between the first point and a triggerpoint and a trigger

• Allows you to correlate multiple records or even multiple acquisitions

High-Speed Digitizers

Page 40: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Time to Digital Conversion (TDC)

• Measures the time between the trigger and

the sample clock

High-Speed Digitizers

Page 41: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Random Interleaved Sampling (RIS)

• Uses TDC to effectively increase sample rate

• Must be periodic/repetitive signal

• Combines multiple waveforms

High-Speed Digitizers

Page 42: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

RIS

Bin 1 Bin 2 Bin 3

High-Speed Digitizers

Page 43: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Multiple Record Acquisition

• A digitizer performs multiple acquisitions without reconfiguring

• NI-SCOPE stores each acquisition in separate memory records

• Hardware advances to the next record without software interaction

• Fast rearm time ≤ 100 µs

• Supported on all digitizers except NI 5102 and USB-513x.

• Software Timed workaround for NI 5132, 5133

– NI USB-5132/5133 Acquisition Benchmarks

High-Speed Digitizers

Page 44: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Onboard Memory

• 100,000 records limitation

– With modification I32 size limitation

• Memory not shared across channels except 5105

• Depth of On Board Memory• Depth of On Board Memory

High-Speed Digitizers

Memory Usage = Bit Resolution * Sample Rate * Acquisition Time * No. Records

Memory Usage = 12 bits * 10 MS/s * 50 ms * 10 Records

Memory Usage = 16 bits * 10 MS/s * 50 ms * 10 Records

Memory Usage = 80 MB

Page 45: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Continuous Acquisition

• “Fetch forever”

• Configuring a single triggered record and never sending the trigger

• Continuously fetching pre-triggered samples• Continuously fetching pre-triggered samples

High-Speed Digitizers

Page 46: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Fetch Forever Block Diagram

High-Speed Digitizers

Page 47: Digitizers -Fundamentals - National Instrumentsindia.ni.com/sites/default/files/Oscilloscope Fundamentals.pdf · • Digital Trigger Types ... Memory Usage = Bit Resolution * Sample

Thank you!

High-Speed Digitizers