lecroy-xstream: Wait for trigger before acquiring additional frames

This commit is contained in:
Soeren Apel 2018-01-04 00:23:12 +01:00 committed by Uwe Hermann
parent 724b4945d5
commit d8fb599c67
1 changed files with 5 additions and 0 deletions

View File

@ -722,6 +722,11 @@ SR_PRIV int lecroy_xstream_receive_data(int fd, int revents, void *cb_data)
sr_dev_acquisition_stop(sdi);
} else {
devc->current_channel = devc->enabled_channels;
/* Wait for trigger, then begin fetching data. */
g_snprintf(command, sizeof(command), "ARM;WAIT;*OPC");
sr_scpi_send(sdi->conn, command);
lecroy_xstream_request_data(sdi);
}