From: Wolfram Sang Date: Sun, 3 Jan 2016 21:27:41 +0000 (+0100) Subject: dmm: vc870: fix AC conversion factors X-Git-Tag: libsigrok-0.4.0~37 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b4a0770ef8dc5deba8072679039ac4288cbc3454;p=libsigrok.git dmm: vc870: fix AC conversion factors Testing showed that AC current needs to be handled different from DC. Note that ACA is still untested because of limited testing equipment. Signed-off-by: Wolfram Sang --- diff --git a/src/dmm/vc870.c b/src/dmm/vc870.c index d14b8415..ee61483b 100644 --- a/src/dmm/vc870.c +++ b/src/dmm/vc870.c @@ -46,11 +46,17 @@ static const float factors[][8] = { {1e-4, 0, 0, 0, 0, 0, 0, 0}, /* Diode */ {1e-3, 1e-2, 1e-1, 1, 1e1, 1e2, 1e3, 1e4}, /* Frequency */ {1e-2, 0, 0, 0, 0, 0, 0, 0}, /* Loop current */ + /* + * Note: Measurements showed that AC and DC differ + * in the factors used, although docs say they should + * be the same. + */ {1e-8, 1e-7, 0, 0, 0, 0, 0, 0}, /* DCµA */ - {1e-8, 1e-7, 0, 0, 0, 0, 0, 0}, /* ACµA */ + {1e-7, 1e-6, 0, 0, 0, 0, 0, 0}, /* ACµA */ {1e-6, 1e-5, 0, 0, 0, 0, 0, 0}, /* DCmA */ - {1e-6, 1e-5, 0, 0, 0, 0, 0, 0}, /* ACmA */ + {1e-5, 1e-4, 0, 0, 0, 0, 0, 0}, /* ACmA */ {1e-3, 0, 0, 0, 0, 0, 0, 0}, /* DCA */ + /* TODO: Verify factor for ACA */ {1e-3, 0, 0, 0, 0, 0, 0, 0}, /* ACA */ {1e-1, 0, 0, 0, 0, 0, 0, 0}, /* Act+apparent power */ {1e-1, 0, 0, 0, 0, 0, 0, 0}, /* Power factor / freq */