From: Penkler, D. <dav...@hp...> - 2013-12-12 16:49:05
|
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:wa...@vo...] Sent: Thursday, September 05, 2013 1:48 PM To: Lin...@li... 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 ------------------------------------------------------------------------------ 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 Lin...@li... https://lists.sourceforge.net/lists/listinfo/linux-gpib-general |