|
From: Philip P. <li...@ph...> - 2017-01-10 19:57:39
|
Hi Dave,
Thanks for the help - it turned out I had some pieces of an old (very
old -- old enough that "gpib_config -v" wasn't recognised as valid!)
source build of linux-gpib in /usr/local.
As this was before /usr/lib in my path, it was confusing gpib_config.
Now ibtest works!
$ sudo ibtest
Do you wish to open a (d)evice or an interface (b)oard?
(you probably want to open a device): d
enter primary gpib address for device you wish to open [0-30]: 8
trying to open pad = 8 on /dev/gpib0 ...
You can:
[snip]
: w
enter a string to send to your device: *IDN?
sending string: *IDN?
gpib status is:
ibsta = 0x2100 < END CMPL >
iberr= 0
ibcnt = 6
You can:
[snip]
: r
enter maximum number of bytes to read [1024]:
trying to read 1024 bytes from device...
received string: 'GW.Inc,PSM-2010,H211043,FW1.05
'
Number of bytes read: 31
gpib status is:
ibsta = 0x2100 < END CMPL >
iberr= 0
ibcnt = 31
You can:
Now on to programming this thing! :)
Incidentally, I build the DKMS / Ubuntu packages. They're in my PPA, and
are based on the Debian ones. No guarantees, etc. -- I only build them
for myself and update them when something breaks.
The PPA is at https://launchpad.net/~philpem/+archive/ubuntu/ppa in case
anyone on list is interested, and they're currently built for Ubuntu
releases as recent as Vivid (15.04).
I think I've mentioned them on-list before, but not for some time...
Thanks,
Phil.
On 05/01/17 09:18, dave penkler wrote:
> Hi Phil,
> It is important that the modules and the library have the same version.
> If you can I would propose that you build the library and modules from
> here: https://sourceforge.net/projects/linux-gpib/files/latest/download
> Instructions are in the INSTALL file.
> gpib_conf -v will report the version of the library but there is no easy
> way to obtain the version of the modules.
> I am not familiar with the Debian package.
> cheers,
> -Dave
>
>
> On Thu, Jan 5, 2017 at 12:13 AM, Philip Pemberton <li...@ph...
> <mailto:li...@ph...>> wrote:
>
> On 04/01/17 16:21, dave penkler wrote:
> > Did you rebuild the package ?
> > /d
>
> Yes, it's building the module from source (using DKMS) and the library
> is built as a Debian package.
>
> Thanks,
> --
> Phil.
> li...@ph... <mailto:li...@ph...>
> http://www.philpem.me.uk/
>
>
--
Phil.
li...@ph...
http://www.philpem.me.uk/
|