Library for Linux GPIB
GPIB libraries installation
link https://linux-gpib.sourceforge.io/
Download the source files and extract them. First go to the kernel sources like :
1 - install packages to compile the kernel file :
2 - install linux-headers-generic to compile in C: 3 - compile:5 - check Gpib-usb support by typing:
6 - install packages to compile the user file :
7 - modify command links to launch python under /bin
8 - install python 3.X-dev, pip, pyvisa and pyvisa-py
9 - Compile the user file :
9bis - edit the Gpib_config file located /usr/local/etc
the existing board-type value must be replaced by Ni_usb_b
for NI compatible instrument
or agilent_82357a
for Keysight instruments or any other compatible string for your interface.
10 - For Specific Interface Keysight 82357
follow the help @:
https://gist.github.com/turingbirds/6eb05c9267a6437183a9567700e8581a
Get the firmware : https://linux-gpib.sourceforge.io/doc_html/supported-hardware.html#AGILENT-82357A
and do the following instructions:
Insert the command line to enable everyone to access to the GPIB
Dans le fichier script/bash /usr/local/lib/udev/gpib_udev_fxloader
il est spécifié comme répertoire de travail /usr/local/share
puis pour le Agilent le répertoire ou doit se situer le firmware est /usr/local/share/usb/agilent_82357a/
.
Il faut donc y copier le fichier firmware mesat_releasex1.8.hex
Add specific rules tu udev
Vous trouverez une configuration de rules
operationnelle dans le répertoire ./linux-gpib-4.3.3/linux-gpib-user-4.3.3/usb/agilent_82357a
qui a le nom 99-agilent_82357a.rules
Copiez le fichier rules dans /etc/udev/rules.d
puis redémarrez le service udev
Test of the libraries
Attention : il faut gérer les droits d'accès aux périphériques
dans un premier temps seul le root
a accès au /dev/gpib0