EasyManuals Logo

Agilent Technologies E8267C Programming Guide

Agilent Technologies E8267C
198 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 #61 background imageLoading...
Page #61 background image
Chapter 2 55
Programming Examples
GPIB Programming Examples
printf("The instrument is now in it's Reset operating state. Press the\n");
printf("Enter key to return the signal generator to the Register #1
state\n");
printf("\n"); // Prints new line character
getch(); // Waits for user input
lngDone=0; // Reset the operation complete flag
viPrintf(vi, "*RCL 1\n"); // Recalls stored register #1 state
viPrintf(vi, "*OPC?\n"); // Checks for operation complete
while (!lngDone)
viScanf (vi ,"%d",&lngDone); // Waits for setup to complete
// Print user information
printf("The signal generator has been returned to it's Register #1
state\n");
printf("Press Enter to continue\n");
printf("\n"); // Prints new line character
getch(); // Waits for user input
lngDone=0; // Reset the operation complete flag
viPrintf(vi, "*RST\n"); // Resets the signal generator
viPrintf(vi, "*OPC?\n"); // Checks for operation complete
while (!lngDone)
viScanf (vi ,"%d",&lngDone); // Waits for setup to complete
// Print user information
printf("Press Local on instrument front panel to return to manual mode\n");
printf("\n"); // Prints new line character
// Close the sessions
viClose(vi);
viClose(defaultRM);
}
Reading the Data Questionable Status Register Using VISA and C
In this example, the signal generators data questionable status register is read. You will be asked to set up
the signal generator for error generating conditions. The data questionable status register will be read and the
program will notify the user of the error condition that the setup caused. Follow the user prompts presented
when the program runs. Launch Microsoft Visual C++ 6.0, add the required files, and enter the following

Table of Contents

Other manuals for Agilent Technologies E8267C

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies E8267C Specifications

General IconGeneral
BrandAgilent Technologies
ModelE8267C
CategoryPortable Generator
LanguageEnglish

Related product manuals