From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Advanced Plotting Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to clear/refresh a plot in a loop?

I'm trying to make a real time control chart that only displays the last 30 data points. Is there a way to refresh the plot?

0 Kudos
Message 1 of 3
(6,108 Views)

I was able to do this by creating new plot for each refresh.  This ran flat out at about 130ms loop rate, so it's not for fast updates.

Refresh Sample.png

0 Kudos
Message 2 of 3
(5,786 Views)

Are there any other ways to clear a graph without closing and created a new plot as suggested here?
I'm managing 2d matrix of plots and it take tens of seconds to use this tricks 😞

0 Kudos
Message 3 of 3
(3,891 Views)