EasyManuals Logo

Keysight Technologies N5166B CXG Programming Guide

Keysight Technologies N5166B CXG
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 #108 background imageLoading...
Page #108 background image
108 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
GPIB Programming Interface Examples
// Prints user information
printf("-----------------------------------------------------------
---\n");
printf("\n");
printf("Manually set up the sig gen for an unleveled output
condition:\n");
printf("\n");
printf("* Select AM modulation\n");
printf("* Select AM Source Ext 1 and Ext Coupling AC\n");
printf("* Turn On the modulation.\n");
printf("* Do not connect any source to the input\n");
printf("* Check signal generator's display for the EXT1 LO
annunciator\n");
printf("\n");
printf("Press Enter when ready\n");
printf("\n");
getch(); // Waits for keyboard
user input
viPrintf(vi, "STAT:QUES:MOD:ENAB 16\n"); // Enables the Data
Questionable
// Modulation Condition
Register
// bits '0','1','2','3' and '4'
viPrintf(vi, "STAT:QUES:MOD: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 Modulation 1 Undermod\n");

Table of Contents

Other manuals for Keysight Technologies N5166B CXG

Questions and Answers:

Question and Answer IconNeed help?

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

Keysight Technologies N5166B CXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5166B CXG
CategoryPortable Generator
LanguageEnglish

Related product manuals