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

225 mhz universal counter
Table of Contents

Advertisement

Chapter 3 Programming Your Universal Counter for Remote Operation
Programming Examples
To Use Limits to Filter Data Before Measuring Statistics (Turbo
C) (Continued)
IOEOI(isc,state);
sendhp(":FUNC 'FREQ 1'");
sendhp(":FREQ:ARM:STAR:SOUR IMM");
sendhp(":FREQ:ARM:STOP:SOUR TIM");
sendhp(":FREQ:ARM:STOP:TIM .001");
sendhp(":STAT:OPER:ENABLE 256");
sendhp(":STAT:OPER:NTR 256");
sendhp(":STAT:OPER:PTR 0");
sendhp("*SRE 128");
sendhp(":CALC3:LFIL:STAT ON");
sendhp(":CALC3:LFIL:LOWER 1 MHz");
sendhp(":CALC3:LFIL:UPPER 2 MHz");
sendhp(":CALC3:AVER ON");
sendhp(":CALC3:AVER:COUNT 50");
sendhp(":CALC2:LIM:STAT ON");
sendhp(":CALC2:LIM:LOWER 1 MHz");
sendhp(":CALC2:LIM:UPPER 2 MHz");
sendhp(":CALC2:LIM:DISP GRAPH");
/* Waiting for the measurement to complete */
printf("Waiting for measurement to complete\n");
sendhp(":INIT:CONT ON");
do
{
IOSTATUS(isc,condition,&status);
delay(200);
}
while (status!=1);
/* Measurement is complete, get the data */
3-94
/* Enable use of EOI */
/* Make a frequency measurement */
/* These 3 lines enable */
/* time arming with a .001 */
/* second gate time */
/* Computing statistics bit in
Operation Status register */
/* When statistics are complete, */
/* the bit will go from high to low
so a negative transition is
needed to enable the bit that is
summarized in the Status Byte
register. */
/* This is the bit from the Operation
Status register that is summarized
in the Status Byte Register */
/* Enable statistics filter */
/* Set lower limit to 1 MHz */
/* Set upper limit to 2 MHz */
/* Enable statistics */
/* Use 50 measurements for stats */
/* Enable limit testing. This must
happen in order to see limit
graph */
/* Set lower limit */
/* Set upper limit */
/* Display limit graph */
/* Start making measurements */
/* Check status byte */
/* Wait 200 milliseconds */
/* if =1 then measurement complete */
Programming Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

53131a53132a

Table of Contents