How to Display and Clear Data When I Use the Build XY Graph Express VI in a Loop?

Updated Sep 19, 2018

Reported In

Software

  • LabVIEW

Issue Details

I am using the Build XY Graph Express VI.
  • When I wire a true to the Reset, my data is displayed on the XY Graph but it looks like it keeps being redrawn over and over.
  • When I wire a false to the Reset, I can only clear my graph by stopping and running my VI again.

Why am I seeing this behavior? 

Solution

When the Build XY Graph Express VI is running in a loop and has a true value wired to its Reset input:
 
  • The Build XY Graph Express VI clears all of its stored values every time the loop iterates and the XY Graph outputs to only display the new values. Change the Reset input's value to false to retain values from previous loop iterations and display all iterations on the XY Graph.

When the Build XY Graph Express VI is running in a loop and has a false value wired to its Reset input:
 
  • The Build XY Graph Express VI retains values from previous loop iterations and displays all iterations on the XY Graph. To display new sets of data on your graph without displaying old sets, wire a true to the Reset input and send each complete set of data per iteration of your loop. 

The attached VI provides a demonstration of the different behavior of the XY Graph depending on the Reset input value.

 

WAS THIS ARTICLE HELPFUL?

Not Helpful