corner01 corner02
flares_red SOFTWARE > DOWNLOADS > HOME >

POD documentation for perl/gpib-e100.plx

Outline

  1. N
  2. S
  3. D
  4. O
  5. A
  6. S
  7. S
  8. K
  9. A
  10. C
  11. S

N

gpib-e100.plx - reads devices on the GPIB-ENET/100

S

gpib-e100.plx [-v|-vb|--verbose "int"][--quiet][-q][--list][--gpib_cmd][--interactive][--command "GPIB command"] gpib#:instrument#
gpib-e100.plx 1:16 Connects to gpib box 1, gpib instrument 16.
gpib-e100.plx 192.168.1.55:24 Connects to gpib box 0, gpib instrument 24
gpib-e100.plx 0:12 -command "DATA?" Connects to gpib box 0, instrument 12, sends the command
DATA? and waits for response Also supports meta-options: --help, --usage, --man, --version.

D

This program sends the commands to gpib devices via ethernet and waits for the response.

O

Options are parsed using Getopt::Long with no modifications.

A

Requires a single argument in the form of #:#. The first argument can be the gpib hostname (DNS single number or IP address are all good). The second argument is the instrument number.

S

This was created by looking at the packets another program was sending. Hence the various hex codeds. The first part deals with the command line. After the command line we open up a socket to ping the gpib box. If successful, we get a response back with the name of the box. It then follows the order of packest that the other program used.

S

For a program that logs information in .cdf format, please look into reader.plx. Also look at the labview program keithley_scpi_write_read.vi which does something incredibly similar to this program, but uses labview (and a gui interface) to do it.

K

For some reason it doesn't deal well with the 'READ?' commmand. Also it may return a newline at the end of the string it outputs to STDOUT. See reader.plx for dealing with this. Interactive mode does not support the *nix up arrow key.

A

MegaSIMS group, UCLA <megasims@ess.ucla.edu>. Miles McCammon, <miles86@ucla.edu>.

C

gpib-e100.plx - read devices attached to a GPIB-ENET/100 Copyright © 2006 MegaSIMS, University of California Regents This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To receive a copy of the GNU General Public License, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Source Code

Source code for this version (10/24/08, 12:45) can be downloaded here.
bottomleftshadow Last Modified: October 24, 2008, 12:45 pm | megasims [at] ess.ucla.edu bottomrightshadow