01-06-2020 01:36 PM
Hi,
Yes trying to reset DC V DCV 2 and the Waveform output either on press of the clear button or start button.
I tried what you suggest below, and what happens is the arrays are cleared momentarily, however when the data is collected on a new run, somehow the "cleared" data is back in the array even though it was passed into the event structure as a blank array. I have also tried shifting in a default empty array to the read loop like others have suggested above and that doesn't help either.
I even tried adding a reference to the port and using the reinitialize to default command. This does clear the data until you hit start and all of a sudden the old data is back and the new data keeps getting appended to the end of the old data. ( attached the latest rev of the VI below, along with some pictures)
I also tried for laughs between presses of the start button going through a for loop and deleting every element in the array 1 by 1. that does clear it.... until the case restarts then magically the data is back again. It seems