Example Code

Use cursors of a Graph Indicator to do analysis of a set of data

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

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview
To demonstrate how to utilize cursors in a graph for manipulating data

Description:
This VI was created in order to allow a user to use the cursors of a Graph Indicator to manipulate a set of data. This uses a DAQmx task to gather a finite number of sample data. The user then can select the cursor position to find the average of the data.

Steps to implement or execute code
To implement this example:

  1. Set parameters for configuration settings.
  2. Run VI!
  3. Click Do Test? button.
  4. Change cursor positions for the start and stop
  5. Once select, hit "Do Test?" button again to gather data and find the Mean
  6. Modify VI as needed to use the cursors for data manipulation

To execute this example:

  1. Install the required software.
  2. Connect the DAQ hardware that supports the Analog Input features
  3. Confirm the connection with the MAX with TestPanel
  4. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible
NI-DAQmx 16.0 or compatible

Hardware
cDAQ with C series Analog Input Module

 

fp.JPGbd.JPG

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

Frank,
National Instruments
Software Group Manager

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