Good afternoon,
Recently my boss came to me and asked me to write a LabView program for the HP4194a Impedance Analyzer. I seem to have successfully completed that task using the instrument driver and example as a basis for it, but I have an intermittent data transfer error.
Basically, I'm running the HP analyzer over the GPIB using labview 8.5.1. It sets all of the parameters correctly, and does a magnitude/phase sweep, then retrieves registers A,B,X. When we retrieve A, B, or X, something seems to go wrong intermittently and we get a column of data that has the number of points in the first value of the array, and the rest of the column is zeros. About half of the time it does this, it repeats the error, on a different data column several times. Below there's a few example data sets that I made up to illustrate it. The timing is left to right.
1: 2: 3:
Using just 4 demo points
Freq(X) Mag(A) Phs(B) Freq(X) Mag(A) Phs(B) Freq(X) Mag(A) Phs(B)
100 12354 401 401 12354 401 100 12354 -90
- - 0
0 - 0 - 0 -
- - 0
0 - 0 - 0 -
1000 234 0 0 234 0
1000 0 -110
If you look at example 3, you'll notice the column of Mag doesn't have the number of points in the first spot. I don't understand why, but the first value in the magnitude is always the correct value according to the machine. Also, I say intermittently because some days this problem simply doesn't appear. Some days it appears a lot. I originally thought it was GPIB read/write time, but I checked the manual for the analyzer and my time gives it more than enough time to transfer all of the data, and lengthening and shortening the time doesn't affect the error at all.
Also, I've been trying to force this error for the last few days, and I can't find a way to reproduce it on demand. I've done everything I can think of from removing the read delay to making the read delay 10 seconds, changing settings, reading multiple times, etc. The only thing that seemed to make the error appear more often was changing the integration time. A long (setting on the machine) integration time with an 840 ms read delay caused the error to appear more often.
Has anybody seen this error before, or does anyone have any suggestions for tracking it down?
Thank you,
-Matthew Dumas
matthew.dumas@authentec.com