I am acquiring data (1000 points every 0.1 s) in a while loop. I would like to calculate the y-mean of the first sample of 1000 points when I click on a boolean "calibrate", store this value somewhere (outside the while loop?) so that I can subtract it from each new y-amplitude. In the vi below, a new y-mean value is calculated in each loop, altough I would only like to use the first one.
Solved! Go to Solution.