AVAILABLE C CODES

A brief descritpion of each C code is presented below. The actual commented code could also be viewed for a more detailed description of each command .

To run any program, just type its name (with no extension) at the unix prompt.
Make sure that the GPIB controller is powered on and appropriate physical connections have been made between the GPIB interface and the rear panels of the devices of interest.

KBC

Kbc is a utility program that allows you to enter SCSI488/S commands from the keyboard and see what effect they have. Its source code is provided in kbc.c . When kbc is run , it dispalys a "CMD>" prompt and waits for a command to be entered from they keyboard.
When the key is pressed, kbc sends the command to SCSI488/S and displays any response or error messages that occur.
This allows you to test the various SCSI488/S commands and their effects on your instruments without having to write a program.

Kbc.c

195DEMO
This program was provided with the driver. It was written for the particular KEITHLEY 195 Digital Multimeter.
The syntax for sending the is not compatible with any of the available instruments in the lab, and therefore can not be run.
It can however help by looking at some of the checking routines that are included.

195demo.c

TEK820

The purpose of this program is to save the plot that appears on the Tektronix 820 oscilloscope into a file called TEK820_plot.eps . This file is already in Postscript format and could be viewed using ghostview .

In order to run it, have the plot ready on the oscilloscope screen, then type TEK820 on the unix prompt and wait until you get the prompt again.

The TEK820_plot.eps will be overwritten everytime TEK820 command is entered. Make sure to rename the fist plot if another plot is to be transferred.

TEK820.c

TEK420

This program is the same as TEK820.c since both devices correspond to the same manufacturer and have the same format for sending/receiving data to/from the oscilloscope.
The only difference is the address that corresponds to each oscilloscope. This address is 01 for TEK820 and 02 for TEK420.

In order to run it, have the plot ready on the oscilloscope screen, then type TEK420 on the unix prompt and wait until you get the prompt again.

TEK420.c

HP3588_INI and HP3588

HP3588_INI is the initial version of HP3588.
Only the latter is to be used when a plot is to be transfrerred from the Hewlett Packard 3588 spectrum analyzer.

The purpose of HP3588_INI is to show the format in which the data is being transfered from the spectrum analyzer to the file named "HP3588i_plot.dat" . The data obtained from this code can NOT be loaded into Matlab and viewed, instead, HP3588_plot.dat must be used.

Running HP3588 on the unix prompt causes whatever appears on the screen of the spectrum analyzer to be saved in a file called HP3588_plot.dat.
This plot could be viewed by running Matlab and loading this file.

HP3588_ini.c

HP3588.c

HP54510

This program is intended to save the screen of the Digitizing oscilloscope HP54510 into a file called HP54510_plot.dat. This file contains the screen information in ASCII format. The actual plot can be viewed by running Matlab and loading the file.

HP54510.c

HP8595

Running HP8595 on the unix prompt causes whatever appears on the screen of the spectrum analyzer to be saved in a file called HP8595_plot.dat.
This plot could be viewed by running Matlab and loading this file.

HP8595.c