hello one and all,
so i'm connecting a raspberry pi to a Fluke PM6306 LCR meter via GPIB. and i'm trying to do a very simple thing. i put a capacitor into the test clips, hit AUTO and the meter measures and displays capacitance in uF as the primary display and either the impedance or phase as the secondary display.
ok, so in python i'm connected to the meter and setting the frequency and then grabbing the resistance, R, the capacitance, C, and the impedance, Z. i'm then using R and C to compute the impedance to see if the computed value matches the meter's impedance and it is not close at all. the code is:
Xc = 1/(2*pi*f*C)
impedance = sqrt(R**2 + Xc**2)
where f is the frequency Hz, pi is 3.14159, and R and C are returned from the meter's interface. i believe these are the correct equations.
i'm getting like:
f: 3000.0, Z: 12.637, Zcomputed: 124.54949566680497, R: 123.9, C: 4.1763e-06
where Z at 12.637 is no where near Zcomputed at 124.549.
what am i missing here? thank you in advance, lucas