QuTech-Delft / QMI

Quantum Measurement Infrastructure
Other
14 stars 4 forks source link

Add GPIB transport into QMI [Windows only] #50

Closed heevasti closed 11 months ago

heevasti commented 1 year ago

Description =========== Currently, the QMI transport layer does not have specific handling of a GPIB interface. Even though, not anymore commonly used, it is still present in some instrumentation like Tektronix's AWG 5014 model. And currently this interface is used for the AWG at the RT2 setup.

The GPIB device is usually a device that, when controlled through a PC, has an Ethernet, USB or similar interface to connect to the control PC. On some setups, USB/ethernet Prologix GPIB devices are used. The USB connector works on Linux, Mac and Windows and can use a VCP driver on Windows to 'serialize' the connection. Therefore, we can utilize these instruments with the regular serial/USB/tcp transport interfaces. On the contrary, the National Instrument's GPIB connector although having these and several more interfacing options, the USB connection cannot be used with the present transport implementations. The 'drawback' of the NI GPIB USB connector is that it needs the pyvisa package to be used with SCPI-protocol instruments and works only on Windows. The construction of the string to give to the pyvisa manager is not the same as for USBTMC instruments, which creates the incompatibility.

Proposed addition

When using NI GPIB USB connector on Windows, we need to be able to connect to it using pyvisa. For pyvisa we need to input for target device, which is a string. For this partuclar case, it is in the format "GPIB::X::INSTR" where X is a device number, e.g. 1. We need

Affected components


QMI

Modules to be created


Modules to be modified


Tests to be created/updated


Documentation to be updated


Hardware


A Windows GPIB-connected instrument with NI's USB-GPIB device.