Example Code

Multiple Channel Differential Scope Acquisition

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.


  • Modular Instrumentation


  • LabVIEW

Code and Documents



This example shows how to take multiple channels of differential data with NI high-speed single-ended digitizer scope cards.


To perform these measurement appropriately, it is important to understand how the physical connections to the different parts of the signal need to be made. Please refer to the Differential Measurements Using High-Speed Digitizers tutorial for more information.



How to Use

  1. Choose your oscilloscope under Resource Name.
  2. Choose the channels you would like to use for each measurement. The VI expects 4 channels and will parse them in this order: Ch0+, Ch0-, Ch1+, Ch1-.
  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 Single-Ended Waveform Graph will populate with all four single-ended voltages, and the Differential Waveform Graph will populate with the two differential voltages.
  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.