EasyManua.ls Logo

Agilent Technologies E4406A VSA Series - Page 138

Agilent Technologies E4406A VSA Series
420 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
Loading...
138 Chapter3
Programming Examples
Saving and Recalling Instrument State Data
!!!Carefull this will overwrite register 10*/
viPrintf(viVSA, "*SAV 10\n");
/*display message*/
printf("E4406A Programming example showing *SAV,*RCL
SCPI commands\n");
printf("used to save instrument state\n\t\t----------
--------------");
printf("\n\nThe instrument state has been saved to an
internal register\n");
printf("Please observe the display and notice the signal
shape\n");
printf("Then press any key to reset the
instrument\a\n\t\t------------------------");
/*wait for any key to be pressed*/
getch();
/*reset the instrument */
viPrintf(viVSA, "*RST\n");
/*set the again the input port to the internal 50Mhz
reference source*/
viPrintf(viVSA, "INP:PORT AREF\n");
/*display message*/
printf("\n\nThe instrument was reset to the factory
default setting\n");
printf("Notice the abscence of the signal on the
display\n");
printf("Press any key to recall the saved
state\a\n\t\t------------------------");
/*wait for any key to be pressed*/
getch();
/*recall the state saved in register 10*/
viPrintf(viVSA, "*RCL 10\n");
/*zoom the spectrum display*/
viPrintf(viVSA, "DISP:FORM:ZOOM1\n");
/*display message*/
printf("\n\nNotice the previous saved instrument
settings were restored\n");
printf("Press any key to terminate the
program\a\n\t\t------------------------\n\n");
/*wait for any key to be pressed*/
getch();
/*reset the instrument */
viPrintf(viVSA, "*RST\n");
/* close session */
viClose (viVSA);
viClose (defaultRM);
}

Table of Contents

Other manuals for Agilent Technologies E4406A VSA Series

Related product manuals