From: Gerhard Sittig Date: Sat, 17 Nov 2018 16:17:43 +0000 (+0100) Subject: scpi-dmm: adjust MQ table for Agilent 34405A X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=64d03de1c2a0b9b1a088f49ac5ebe530987a7103;p=libsigrok.git scpi-dmm: adjust MQ table for Agilent 34405A Rename the table to reflect that it's model specific. Remove the 4-wire resistance function which this device does not support. --- diff --git a/src/hardware/scpi-dmm/api.c b/src/hardware/scpi-dmm/api.c index f6820de3..009cb2ec 100644 --- a/src/hardware/scpi-dmm/api.c +++ b/src/hardware/scpi-dmm/api.c @@ -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), },