]> sigrok.org Git - libsigrok.git/commitdiff
scpi-dmm: add four-wire resistance to list of 34405A MQs
authorGerhard Sittig <redacted>
Fri, 21 May 2021 16:55:57 +0000 (18:55 +0200)
committerGerhard Sittig <redacted>
Sat, 22 May 2021 06:35:11 +0000 (08:35 +0200)
Although the 34405A does not support this function, other Agilent
protocol using meters do (currently 34465A, very probably others which
are about to get added in the future).

It's assumed that announcing the availability of that MQ for a set of
meters while only some of them support it is preferrable over exploding
numbers of copies of tables which only slightly vary among each other.

src/hardware/scpi-dmm/api.c

index 4d6acc7795f7aee910c67f4aaba5a2132d30247b..0d3c6735de1824a2d64b638b2aa9d01dc85c863a 100644 (file)
@@ -132,6 +132,7 @@ static const struct mqopt_item mqopts_agilent_34405a[] = {
        { SR_MQ_CURRENT, SR_MQFLAG_DC, "CURR:DC", "CURR ", NO_DFLT_PREC, FLAGS_NONE, },
        { SR_MQ_CURRENT, SR_MQFLAG_AC, "CURR:AC", "CURR:AC ", NO_DFLT_PREC, FLAGS_NONE, },
        { SR_MQ_RESISTANCE, 0, "RES", "RES ", NO_DFLT_PREC, FLAGS_NONE, },
+       { SR_MQ_RESISTANCE, SR_MQFLAG_FOUR_WIRE, "FRES", "FRES ", NO_DFLT_PREC, FLAGS_NONE, },
        { SR_MQ_CONTINUITY, 0, "CONT", "CONT", -1, FLAGS_NONE, },
        { SR_MQ_CAPACITANCE, 0, "CAP", "CAP ", NO_DFLT_PREC, FLAGS_NONE, },
        { SR_MQ_VOLTAGE, SR_MQFLAG_DC | SR_MQFLAG_DIODE, "DIOD", "DIOD", -4, FLAGS_NONE, },