Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

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

by Active Participant alpha1 on ‎08-25-2011 08:26 AM

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

Comments
Active Participant G-Money
Active Participant

Thanks for posting this!

Member brimcd
Member

Great start, but only works up to <History Length>

Another way (seems to work for all- cant seem to upload the vi here!) :

SetXscale.png

Member simyfren
Member

Thanks for tips, but these two VIs doesn't work in my imagination. I improved the second VI, now its work for all time, and data start at scale minimum of the graph, not from scale maximum.

LV_programatically_change_x_range_of_graph.png