Gpib function statements (command messages) – Agilent Technologies N5183A MXG User Manual

Page 73

Advertising
background image

Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide

63

Programming Examples

GPIB Programming Interface Examples

GPIB Function Statements (Command Messages)

Function statements are the basis for GPIB programming and instrument control. These function
statements, combined with SCPI, provide management and data communication for the GPIB interface
and the signal generator.

This section describes functions used by different IO libraries. For more information, refer to the
NI- 488.2 Function Reference Manual for Windows, Agilent Standard Instrument Control Library
reference manual, and Microsoft Visual C++ 6.0 documentation.

Abort Function

The HP Basic function ABORT and the other listed IO library functions terminate listener/talker
activity on the GPIB and prepare the signal generator to receive a new command from the computer.
Typically, this is an initialization command used to place the GPIB in a known starting condition.

Remote Function

The HP Basic function REMOTE and the other listed IO library functions change the signal generator
from local operation to remote operation. In remote operation, the front panel keys are disabled
except for the

Local key and the line power switch. Pressing the Local key restores manual operation.

Library

Function Statement

Initialization Command

HP Basic

The ABORT function stops all GPIB activity.

10 ABORT 7

VISA Library

In VISA, the viTerminate command requests a VISA session
to terminate normal execution of an asynchronous operation.
The parameter list describes the session and job id.

viTerminate

(parameter list)

NI- 488.2

The NI- 488.2 library function aborts any asynchronous read,
write, or command operation that is in progress. The
parameter ud is the interface or device descriptor.

ibstop(int ud)

SICL

The Agilent SICL function aborts any command currently
executing with the session id. This function is supported
with C/C++ on Windows 3.1 and Series 700 HP- UX.

iabort (id)

Library

Function Statement

Initialization Command

HP Basic

The REMOTE 719 function disables the front panel operation
of all keys with the exception of the

Local key.

10 REMOTE 719

VISA Library

The VISA library, at this time, does not have a similar
command.

N/A

NI- 488.2

The NI- 488.2 library function asserts the Remote Enable
(REN) GPIB line. All devices listed in the parameter list are
put into a listen- active state although no indication is
generated by the signal generator. The parameter list
describes the interface or device descriptor.

EnableRemote

(parameter

list)

Advertising
This manual is related to the following products: