Programming instructions
Programming Examples
GPIB Programming Examples
Chapter 254
viPrintf(vi, "INIT:CONT ON\n"); // Begins the step sweep operation
// Print user information
printf("The signal generator is in step sweep mode. The frequency range
is\n");
printf("500 to 800 mHz. There is a .5 sec dwell time at each 30 mHz
step.\n");
printf("\n"); // Prints a carriage return/line feed
viPrintf(vi, "OUTP:STAT OFF\n"); // Turns the RF output off
printf("Press the front panel Local key to return the\n");
printf("signal generoator to manual operation.\n");
// Closes the sessions
printf("\n");
viClose(vi);
viClose(defaultRM);
}