find_zsync_worker_port#
- QuantumSystemHub.find_zsync_worker_port(device: BaseInstrument, timeout: float = 10.0, sleep_time: float = 0.1) int [source]#
Find the ID of the PQSC/QHub ZSync port connected to a given device.
The function checks until the given timeout for the specified device to show up in the connection list.
- Parameters:
device (BaseInstrument) – device for which the connected ZSync port shall be found.
timeout (float) – Maximum time in seconds the program waits (default: 10.0).
sleep_time (float) – Time in seconds to wait between requesting the port serials list (default: 0.1)
versionchanged: (..) – 0.6.1: Added timeout and sleep_time parameters.
- Returns:
Index of the searched PQSC/QHub ZSync port.
- Raises:
ToolkitError – If the given device doesn’t appear to be connected to the PQSC/QHub via ZSync.
- Return type:
int
New in version 0.5.1.