Keysight E4428C ESG RF Programming Manual page 117

Signal generators
Table of Contents

Advertisement

// bits '0','1','2','3' and
viPrintf(vi, "STAT:QUES:MOD:COND?\n");
// set bits
viScanf(vi, "%s", rdBuffer);
// set bits
num=(int (rdBuffer[1]) -('0')); // Converts string data to numeric
switch (num)
{
case 1:
printf("Signal Generator Modulation 1 Undermod\n");
printf("\n");
break;
case 2:
printf("Signal Generator Modulation 1 Overmod\n");
printf("\n");
break;
case 4:
printf("Signal Generator Modulation 2 Undermod\n");
printf("\n");
break;
case 8:
printf("Signal Generator Modulation 2 Overmod\n");
printf("\n");
break;
case 16:
printf("Signal Generator Modulation Uncalibrated\n");
printf("\n");
break;
default:
printf("No Problems with Modulation\n");
printf("\n");
}
// Close the sessions
viClose(vi);
viClose(defaultRM);
}
Keysight Signal Generators Programming Guide
'4'
// Querys the register for any
// Reads the decimal sum of the
// Based on the decimal value
Programming Examples
GPIB Programming Interface Examples
109

Advertisement

Table of Contents
loading

Table of Contents