devices#

devices(daq: ziDAQServer) List[str][source]#

List of device_id of all devices connected to the Data Server.

Return a list of strings containing the device IDs that are attached to the Data Server connected via daq, an instance of the ziPython.ziDAQServer class. Returns an empty list if no devices are found.

Parameters:

daq (ziDAQServer) – An instance of the ziPython.ziDAQServer class (representing an API session connected to a Data Server).

Returns:

A list of strings of connected device IDs. The list is empty if no devices are detected.

Raises:

RuntimeError – If daq is not an instance of ziPython.ziDAQServer.

Return type:

List[str]

Example

>>> import zhinst.utils
>>> daq = zhinst.utils.autoConnect()  # autoConnect not supported for MFLI devices
>>> device = zhinst.utils.autoDetect(daq)