Instruction manual
Chapter 3 Programming Your Counter for Remote Operation
Programming Examples
Programming Guide 3-59
3
Sendhp(":CONF:FREQ DEFAULT,DEFAULT,(@2)") /* Set to Band 2 */
Sendhp("INIT:IMM")
Sendhp("READ?")
IOENTERS(ctr,freq,&length);
length=strlen(freq);
freq[length-1]=’\0’ ;
printf ("Frequency in Band 2 = %s Hz\n",freq);
printf("Press a key to continue\n");
getch();
Sendhp(":CONF:POW") /* Set measurement function to Power */
Sendhp("INIT:IMM")
Sendhp("READ?")
IOENTERS(ctr,pow,&length);
length=strlen(pow);
freq[length-1]=’\0’ ;
printf ("Power = %s Hz\n",pow);
printf("Press a key to continue\n");
getch();