07-24-2019 07:37 AM
like this case
07-24-2019 08:18 AM
@0Forest0 wrote:
That function create an array with choosen value only in first call.
Since when? It will create a new array every time it is called.
07-24-2019 10:54 AM
I did not realize I had a NaN value within the array which is why the values were not plotting. Filtering out any NaN values fixed the problem.
I went with the array in the shift register because I wanted the option to be able to change how much data I wanted to plot and wanted to start with an empty array. Since I am only collecting a new set of values every 10-15 seconds, 100 values would take around 20 minutes to gather. Using the Data Queue method was throwing off the plotting of the first 100 samples until 100 values were collected.
As for the array growing unchecked, I do control when to reset the array and the pace at which it inserts the new values. The span at which the array grows can last a few hours to a few days. I might have to put a limit on the size the array can get.
Thanks for the help!