From: Michael K <vk...@ya...> - 2023-05-31 00:01:44
|
What do you get when you run 'pip list' ....[michael@dirac ~]$ pip list |grep gpibgpib 1.0[michael@dirac ~]$ This is an test program that works for me (without any error messages) [michael@dirac ~]$ cat GPIBtest.py #! /usr/bin/python3### Include the GPIB extension##import gpib### find & initialize the device## (as defined in /etc/gpib.conf)device = gpib.find("hp8753c")### write a string to the device##gpib.write(device,"IDN?;")### read a 25 byte string##result = gpib.read(device,30)print ( 'Identifier is: ' + result.decode("ascii") )[michael@dirac ~]$ Where hp9753c is defined in /etc/gpib.conf as ..device { minor = 0 /* minor number for interface board this device is connected to */ name = "hp8753c" /* device mnemonic */ pad = 16 /* The Primary Address */ sad = 0 /* Secondary Address */ eos = 0xa /* EOS Byte */ set-reos = no /* Terminate read if EOS */ set-bin = no /* Compare EOS 8-bit */ timeout = T30s /* timeout for commands */} On Sunday, May 28, 2023 at 01:01:40 AM EDT, quips_roofing.0t--- via Linux-gpib-general <lin...@li...> wrote: Hi all, attempting to use python3 with linux-ppib after successfully using C++. |