EasyManua.ls Logo

Agilent Technologies E8257D User Manual

Agilent Technologies E8257D
366 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #81 background imageLoading...
Page #81 background image
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 71
Programming Examples
GPIB Programming Interface Examples
Local Lockout Using NI-488.2 and C++
This example uses the NI- 488.2 library to set the signal generator local lockout mode. Launch
Microsoft Visual C++ 6.0, add the required files, and enter the following code into your .cpp source
file. niex2.cpp performs the following functions:
• all front panel keys, except the contrast key
• places the signal generator into remote
• prompts the user to verify the signal generator is in remote
• places the signal generator into local
The following program example is available on the signal generator Documentation CD- ROM as
niex2.cpp.
// ************************************************************************************
// PROGRAM NAME: niex2.cpp
//
// PROGRAM DESCRIPTION: This program will place the signal generator into
// LOCAL LOCKOUT mode. All front panel keys, except the Contrast key, will be disabled.
// The local command, 'ibloc(sig)' executed via program code, is the only way to
// return the signal generator to front panel, Local, control.
// ************************************************************************************
#include "stdafx.h"
#include <iostream>
#include "windows.h"
#include "Decl-32.h"
using namespace std;
int GPIB0= 0; // Board handle
Addr4882_t Address[31]; // Declares a variable of type Addr4882_t
int main()
{
int sig; // Declares variable to hold interface descriptor
sig = ibdev(0, 19, 0, 13, 1, 0); // Opens and initialize a device descriptor
ibclr(sig); // Sends GPIB Selected Device Clear (SDC) message
ibwrt(sig, "*RST", 4); // Places signal generator in a defined state
cout << "The signal generator should now be in REMOTE. The remote mode R "<<endl;
cout <<"annunciator should appear on the signal generator display."<<endl;
cout <<"Press Enter to continue"<<endl;
cin.ignore(10000,'\n');
SendIFC(GPIB0); // Resets the GPIB interface
Address[0]=19; // Signal generator's address
Address[1]=NOADDR; // Signifies end element in array. Defined in
// DECL-32.H

Table of Contents

Other manuals for Agilent Technologies E8257D

Questions and Answers:

Agilent Technologies E8257D Specifications

General IconGeneral
BrandAgilent Technologies
ModelE8257D
CategoryInverter
LanguageEnglish

Summary

Getting Started with Remote Operation

Interfaces

Details various interface types (GPIB, LAN, RS-232, USB) for instrument communication.

IO Libraries and Programming Languages

Covers IO libraries and common programming languages for instrument control.

Using IO Interfaces

Using GPIB

Details GPIB interface for instrument connection and control, including setup and verification.

Using LAN

Explains LAN interface protocols (VXI-11, Sockets, Telnet, FTP) for remote instrument programming.

Programming Examples

Using the Programming Interface Examples

Introduces programming examples for remote control using various interfaces and languages.

GPIB Programming Interface Examples

Provides examples for GPIB programming and instrument control, including interface checks and queries.

LAN Programming Interface Examples

Covers LAN programming examples using VXI-11 and Sockets LAN protocols for instrument control.

Programming the Status Register System

Overview

Provides an overview of the status register system for monitoring signal generator conditions and errors.

Status Register Bit Values

Explains how each bit in a register is represented and how to enable/query bits using SCPI commands.

Accessing Status Register Information

Details methods for monitoring conditions, including polling and service request interrupts.

Status Byte Group

Describes the Status Byte Group, including the Status Byte Register and Service Request Enable Register.

Creating and Downloading Waveform Files

Creating and Downloading User-Data Files

Related product manuals