I have an input that is being output to a waveform chart. The viewable area is 1024 samples long. This input occurs during a case loop. When the case is true, data is displayed on the chart. When the case is false, the display stops updating, but keeps the current data in view.
I then have another case statement which determines whether the data should be saved or not. The problem I am having is that I am only getting one data point when I save the file.
Is there a way to put the data into a circular buffer that only keeps the 1024 points that are on the screen and deletes everything before them?
An example would be extremely helpful.
THANKS!