Author Topic: GPIB / HPGL Plotter emulator for Linux  (Read 982 times)

0 Members and 1 Guest are viewing this topic.

Offline Michael-VK2BEATopic starter

  • Contributor
  • Posts: 48
  • Country: us
GPIB / HPGL Plotter emulator for Linux
« on: March 20, 2024, 12:47:09 am »
FWIW I've written an HPGL plotter emulator for Linux. Once the plot is sent from the instrument, it can be printed or saved in several file formats.
I've tested it on an HP8595E spectrum analyzer and HP8753C network analyzer.
The GPIB adapter (on the computer) must be capable of acting as a listener / talker. (Some devices will only act as a system controller.)

Available for download from https://github.com/VK2BEA/HPGL-Plotter

« Last Edit: March 20, 2024, 12:49:29 am by Michael-VK2BEA »
 
The following users thanked this post: bingo600, croma641, phs, stj

Offline ignilux

  • Supporter
  • ****
  • Posts: 97
  • Country: us
Re: GPIB / HPGL Plotter emulator for Linux
« Reply #1 on: December 30, 2024, 03:16:47 pm »
Looks like a Linux-friendly alternative to the otherwise excellent tools from KE5FX. I'm curious about the requirement for gtk4, though.. does this imply that it's a GUI-only application? I'm very interested in something that can pull plots via a USB to GPIB adapter without requiring a full-blown desktop. Think Raspberry PI being connected to the instrument, but only ever viewing the plots on my PC. Is that possible with your tool?
 

Offline Michael-VK2BEATopic starter

  • Contributor
  • Posts: 48
  • Country: us
Re: GPIB / HPGL Plotter emulator for Linux
« Reply #2 on: December 30, 2024, 06:36:48 pm »
Yes, it could be possible to make the application a command line application but I'm not sure that's worth the effort. If you are using a PC, why not just use John's PC application?
 

Offline ignilux

  • Supporter
  • ****
  • Posts: 97
  • Country: us
Re: GPIB / HPGL Plotter emulator for Linux
« Reply #3 on: December 30, 2024, 09:38:52 pm »
Because it does not work with Linux. Both the PC and the Pi run Linux.
 

Offline MarkL

  • Supporter
  • ****
  • Posts: 2306
  • Country: us
Re: GPIB / HPGL Plotter emulator for Linux
« Reply #4 on: December 31, 2024, 03:25:28 pm »
If your adapter is supported by the Linux GPIB package, you could use the "ibterm" command to send a plot command to your GPIB device and capture the HPGL output.  ibterm is included in the package.  A small amount of massaging on the output will be needed, such as removing ibterm's prompts, which could be handled by a simple bash script.

The output could then be moved to your PC and viewed with the KE5FX 7470 plotter emulator which can be used off-line.  Off-line operations (meaning no GPIB access) work fine under wine.

Alternatively, you can use hp2xx to convert the HPGL output to PNG, JPG, or a number of other formats, and view that resulting file.  That's a pure Linux solution, but  KE5FX 7470 handles more of the HPGL command set, which might be needed for your device, and in some cases looks better.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf