An example interactive terminal program for sending commands to an instrument
and printing its response has been posted to the svn:
http://sourceforge.net/p/linux-gpib/code/HEAD/tree/trunk/linux-gpib/examples/ibterm.c
You can download the raw file here:
http://sourceforge.net/p/linux-gpib/code/HEAD/tree/trunk/linux-gpib/examples/ibterm.c?format=raw
Console log for fetching, building and running ibterm:
$ wget http://sourceforge.net/p/linux-gpib/code/HEAD/tree/trunk/linux-gpib/examples/ibterm.c?format=raw -O ibterm.c
....
Connecting to sourceforge.net (sourceforge.net)|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/x-csrc]
Saving to: 'ibterm.c'
....
$ cc -o ibterm ibterm.c -DREADLINE -lreadline -lncurses -lgpib
$
$ ### If you don't have readline:
$ cc -o ibterm ibterm.c -lgpib
$
$ ./ibterm -d 6
Attempting to open /dev/gpib0
pad = 6, sad = 0, timeout = 10, send_eoi = 1, eos_mode = 0x0000
ibterm>ID?
HP54100D
ibterm>
ibterm: Done.
$
$ ./ibterm -d 6 -X
Attempting to open /dev/gpib0
pad = 6, sad = 0, timeout = 10, send_eoi = 1, eos_mode = 0x0000
ibterm>ID?
00000000 | 48 50 35 34 31 30 30 44 | 0A | HP54100D
ibterm>
ibterm: Done.
$./ibterm
No primary device address (pad) specified!
Usage:
./ibterm -d pad \
[-m minor] [-s sad] [-i eoi] [-e eos] [-r reos] [-b bin] [-x xeos] \
[-t timeout] [-p prompt] [-N] [-X]
Try './ibterm -h' for more information.
./ibterm: Aborted
$
cheers,
-Dave
-----Original Message-----
From: wally [mailto:***@voosen.eu]
Sent: Thursday, September 05, 2013 1:48 PM
To: Linux-gpib-***@lists.sourceforge.net
Subject: [Linux-gpib-general] gpib terminal
Hello,
is there a simple terminal for gpib known ?
The only i met is wxterm, but seems to work only for NI boards not agilent.
https://iftools.com/opensource/wxterm.en.php
thx wally