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.
is there a way in a labview waveform graph to hold a plot (similar to matlabs hold on)?
I'm looking for an easy way to plot sampled data after receiving a graph window - without erasing the old plot. And, of course, to erase all old plots with a click. Only way I found is to save all the data in an extra array with extra wiring effort to erase all....
Hi, Actually the graphs in LV are not just the pictures. They are the arrays of data which represent some curve. So plots on the grath are saved in memory as a 2D array of numbers where each row corresponds to some plot. From this point of view 1. To add graph to plot you have to add some row to this 2D array. 2. To remove graph from plot you have to delete some row from 2D array. 3. To erase graph you have to erase the 2D array. This can be done by replacing of it with empty array. 4. To draw new plots you have to replace this 2D array with another one.
I've written an example which performs these three operations. But I didn't take care about colors of plots so when you delete some plot you will see that colors will be shifted. I think that it can be so lved using graph properties responsible for plot colors.