Re: Working with secondary addresses

"Christian Grosz" <[email protected]> Tue, 24 Mar 2026 19:24:28 -0000
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <[email protected]>
Hi John,

>
> I initially tried doing this with Python, but quickly found that the ib*
> commands in the reference do not correlate to the Python gpib module, and
> that the pythin gpib module does not have methods for writing to or
> reading from secondary addresses.
>

I wrote some Python code which is doing a very similar thing,  talking to
HP disk drives over GPIB.

https://codeberg.org/Boeingflieger/lif80utils

In particular, the code within the lif80utils/src/lif80utils/amigo.py file
should be helpful.

What I'm doing there is opening a separate connection for each secondary
address. This is working like a charm and much easier than setting the SAD
for one connection over and over.

Regards

Christian