EasyManuals Logo

Keysight Technologies X Series Programming Guide

Keysight Technologies X Series
398 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 #107 background imageLoading...
Page #107 background image
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 107
Programming Examples
GPIB Programming Interface Examples
printf("Press Enter when ready\n");
printf("\n");
getch(); // Waits for keyboard
user input
viPrintf(vi, "STAT:QUES:POW:ENAB 2\n"); // Enables the Data
Questionable
// Power Condition
Register Bits
// Bits '0' and '1'
viPrintf(vi, "STAT:QUES:POW:COND?\n"); // Querys the register
for any
// set bits
viScanf(vi, "%s", rdBuffer); // Reads the decimal sum
of the
// set bits
num=(int (rdBuffer[1]) -('0')); // Converts string data
to
// numeric
switch (num) // Based on the decimal
value
{
case 1:
printf("Signal Generator Reverse Power Protection
Tripped\n");
printf("/n");
break;
case 2:
printf("Signal Generator Power is Unleveled\n");
printf("\n");
break;
default:
printf("No Power Unleveled condition detected\n");
printf("\n");
}
viClear(vi); // Clears the signal
generator

Table of Contents

Other manuals for Keysight Technologies X Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies X Series and is the answer not in the manual?

Keysight Technologies X Series Specifications

General IconGeneral
BrandKeysight Technologies
ModelX Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals