Example Code

Set Markers on Waveform Chart Using LabVIEW

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.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example shows how you can set markers on a waveform chart.  It will space the specified number of markers evenly on the x-axis.

 

Description

The VI gets the range of the x-axis scale and divides by the number of desired markers.  It then calculates the positions for the markers and writes the values to the Marker Positions Property.

 

Requirements

Software:

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Change the Number of Markers control.
2. Run the VI.

 

Additional Information or Resources

 

2012.png

 

 

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

 

Bryan H.

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