Adjustments; Dc Voltage Adjustments - HP E1411A Service Manual

5 1/2 digit multimeter
Table of Contents

Advertisement

Adjustments

DC Voltage
Adjustments
76 Verification Tests - C Programs
These programs are designed to do the adjustments found in Chapter 5 -
Adjustments.
This example performs DC Voltage adjustments for a power line reference
frequency of 60 Hz. If no calibration error occurs, the program displays an
"adjustment complete" message. If a calibration error occurs, the program
displays the calibration error and prompts you to repeat the adjustment (see
Table 5-1 for a list of calibration errors).

/* DC Voltage Adjustments

#include <stdio.h>
#include <sicl.h>
#define ADDR "hpib7,9,03"
void main ()
{
INST id;
float range[10] = {8.0, 8.0, 0.125, 0.125, 1.0, 1.0, 64.0, 64.0,
300.0, 300.0};
float volts[10] = {7.7, -7.7, .121, -.121, .97, -.97, 62.0, -62.0,
300.0, -300.0};
char cal_code[5][256];
int i;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR);
iprintf (id, "*RST\n");
iprintf (id, "CAL:LFR 60\n");
for(i = 0; i 10; i++)
{
retry:
printf("\n Set DC Standard to %.1f VDC", volts[i]);
printf("\n press ENTER when ready\n");
getchar ();
iprintf(id, "FUNC:VOLT:DC\n");
iprintf(id, "VOLT:RANG %f\n", range[i]); /* Set E1326B range */
iprintf(id, "CAL:VAL %f\n", volts[i]);
iprintf(id, "TRIG:DEL .05\n");
ipromptf(id, "CAL?\n", "%t", cal_code[i]); /* Read voltage */
if (cal_code != 0)
{
printf ("\nCalibration Error %s for %f Vdc input", cal_code,
volts[i]);
printf ("\nCheck source value/connections, then");
printf ("\npress ENTER to retry this adjustment");
getchar ();
goto retry;
}
else
printf ("\nAdjustment complete for %f Vdc input", volts[i]);
}
iclose (id);
}
E1411A/B */
/* Address of device */
/* Define id as an instrument */
/* Exit on error */
/* Open instrument session */
/* Resets and set autozero
ON and PLC to 1 */
/* Sets line reference to 60 Hz */
/* Take voltage measurements */
/* Set DCV function */
/* Set CAL:VAL value */
/* Wait for settling */
/* Close instrument session */
Appendix B

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1411b

Table of Contents