Hi, everyone:
I am using Labview 7.1 and the daq board is NI6023E. My program computes AI analog inputs (4 channels), I used a For loop to gather a certain number of anlog input data, and do the calculation with each input data, and put the calculated data to an array, and then find the minimum value among the array elements. So whenever I push a control button on the front panel, the program is supposed to give me a minimum value. When I run the program the first time it will work, then if the program is running and I push the button a few times, I found the first few elements in the array is not real, it seems they came from the data result when I pushed the button previously. I am not sure if this has to do with daq board buffer. Please help.
I used a stacked sequencial structure (3 frames) for AI config, AI scan, AI clear in each frame. For the for loop I set a delay time 20ms, I found if I increase the delay time, the number of unrealistic data will decrease. For example, if I set 20ms, then I got 15 unrealistic data, if I set 100ms, I only got 3 bad data. But then I cannot set the delay too long because N number of the for loop is hundreds!
Thanks,
bj