]> sigrok.org Git - libsigrok.git/commit - src/scpi/scpi.c
scpi: Add a function to read and wait on a *OPC? reply.
authorpoljar (Damir Jelić) <redacted>
Sat, 9 Nov 2013 11:49:08 +0000 (12:49 +0100)
committerUwe Hermann <redacted>
Tue, 3 Dec 2013 14:10:01 +0000 (15:10 +0100)
commitf5922adef5a866bd1c292436f1c4bc6b93103aef
tree62abd7ac8c5a742b6606fe843da4654853f1404b
parentd730f70e06653c60d65c668cce02f358decce991
scpi: Add a function to read and wait on a *OPC? reply.

The SCPI standard specifies the "*OPC?" command (Operation complete query) which
queries the instrument for its operative state. When all pending operations are
complete, the instrument responds with a "1".

Some manufacturers block before completing all operations and don't respond
with anything and some of them respond with a "0". This function handles both
cases uniformly.
hardware/common/scpi.c
libsigrok-internal.h