Discussion:
[Linux-gpib-general] gpib terminal
wally
2013-09-05 11:47:45 UTC
Permalink
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
Jørgen Kragh Jakobsen
2013-09-05 12:06:25 UTC
Permalink
Hey all

Yes - I have build a minimal gpib stack setup.

Say I want to talk to my tek. scope at gpib address 15
I call a small program called tek
***@malab01:~#tek 15 "*IDN?"
TEKTRONIX,TDS 784C,0,CF:91.1CT FV:v5.3e
***@malab01:~#

This way I easyly can script gpib commands ot my instrument park from eg
perl or what ever

#!/usr/bin/perl

`sup2 "VOLT 1.2"`;
$volt = `dmm1 "MEAS:VOLT?" `;
...

sup2 and dmm1 are commandline interface to my usb connected dead cheep
usb connected supply and mulitimeters and are addresed by the usb bus
system.
That could be done more elegant - when times comes.

I any one is interested let me know and I write a more into deep
desciption.

Regard Jørgen
Post by wally
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
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Linux-gpib-general mailing list
https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
--
Jørgen Kragh Jakobsen
Senior ASIC Designer, Merus Audio
-------------------------------------------
Hørkær 14, DK-2730 Herlev, Denmark
Phone:+4551947707 Email:***@merus-audio.com
Skype:jorgen_kragh_jakobsen
wally
2013-09-05 13:27:41 UTC
Permalink
Hello Jørgen,

thanks for reply !

I need to find out gpib command set for a more or less unusual and old
device. Anuy of the known GPIB commands not recognized by this device.
I only have some hints and ideas and need a simple terminal to send
ASCII commands and autoreceive resultbuffer.
Not sure your projects fits this needs.
So far i did with ibtest but its annoying always get usage and other standard
stuff outputs during work.

wally
Post by Jørgen Kragh Jakobsen
Hey all
Yes - I have build a minimal gpib stack setup.
Say I want to talk to my tek. scope at gpib address 15
I call a small program called tek
TEKTRONIX,TDS 784C,0,CF:91.1CT FV:v5.3e
This way I easyly can script gpib commands ot my instrument park from eg
perl or what ever
#!/usr/bin/perl
`sup2 "VOLT 1.2"`;
$volt = `dmm1 "MEAS:VOLT?" `;
...
sup2 and dmm1 are commandline interface to my usb connected dead cheep
usb connected supply and mulitimeters and are addresed by the usb bus
system.
That could be done more elegant - when times comes.
I any one is interested let me know and I write a more into deep
desciption.
Regard Jørgen
Post by wally
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
--------------------------------------------------------------------------
---- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012,
more! Discover the easy way to master current and previous Microsoft
technologies and advance your career. Get an incredible 1,500+ hours of
step-by-step tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktr
k
_______________________________________________
Linux-gpib-general mailing list
https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
Marco Halder
2013-09-05 13:16:17 UTC
Permalink
You could use a python ( or better an ipython) terminal together with the python bindings.

Its pretty easy.


--
Dipl.-Phys. Marco Halder
Technische UniversitÀt MÌnchen, Physik Department
James Franck Str. 1, 85748 Garching
Tel: +49 89 289 12512
http://www.e21.ph.tum.de

-------- UrsprÃŒngliche Nachricht --------
Von: wally <***@voosen.eu>
Datum:
An: Linux-gpib-***@lists.sourceforge.net
Betreff: [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
Penkler, David
2013-12-12 16:47:51 UTC
Permalink
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

Loading...