12-23-2011 10:52 AM
I've been using the 34410A drivers in labview (specifically "read single measurement") to obtain a voltage. Essentially, I put that inside of a loop so it will measure a voltage over and over again which gets logged (upwards to 600+ times). The issue now is that occasionally, a zero volt reading will return in the log file. I thought it was a timing issue so I added a delay (100ms to 500ms) in between each read but I am still experiencing this issue.
Have anyone encountered this before or know how to fix it?
Thanks!
12-23-2011 11:11 AM
Are you checking for errors from your Read functions? You might be getting a communication error, and as a result the default value for the data which would be zero.
12-23-2011 02:07 PM
Note: This is all from the Agilent 34401 driver for labview... I have a power supply connected directly to the DMM, so it's measuring at all times.
There is an error check at the end of the read (single point). vi that "check for questionable data warnings and instrument errors" but it does not trigger when a 0 volt reading returns... What I did find is that under the fetch measurement (fast read).vi is where the measurements come from. There is a case structure in here where true = "If there is data in memory, then read", else "If there is no data in memory, then just pass through".
I'm guessing at a random occurance, the device thinks there's no data in memory and so returns a 0 even though there should be a value?
In any case, is it possible to fix this?
Thanks again.
12-23-2011 05:57 PM
Are you sure your instrument is not reading 0V? What are you measuring? Have you tried stopping the program when this happens to see what your variable and memory contents are at that time? Once this occurs, stop the program and do a secondary read (automatically or manually) and see if you get the same result. This system may be simply returning what it sees.
11-12-2012 10:42 AM
Anyone have an answer for this. Im having the same problem.
11-12-2012 10:58 AM
Did you ever find anything out on this? Im having the same problem.
11-14-2012 09:34 AM
Hi,
Is this happening so often? I mean, how much times on a log of N samples do you get this behavior?
11-14-2012 10:31 AM
It is random. It may be 1 time out of 100 samples or 2 times out of 1000 samples. Instead of using the Read(Single point VI) I wrote a VI that uses the MEASURE command instead of using the FETCH and READ commands that the Read(Single Point VI) uses and it solved the problem. I havent got a 0 reading yet.
11-14-2012 10:37 AM
Great!!!
07-25-2017 04:37 AM
it seems to me that by adding an Autozero.vi (Once) funtion before the Initiate Measurement.vi will solve the problem. Until now, running the program with 10 samples/sec for 25 mins without any 0 volt reading.