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");
Содержание X-Series
Страница 4: ...4 ...
Страница 10: ...10 Contents ...