From: Gerhard Sittig Date: Fri, 21 May 2021 16:55:57 +0000 (+0200) Subject: scpi-dmm: add four-wire resistance to list of 34405A MQs X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ce96b696b548cc936ad50779b8b317db8bd421fc;p=libsigrok.git scpi-dmm: add four-wire resistance to list of 34405A MQs 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. --- diff --git a/src/hardware/scpi-dmm/api.c b/src/hardware/scpi-dmm/api.c index 4d6acc77..0d3c6735 100644 --- a/src/hardware/scpi-dmm/api.c +++ b/src/hardware/scpi-dmm/api.c @@ -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, },