Keysight E4428C ESG RF Programming Manual page 116

Signal generators
Table of Contents

Advertisement

Programming Examples
GPIB Programming Interface Examples
getch();
viPrintf(vi, "STAT:QUES:POW:ENAB 2\n");
// Bits '0' and '1'
viPrintf(vi, "STAT:QUES:POW:COND?\n");
// set bits
viScanf(vi, "%s", rdBuffer);
// set bits
num=(int (rdBuffer[1]) -('0'));
// numeric
switch (num)
{
case 1:
printf("Signal Generator Reverse Power Protection
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);
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();
viPrintf(vi, "STAT:QUES:MOD:ENAB 16\n");
108
// Waits for keyboard user input
// Enables the Data Questionable
// Power Condition Register Bits
// Querys the register for any
// Reads the decimal sum of the
// Converts string data to
// Based on the decimal value
// Clears the signal generator
// Prints user information
// Waits for keyboard user input
// Enables the Data Questionable
// Modulation Condition Register
Keysight Signal Generators Programming Guide
Tripped\n");

Advertisement

Table of Contents
loading

Table of Contents