lecroy-xstream: Fix trigger source/slope

This commit is contained in:
Soeren Apel 2017-10-03 16:48:57 +02:00
parent 952c7376e4
commit 5000c12f57
1 changed files with 3 additions and 2 deletions

View File

@ -227,7 +227,7 @@ static int config_set(uint32_t key, GVariant *data,
return SR_ERR_ARG;
state->trigger_source = idx;
g_snprintf(command, sizeof(command),
"SET TRIGGER SOURCE %s", (*model->trigger_sources)[idx]);
"TRIG_SELECT EDGE,SR,%s", (*model->trigger_sources)[idx]);
ret = sr_scpi_send(sdi->conn, command);
break;
case SR_CONF_VDIV:
@ -272,7 +272,8 @@ static int config_set(uint32_t key, GVariant *data,
return SR_ERR_ARG;
state->trigger_slope = idx;
g_snprintf(command, sizeof(command),
"SET TRIGGER SLOPE %s", (*model->trigger_slopes)[idx]);
"%s:TRIG_SLOPE %s", (*model->trigger_sources)[state->trigger_source],
(*model->trigger_slopes)[idx]);
ret = sr_scpi_send(sdi->conn, command);
break;
case SR_CONF_COUPLING: