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

225 mhz universal counter
Table of Contents

Advertisement

sendhp(":ROSC:SOURCE INT");
sendhp(":DIAG:CAL:INT:AUTO OFF");
sendhp(":DISP:ENABLE OFF");
sendhp(":HCOPY:CONT OFF");
sendhp(":CALC:MATH:STATE OFF");
sendhp(":CALC2:LIM:STATE OFF");
sendhp(":CALC3:AVER:STATE OFF");
sendhp("*DDT #15FETC?");
sendhp(":INIT:CONT ON");
sendhp("FETCH:FREQ?");
IOENTER(ctr,&exp_freq);
strcpy(destination,":FREQ:EXP1 ");
sprintf(&destination[strlen(destination)],"%e",exp_freq); /* Append
sendhp(destination);
puts("Transferring and processing data\n");
for (i=1; i<=readings ;i++)
{
IOTRIGGER(ctr);
IOENTERS(ctr,freq[i],&length);
}
printf("Measurement complete.
getch();
}
Chapter 3 Programming Your Universal Counter for Remote Operation
Elements of SCPI Commands
To Optimize Throughput (Turbo C) (Continued)
Press a key to continue.\n");
Programming Guide
/* Use internal oscillator. If
you want to use an external
timebase, you must select it
and turn off the automatic
detection using:
:ROSC:EXT:CHECK OFF */
/* Disable automatic interpolater
calibration. The most recent
calibration values are used in
the calculation of frequency */
/* Turn off the counter display */
/* Disable any post processing */
/* Define the Trigger command. This
means the command FETC? does not
need to be sent for every
measurement, decreasing the
number of bytes transferred over
the bus */
/* Put the counter in Run mode */
/* Fetch the frequency to be */
/* for the expected frequency */
/* Copy string */
expected frequency value */
/* Send the expected frequency */
/* This number must be within 10%
of the Ch 1 input frequency.
Using this greatly increases
throughput, but is not
recommended for signals that
change by more than 10% */
/* Trigger the counter and */
/* read the data */
3-97

Advertisement

Table of Contents
loading

This manual is also suitable for:

53131a53132a

Table of Contents