]> sigrok.org Git - libsigrok.git/commitdiff
scpi-dmm: adjust MQ table for Agilent 34405A
authorGerhard Sittig <redacted>
Sat, 17 Nov 2018 16:17:43 +0000 (17:17 +0100)
committerGerhard Sittig <redacted>
Sat, 17 Nov 2018 19:17:48 +0000 (20:17 +0100)
Rename the table to reflect that it's model specific. Remove the 4-wire
resistance function which this device does not support.

src/hardware/scpi-dmm/api.c

index f6820de389c97938780dd290ab696d5d47cf421b..009cb2ecb22140ce2bc73c48a6bb5750bde7cc28 100644 (file)
@@ -49,13 +49,12 @@ static const struct scpi_command cmdset_agilent[] = {
        ALL_ZERO,
 };
 
-static const struct mqopt_item mqopts_agilent_5digit[] = {
+static const struct mqopt_item mqopts_agilent_34405a[] = {
        { SR_MQ_VOLTAGE, SR_MQFLAG_DC, "VOLT:DC", "VOLT ", NO_DFLT_PREC, },
        { SR_MQ_VOLTAGE, SR_MQFLAG_AC, "VOLT:AC", "VOLT:AC ", NO_DFLT_PREC, },
        { SR_MQ_CURRENT, SR_MQFLAG_DC, "CURR:DC", "CURR ", NO_DFLT_PREC, },
        { SR_MQ_CURRENT, SR_MQFLAG_AC, "CURR:AC", "CURR:AC ", NO_DFLT_PREC, },
        { SR_MQ_RESISTANCE, 0, "RES", "RES ", NO_DFLT_PREC, },
-       { SR_MQ_RESISTANCE, SR_MQFLAG_FOUR_WIRE, "FRES", "FRES ", NO_DFLT_PREC, },
        { SR_MQ_CONTINUITY, 0, "CONT", "CONT", -1, },
        { SR_MQ_CAPACITANCE, 0, "CAP", "CAP ", NO_DFLT_PREC, },
        { SR_MQ_VOLTAGE, SR_MQFLAG_DC | SR_MQFLAG_DIODE, "DIOD", "DIOD", -4, },
@@ -66,7 +65,7 @@ static const struct mqopt_item mqopts_agilent_5digit[] = {
 SR_PRIV const struct scpi_dmm_model models[] = {
        {
                "Agilent", "34405A",
-               1, 5, cmdset_agilent, ARRAY_AND_SIZE(mqopts_agilent_5digit),
+               1, 5, cmdset_agilent, ARRAY_AND_SIZE(mqopts_agilent_34405a),
                scpi_dmm_get_meas_agilent,
                ARRAY_AND_SIZE(devopts_generic),
        },