lecroy-xstream: Wait for trigger before acquiring additional frames
This commit is contained in:
parent
724b4945d5
commit
d8fb599c67
|
@ -722,6 +722,11 @@ SR_PRIV int lecroy_xstream_receive_data(int fd, int revents, void *cb_data)
|
||||||
sr_dev_acquisition_stop(sdi);
|
sr_dev_acquisition_stop(sdi);
|
||||||
} else {
|
} else {
|
||||||
devc->current_channel = devc->enabled_channels;
|
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);
|
lecroy_xstream_request_data(sdi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue