hplisten

This help was written for HPKit v0.2.1

hplisten is a tool receive generic data from the instrument.

Once installed you can run hplisten from a terminal by writing:

 $ hplisten 

Which prints out any character sent by the instrument, if any.

Options

The available options for hptalk are:

  • -d | –device=DEVICE_NAME: This option sets which serial interface will hplisten communicate with; by default it is set to ‘/dev/ttyUSB0’;
  • -a | –adapter=ADAPTER: This option sets which adapter will hplisten communicate with; by default it is set to ‘prologix‘; if you don’t want to configure the adapter, because you’ve already configured it before (e.g. with hprologix), set ADAPTER to ‘none‘;
  • -r | –address=PAD,[SAD]: This option sets the adapter’s address, PAD is the primary address and, SAD is the secondary address, which isn’t necessary;
  • -o | –output=OUTFILE: This option tells hpkit to write the instrument’s received data to OUTFILE instead of stdout;
  • -t | –timeout=TIMEOUT: set the TIMEOUT in millisecs for the serial port; by default it is set to 2000, the minimum is 100;
  • -h | –help: shows the help;
  • -v | –version: shows the version and license information;

Examples

Here are some examples that may be useful:

Receiving data

 $ hplisten
[...]
$ 

Saving a raw screenshot from the instruent

If the instruments supports HP-GL plotters, you may prefer to use hplot instead of hplisten
$ hplisten --output=screen.bmp
$ 

After pressing enter, you have about 2 seconds to start a print from the instrument.

The output format depends by the data sent by the instrument: hplisten only saves that data to a file

Links

Reply