Skip navigation

Community

Currently Being Moderated

Programmatically Set/Select Range of Waveform Chart's X Axis

VERSION 1 
Created on: Aug 25, 2011 8:26 AM by alpha1 - Last Modified:  Aug 25, 2011 8:40 AM by alpha1

Introduction

 

When you set the range of a waveform chart, by right-clicking the waveform chart and selecting Chart History Length - LabVIEW will automatically always show you the end of this range of values. However, if you set the maximum range with a property node, we always see the beginning of this range of values. We can programmically get the same functionality/behaviour as the Chart History Length by checking the current history of the chart, and then setting both the maximum and minimum through a property node. Don't forget that the array is zero-indexed!

 

xscale_screenshot.png

 

Requirements

 

LabVIEW 2011 or later (for new controls, like screenshot)

LabVIEW 8.5 or later (compatibility mode)

 

How To Use

 

1. Download the attached VI

2. Run the VI

3. You can change the range while the VI is running

Attachments:
Comments (3)