First of all, I am using a NI PCI 6110 device and Labview 6.1 (under Windows XP).
Ok, here's what happens:
I am using basic VI's (AI Config, AI start, AI Read and AI clear) to do data acquisition on 3 analog channels. The AI Read is inside a "for" loop, and is executed only twice. Parameters for the data acquisition may be changed by the user before the acquisition. The data obtained is saved in a .xls file.
The problem I have right now is that the first few (about 1 to 5, it changes randomly) data acquisition done using the VI are generally perfect (note: for testing purpose, the parameters are the same for all the data acquisition and the sampling frequency is 5 or 10 kHz). Then, one of th
e data acquisition will have one impossible reading. By impossible, I mean a voltage of either 1250 or 1312,5 V on a 120 V RMS line. Once I get that in a data acquisition, if I still don't change any parameters, that strange reading will always be at the exact same place in other data acquisition. If I change the parameters, the odd reading will simply be at another place.
The only way I've found to get rid of that reading is to restart the computer. Once it has restarted, I can get 1 to 5 good data acquisition, then it starts again.
I've attached images of two different Excel files containing bad data. I was using the same parameters for both acquisitions. The last column of data indicates the state of a relay (used as a switch; 170 means connected and 0 means disconnected). It is analog data transformed, once the acquisition is over, into a kind of digital data. It is sometimes (not always) affected by the same problem, except that the strange value is 0. The current
values do not seem to be affected.
One last note: the scan backlog of the AI read always indicates 0 and I can confirm that the bad data is coming directly from AI read; it does not appear during data processing.
Any ideas would be appreciated; thanks!