Compiling A Program; Sending Scpi Commands; Receiving Data - Agilent Technologies 75000 Series B Configuration Manual

Installing the mainframe and plug-in modules
Hide thumbs Also See for 75000 Series B:
Table of Contents

Advertisement

Compiling a Program

To compile a program from the DOS command line using the Large memory model, execute the following:
Microsoft® C/ and C+ + :
cl /AL < path\program name.C> path\clhpib.lib
Borland C and C+ + :
tcc -ml < path\program name.C> path\tchhpib.lib
When using the Small memory model, change the "AL" or "-ml" parameters to "AS" or " -ms" .

Sending SCPI Commands

The following shows how to use the
commands to an instrument. The function needs the complete GPIB address of the instrument.
Function
GPIB Address

Receiving Data

The following shows how to use the
character data from an instrument. The function needs the complete GPIB address of the instrument.
Function
GPIB Address
function from the GPIB Command Library to send SCPI
IOUTPUTS
Sending SCPI Commands
IOOUTPUTS (70900L, " SYSTem:ERRor?" , 13);
function from the GPIB Command Library to receive
IOENTERS
Receiving Character Data
IOENTERS (70900L, get_data, &length);
Length of the SCPI Command
SCPI Command
Get length of the Returned Data
Variable that Receives Data
Sending SCPI Commands 2-11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1301bE1300b

Table of Contents