Initial operation, Device driver – HP E1418A User Manual
Page 38
Initial Operation
This section provides a programming example to help verify correct module
installation and operation. Additional programming examples and procedures
are given in the next chapter.
The examples shown here use HP BASIC and SCPI (Standard Commands for
Programmable Instruments). The example assumes a factory set logical
address of 72 for the HP E1418A module and uses an HP Command Module
for command interpretation. Examples in ANSI C are given in the next chapter.
Note
This discussion applies to SCPI programming using the driver provided
with the module. The SCPI commands are described in Chapter 3 of this
manual. Appendix B of this manual describes direct register access.
Device Driver
The HP E1418A module is shipped a driver CD. This CD contains the SCPI
instrument driver, VXIplug&play drivers, example programs, and HP VIC
(VXI Installation Consultant). Follow the instructions contained on the CD to
properly install the device driver.
The following example shows how to query the command module and
verify that the correct device driver is installed:
10 DIM A$[256]
20 OUTPUT 70900;"DIAG:DRIV:LIST?"
30 ENTER 70900;A$
40 PRINT A$
50 END
In this example, the command module is located on HP-IB (interface address 7)
and uses a primary address of 09. Responses to this example vary depending
upon the drivers loaded on your system. A typical response might look like:
E1418,E1418,A.01.00,RAM;SWITCH,SWITCHBOX,A.08.00,RAM;
SYSTEM,E1405A,A.08.00,ROM;IBASIC,IBASIC,A.04.02,ROM;
VOLTMTR,E1326A,A.05.00,ROM;SWITCH,SWITCHBOX,A.07.00,
ROM;COUNTER,E1332A,A.04.02,ROM;COUNTER,E1333A,A.04.02,
ROM;DIG_I/O,E1330A,A.04.03,ROM;D/A,E1328A,A.04.02,ROM
Verify that the string “
E1418,E1418,A.01.00,
” is located somewhere
within the returned string.
Chapter 1
Module Setup and Installation 37
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com