Re: Working with secondary addresses
dave penkler <[email protected]> Wed, 25 Mar 2026 11:28:20 +0100
| Newsgroups | gmane.linux.hardware.gpib.general |
|---|---|
| Message-ID | <CAL=kjP1cdxE80n3+F85N_RgMR34gCCEXQmEo6M75=y-Mk3MhoA@mail.gmail.com> |
--===============5381729953087246101== Content-Type: multipart/alternative; boundary="000000000000c3518c064dd6bac4" --000000000000c3518c064dd6bac4 Content-Type: text/plain; charset="UTF-8" On Wed, 25 Mar 2026 at 01:12, John <[email protected]> wrote: > > I get the following error: > > $ ./test_storage.py > Traceback (most recent call last): > File "/home/johnc/Test/linux-gpib/./test_storage.py", line 27, in > <module> > gpib.write(cmd_find, b'\x31\x0D') > ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ > gpib.GpibError: write() failed: You have attempted to write data or > command bytes, but there are no listeners currently addressed. > > The script uses the same technique that worked in Perl so not sure what I > am doing wrong at this point: > Your code looks fine. This is not a python issue, it is hardware related. The problem with the device you are talking to is in one or more of: 1) Not plugged into the bus 2) Not powered on 3) Device is hung cheers, -Dave --000000000000c3518c064dd6bac4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote g= mail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, 25 Mar = 2026 at 01:12, John <<a href=3D"mailto:[email protected]">subs@qc= ontinuum.plus.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote"= style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);p= adding-left:1ex"><u></u> =20 =20 =20 <div> <p><br></p> <p>I get the following error:</p> <p>$ ./test_storage.py<br> Traceback (most recent call last):<br> =C2=A0 File "/home/johnc/Test/linux-gpib/./test_storage.py"= , line 27, in <module><br> =C2=A0 =C2=A0 gpib.write(cmd_find, b'\x31\x0D')<br> =C2=A0 =C2=A0 ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^<br> gpib.GpibError: write() failed: You have attempted to write data or command bytes, but there are no listeners currently addressed.<br> <br> </p> <p>The script uses the same technique that worked in Perl so not sure what I am doing wrong at this point:</p></div></blockquote><div>= <br></div><div>Your code looks fine. This is not a python issue, it is hard= ware related. The problem with the device you are talking to is in one or m= ore of:</div><div>1) Not plugged into the bus</div><div>2) Not powered on</= div><div>3) Device is hung</div><div>cheers,</div><div>-Dave</div></div></d= iv> --000000000000c3518c064dd6bac4-- --===============5381729953087246101== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============5381729953087246101== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-gpib-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-gpib-general --===============5381729953087246101==--