Example Code

Differential Measurements Using High-Speed Digitizers

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Modular Instrumentation

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Description

This example shows you how to take differential measurements using National Instruments two-channel high-speed digitizers and NI-SCOPE. 

Using the built-in NI-SCOPE math functions, you can quickly and easily get a differential value without having to manually take the data from two single-ended measurements and perform the subtraction. The attached code demonstrates how to carry this out.

 

 

How to Use

  1. Choose your oscilloscope under Resource Name.
  2. Choose the channel you would like to be the positive input for Main Channel Name, and the negative input for Waveform Measurement: Subtraction Channel
  3. Be sure that you are supplying voltage to each of the specified channels.
  4. Verify that the other configuration settings on the front panel are accurate.
  5. Press run. The Differential Waveform Graph will populate with the difference between the voltage on the Main Channel and the voltage on the Subtraction Channel.
  6. The VI will run continuously until you press the STOP button.

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.