{ DMM_CMD_QUERY_FUNC, "CONF?", },
{ DMM_CMD_START_ACQ, "INIT", },
{ DMM_CMD_STOP_ACQ, "ABORT", },
- { DMM_CMD_QUERY_VALUE, "READ?", },
+ { DMM_CMD_QUERY_VALUE, "FETCH?", },
{ DMM_CMD_QUERY_PREC, "CONF?", },
{ DMM_CMD_QUERY_RANGE_AUTO, "%s:RANGE:AUTO?", },
{ DMM_CMD_QUERY_RANGE, "%s:RANGE?", },
- { DMM_CMD_SETUP_RANGE_AUTO, "%s:RANGE:AUTO ON", },
- { DMM_CMD_SETUP_RANGE, "%s:RANGE %s", },
+ { DMM_CMD_SETUP_RANGE, "CONF:%s %s", },
ALL_ZERO,
};
is_auto = g_ascii_strcasecmp(range, "auto") == 0;
scpi_dmm_cmd_delay(sdi->conn);
- ret = sr_scpi_cmd(sdi, devc->cmdset, 0, NULL,
- is_auto ? DMM_CMD_SETUP_RANGE_AUTO : DMM_CMD_SETUP_RANGE,
- item->scpi_func_setup, is_auto ? "" : range);
+ ret = sr_scpi_cmd(sdi, devc->cmdset, 0, NULL, DMM_CMD_SETUP_RANGE,
+ item->scpi_func_setup, is_auto ? "AUTO" : range);
if (ret != SR_OK)
return ret;