]> sigrok.org Git - libsigrok.git/commitdiff
lecroy-xstream: Wait for trigger before acquiring additional frames
authorSoeren Apel <redacted>
Wed, 3 Jan 2018 23:23:12 +0000 (00:23 +0100)
committerUwe Hermann <redacted>
Thu, 11 Jan 2018 01:21:50 +0000 (02:21 +0100)
src/hardware/lecroy-xstream/protocol.c

index 1cbf036e8f1c9689eae9e30c4b9a8b06e4623789..591f708012d5555524b72f7cfae943ce7671ce04 100644 (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);
        }