HP 53131A/132A 225 MHz Programming Manual page 163

225 mhz universal counter
Table of Contents

Advertisement

IOSPOLL(ctr,&status);
puts("Transferring and processing data");
sendhp(":INIT:CONT OFF");
sendhp(":CALC3:AVERAGE:TYPE MIN;:CALC3:DATA?");
IOENTERS(ctr,minimum,&length);
sendhp(":CALC3:AVERAGE:TYPE MAX;:CALC3:DATA?");
IOENTERS(ctr,maximum,&length);
sendhp(":CALC3:AVERAGE:TYPE MEAN;:CALC3:DATA?");
IOENTERS(ctr,mean,&length);
sendhp(":CALC3:AVERAGE:TYPE SDEV;:CALC3:DATA?");
IOENTERS(ctr,sdev,&length);
printf("Mean frequency
printf("Minimum frequency
printf("Maximum frequency
printf("Standard deviation = %s",sdev);
printf("Press a key to continue\n");
getch();
}
/* Function to send command to HP 53131A */
void sendhp(hpib_cmd)
char *hpib_cmd;
{
char hpcmd[80];
int length;
strcpy(hpcmd,hpib_cmd);
length=strlen(hpcmd);
error=IOOUTPUTS(ctr,hpcmd,length);
if (error!=0)
printf("Error during HP-IB: %d Command %s\n",error,hpcmd);
}
Chapter 3 Programming Your Universal Counter for Remote Operation
Elements of SCPI Commands
To Use Limits to Filter Data Before Measuring Statistics (Turbo
C) (Continued)
/* Serial poll counter for status */
= %s",mean);
= %s",minimum);
= %s",maximum);
/* Variables used by function */
/* Send command to HP 53131A */
Programming Guide
/* Set counter to Run */
/* Get the data from the counter */
/* Get the data from the counter */
/* Get the data from the counter */
/* Get the data from the counter */
3-95

Advertisement

Table of Contents
loading

This manual is also suitable for:

53131a53132a

Table of Contents