Using BASIC/IBASIC
The following shows how to use the BASIC/IBASIC program language (version 5.0 and above).
BASIC/IBASIC languages are in a variety of HP computers, including many Series 200/300 computers.
These computers normally have the means for GPIB connections.
BASIC/IBASIC have the means to directly send commands to the instruments and to directly receive data
from the instruments over GPIB. To send a SCPI command, the program requires the GPIB address of the
instrument and the SCPI command. To receive data from the instrument, the program requires the GPIB
address. Typical commands are as follows (refer to the BASIC/IBASIC documentation for other commands).
Sending SCPI Commands
The following shows how to send SCPI commands to an instrument using the BASIC/IBASIC
OUTPUT
command. The command needs the complete GPIB address of the instrument.
Sending SCPI Commands
OUTPUT 70900;" SYSTem:ERRor?"
SCPI Command
BASIC/IBASIC Command
GPIB Address
Receiving Data
The following shows how to use the hp BASIC/IBASIC
command to receive data from an
ENTER
instrument. The command needs the complete GPIB address of the instrument.
Receiving Data
ENTER 70900;Get_data$
Variable that Receives Data
BASIC/IBASIC Command
GPIB Address
Sending SCPI Commands 2-13