Closed nielshaandbaek closed 2 years ago
Unfortunately, our API does not currently have asynchronous versions of the functions that setc
and setv
map to, namely setComplex
and setVector
. Therefore, I couldn't implement the functionality for those functions.
The purpose of this PR is to add support for setting device settings faster by not waiting for a response from the server. The functionality is implemented using
asyncBegin
andasyncEnd
added to the base class of the ZI drivers. Use the functionality like this:The driver will wait for all the writes to complete after
asyncEnd()
is called.Fixes #192.
Changes proposed in this pull request:
asyncBegin
andasyncEnd
methods toZI_base_instrument
asyncSetInt
andasyncSetDouble
are used afterasyncBegin
asyncEnd
calls thedaq.sync()
function causing the driver to wait for all writes to complete.MockDAQServer
to support asynchronous versions of theset
methods.@mention the name of someone you want to review this pull request.
In order for the pull request to be merged, the following conditions must be met:
Whenever possible the pull request should
Tests are not mandatory as this is generally hard to make for instruments that interact with hardware.