Using Ascii Commands In Your Environment; Using Ascii Commands With Hp Basic; Using Ascii Commands With Visa - Agilent Technologies E1437A User Manual

20 msample/second adc with filters and fifo
Table of Contents

Advertisement

E1437A
ASCII Overview and Commands

Using ASCII Commands in Your Environment

ASCII commands require no drivers or other special downloadable files.
They may be sent from the host computer through an GPIB/HPIB interface
to a HP/Agilent E1406 Command Module in a VXI mainframe containing the
E1437A.

Using ASCII commands with HP BASIC

In order to address the module you must know the addressing information
about your GPIB/HPIB interface, your command module, and the E1437A.
The addressing format is as follows:
HCCMM
where H=the HP-IB interface select code
CC=the command module's HP-IB address
MM=the E1437A module's logical address divided by 8.
For example if your HPIB/GPIB interface is at select code 7, the HP/Agilent
E1406 command module is at HPIB/GPIB address 9, and the E1437A's
logical address is 192, the address you use for ASCII commands is 70924.
Example statements in the ASCII Command Reference represent this
environment.

Using ASCII commands with VISA

It is possible to send ASCII commands through the VISA interface, although
using the C function library provides more capability and greater ease of use.
Before using ASCII in this environment be sure that all standard VISA files
are installed and that the interface is properly configured.
The following is an example of sending ASCII commands to the E1437A
through the VISA interface:
Declare Function viReadbin Lib "VISA32.DLL" Alias "#256" (ByVal vi
As Long, Buffer As Any, ByVal count As Long, retCount As Long)
As Long
Dim rec(1024) As Long
er = viOpenDefaultRM(rm)
er = viOpen(rm, "VXI::192", 0, 0, id) output id, "MEAS:START"
output id, "READ 32"
er = viReadbin(id, rec(0), 4096, retCount&)
REM <The data in rec() is available for use here.> er = viClose(id)
er = viClose(rm)
Sub output(id, a$)
er = viWrite(id, a$, Len(a$), retCount&)
End Sub
5-4
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Advertisement

Table of Contents
loading

Table of Contents