]> sigrok.org Git - libsigrok.git/commit - src/hardware/scpi-dmm/api.c
scpi-dmm: move OPC availability check to after IDN device identification
authorGerhard Sittig <redacted>
Thu, 20 May 2021 21:08:19 +0000 (23:08 +0200)
committerGerhard Sittig <redacted>
Sat, 22 May 2021 06:35:11 +0000 (08:35 +0200)
commitcae328b54c7b9679bafa6cd4fb00eb0f5894e8a3
tree9628c8d1224dad747c41b4d6795bb85c35e15dd4
parent73816a8d8c1d38a4e7ec866a3c8c6c7b07ef0d7c
scpi-dmm: move OPC availability check to after IDN device identification

Assume that *IDN? requests don't involve expensive processing, and thus
don't require *OPC? before their execution. This makes scpi-dmm follow
the good tradition to only use non-standard or model dependent features
after the device was successfully identified. Which avoids confusion on
unrelated devices.

Exclusively check for *OPC? availability on Owon devices, because these
motivated the introduction of the test in the first place. This avoids
confusion on other devices where short timeouts result in errors because
the response is not retrieved although the command is supported (observed
on Agilent meters connected via USBTMC).
src/hardware/scpi-dmm/api.c
src/hardware/scpi-dmm/protocol.h