EasyManuals Logo
Home>Agilent Technologies>Portable Generator>N5183A

Agilent Technologies N5183A User Manual

Agilent Technologies N5183A
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 #79 background imageLoading...
Page #79 background image
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 69
Programming Examples
GPIB Programming Interface Examples
// PROGRAM DESCRIPTION:This example program verifies that the GPIB connections and
// and interface are functional.
// Turn signal generator power off then on and then run the program
//
//****************************************************************************************
#include <visa.h>
#include <stdio.h>
#include "StdAfx.h"
#include <stdlib.h>
void main ()
{
ViSession defaultRM, vi; // Declares a variable of type ViSession
// for instrument communication
ViStatus viStatus = 0;
// Opens a session to the GPIB device
// at address 19
viStatus=viOpenDefaultRM(&defaultRM);
viStatus=viOpen(defaultRM, "GPIB::19::INSTR", VI_NULL, VI_NULL, &vi);
if(viStatus){
printf("Could not open ViSession!\n");
printf("Check instruments and connections\n");
printf("\n");
exit(0);}
viPrintf(vi, "*RST\n"); // initializes signal generator
// prints to the output window
printf("The signal generator should now be in REMOTE. The remote indicator\n");
printf("annunciator R should appear on the signal generator display\n");
printf("\n");
viClose(vi); // closes session
viClose(defaultRM); // closes default session
}
Local Lockout Using HP Basic and GPIB
This example demonstrates the Local Lockout function. Local Lockout disables the front panel signal
generator keys. basicex2.txt performs the following functions:
• resets instrument
• places signal generator into local
• places signal generator into remote

Table of Contents

Other manuals for Agilent Technologies N5183A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies N5183A and is the answer not in the manual?

Agilent Technologies N5183A Specifications

General IconGeneral
BrandAgilent Technologies
ModelN5183A
CategoryPortable Generator
LanguageEnglish

Related product manuals