From: Soeren Apel Date: Wed, 3 Jan 2018 23:23:12 +0000 (+0100) Subject: lecroy-xstream: Wait for trigger before acquiring additional frames X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=d8fb599c679a6da64f28bcafce514558b786b6c7;p=libsigrok.git lecroy-xstream: Wait for trigger before acquiring additional frames --- diff --git a/src/hardware/lecroy-xstream/protocol.c b/src/hardware/lecroy-xstream/protocol.c index 1cbf036e..591f7080 100644 --- a/src/hardware/lecroy-xstream/protocol.c +++ b/src/hardware/lecroy-xstream/protocol.c @@ -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); }