159
HP-IB Programming
Programming Examples
8.6
Programming Examples
This chapter gives some programming examples. The language
used is the BASIC 5.1 Language System used on HP 9000 Series
200/300 computers.
These programming examples do not cover the full command set
for the instrument. They are intended only as an introduction to the
method of programming the instrument.
Example 1 - Checking the Communication
Function
This program sends two queries and displays the responses.
Listing
10
!---------------------------------------------------------------
-----
20
!
30
! HP E5574A OLA Programming Example 1
40
!
50
! A Simple Communications Check
60
!
70
!---------------------------------------------------------------
-----
80
!
90
! Definitions and Initializations
100
!
110
OLA=724
120
!
130
! The first 7 is to access the HP-IB card in the controller,
140
! the 24 is the HP-IB address of the OLA.
150
!
160
!
170
DIM String$[60]
180
!
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com