Improve psi device base
Description
This MR allows the submit_task
method to accept args and kwargs that are passed to the task that is submitted. In addition, it adds a method wait_for_condition
to improve usability of the PSIDeviceBase class. This allows to wait for conditions to be met. For instance, (self.daq_status.get
, 'running'). In comparison to a SubScritpionStatus
, this method gives more flexibility, and allows checks about whether the device was stopped in the mean time, and resolve the blocking call.
Definition of Done
-
Documentation is up-to-date.
Edited by appel_c