User manual

Table Of Contents
Part 5: IEEE 488.2 Programming Reference
Part 5: IEEE 488.2 Programming Reference
Teledyne LeCroy implemented a subset of the IEEE 488.2 General Purpose Interface Bus (GPIB) for
remote control of oscilloscopes from a PC or other controller device. The original implementation utilized a
GPIB interface, and subsequently drivers and utilities were added for sending encapsulated GPIB
commands over ENET and other interfaces.
The examples in this reference are intended to show IEEE 488.2 command syntax, rather than to detail
how to program a GPIB interface. However, where examples are given, they assume the use of a National
Instruments GPIB card and some form of the BASIC programming language:
l Variables ending with % are integers.
l Variables ending with $ are strings.
l Where INCLUDES are mentioned, this points to the need to couple the program to the GPIB by
including some drivers.
Note: It is not necessary to use a GPIB interface in order to use the legacy 488.2 commands with
Teledyne LeCroy oscilloscopes. If you are using the GPIB interface, any programming language
can be used provided it can be linked to GPIB.
GPIB Overview 5-2
Interface Definitions 5-2
IEEE 488.1 Standard Messages 5-3
Program Message Format 5-4
Data Types 5-7
Response Messages 5-8
I/O Buffers 5-9
Making Service Requests 5-10
Taking Instrument Polls 5-11
Timing and Synchronization 5-15
Waveform Transfer 5-18
5-1