connect_device#

Session.connect_device(serial: str, *, interface: str | None = None, name: str | None = None, raw: bool | None = None) ZIBaseInstrument | HDAWG | PQSC | SHFQA | SHFQC | SHFSG | UHFLI | UHFQA[source]#

Establish a connection to a device.

Info:

It is allowed to call this function for an already connected device. In that case the function simply returns the device object of the already connected device.

Parameters:
  • serial (str) – Serial number of the device, e.g. ‘dev12000’. The serial number can be found on the back panel of the instrument.

  • interface (str | None) – Device interface (e.g. = “1GbE”). If not specified the default interface from the discover is used.

  • name (str | None) – Name of the instrument in qcodes. (default = “zi_{dev_type}_{serial}”)

  • raw (bool | None) – Flag if qcodes instance should only created with the nodes and not forwarding the toolkit functions. (default = False)

Returns:

Device object

Return type:

ZIBaseInstrument | HDAWG | PQSC | SHFQA | SHFQC | SHFSG | UHFLI | UHFQA