From: Gerhard Sittig Date: Thu, 20 May 2021 21:46:17 +0000 (+0200) Subject: scpi-dmm: add "switch to local" support for Agilent protocol X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=118da66f8d8ab1ce2a60f429654f533df7f9ee08;p=libsigrok.git scpi-dmm: add "switch to local" support for Agilent protocol Send "SYST:LOC" to Agilent protocol speaking scpi-dmm devices at the end of the probe (--scan) as well as in close (--show, --samples, etc). This ends "remote" and re-enters "local" mode after programmatic use. Should increase usability, eliminates the need for manual intervention before subsequent DMM use. Was tested with a Keysight DMM. Does not affect the HP protocol speaking devices. --- diff --git a/src/hardware/scpi-dmm/api.c b/src/hardware/scpi-dmm/api.c index 520dc706..077debc7 100644 --- a/src/hardware/scpi-dmm/api.c +++ b/src/hardware/scpi-dmm/api.c @@ -50,6 +50,7 @@ static const uint32_t devopts_generic_range[] = { static const struct scpi_command cmdset_agilent[] = { { DMM_CMD_SETUP_REMOTE, "\n", }, + { DMM_CMD_SETUP_LOCAL, "SYST:LOC", }, { DMM_CMD_SETUP_FUNC, "CONF:%s", }, { DMM_CMD_QUERY_FUNC, "CONF?", }, { DMM_CMD_START_ACQ, "INIT", },