wait_for_state_change#

wait_for_state_change(daq: ziDAQServer, node: str, value: int, timeout: float = 1.0, sleep_time: float = 0.005) None[source]#

Waits until a node has the expected state/value.

Attention: Only supports integer values as reference.

Parameters:
  • daq (ziDAQServer) – A ziPython API session.

  • node (str) – Path of the node.

  • value (int) – expected value.

  • timeout (float) – max in seconds. (default = 1.0)

  • sleep_time (float) – sleep interval in seconds. (default = 0.005)

Raises:

TimeoutError – If the node did not changed to the expected value within the given time.

Return type:

None