scpi_dmm_get_meas_agilent,
ARRAY_AND_SIZE(devopts_generic),
},
+ {
+ "Keysight", "34465A",
+ 1, 5, cmdset_agilent, ARRAY_AND_SIZE(mqopts_agilent_34405a),
+ scpi_dmm_get_meas_agilent,
+ ARRAY_AND_SIZE(devopts_generic),
+ },
};
static const struct scpi_dmm_model *is_compatible(const char *vendor, const char *model)
size_t i;
gchar *channel_name;
- ret = sr_scpi_get_hw_id(scpi, &hw_info);
scpi_dmm_cmd_delay(scpi);
+ ret = sr_scpi_get_hw_id(scpi, &hw_info);
if (ret != SR_OK) {
sr_info("Could not get IDN response.");
return NULL;
case SR_CONF_LIMIT_MSEC:
return sr_sw_limits_config_get(&devc->limits, key, data);
case SR_CONF_MEASURED_QUANTITY:
- ret = scpi_dmm_get_mq(sdi, &mq, &mqflag, NULL);
+ ret = scpi_dmm_get_mq(sdi, &mq, &mqflag, NULL, NULL);
if (ret != SR_OK)
return ret;
arr[0] = g_variant_new_uint32(mq);
struct sr_scpi_dev_inst *scpi;
struct dev_context *devc;
int ret;
+ const struct mqopt_item *item;
const char *command;
scpi = sdi->conn;
devc = sdi->priv;
ret = scpi_dmm_get_mq(sdi, &devc->start_acq_mq.curr_mq,
- &devc->start_acq_mq.curr_mqflag, NULL);
+ &devc->start_acq_mq.curr_mqflag, NULL, &item);
if (ret != SR_OK)
return ret;
command = sr_scpi_cmd_get(devc->cmdset, DMM_CMD_START_ACQ);
if (command && *command) {
- ret = sr_scpi_send(scpi, command);
scpi_dmm_cmd_delay(scpi);
+ ret = sr_scpi_send(scpi, command);
if (ret != SR_OK)
return ret;
}
command = sr_scpi_cmd_get(devc->cmdset, DMM_CMD_STOP_ACQ);
if (command && *command) {
- (void)sr_scpi_send(scpi, command);
scpi_dmm_cmd_delay(scpi);
+ (void)sr_scpi_send(scpi, command);
}
sr_scpi_source_remove(sdi->session, scpi);