Example Code

NI Scope with Waveform Processing and Measurement

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

    Driver

  • Other

Code and Documents

Attachment

Overview
This example demonstrates how to acquire two channels of data with a digitizer, apply processing, and make one or two channel scalar measurements after the data has been processed

 
Description
In this example the gain, offset, and thresholds of each channel can be independently configured. The processed data will be displayed on a graph and a scalar measurement will be made on the processed data. The scalar measurement can be configured by the user and the result is displayed in a front panel indicator. The single channel scalar measurements will be made with respect to channel 0 and the two channel scalar measurements will be made based on channel 0 to channel 1.

 
Requirements

  • LabVIEW 2012 (or compatible)
  • NI-Scope


Steps to Implement or Execute Code

  1. Select the Resource corresponding to your digitizer.
  2. Configure any desired settings.

Note: Some measurements require the signal to cross the signal's low, mid and high level references and will result in an error if the condition is not met. Be sure to adjust the parameters in a manner that will allow the driver to make the defined measurement.

  1. Run the VI.

Additional Information or References

 VI Snippet1111.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Steve B

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