Example: Current Adjustments - HP E1328A Service Manual

4-channel d/a converter
Hide thumbs Also See for E1328A:
Table of Contents

Advertisement

Example: Current
Adjustments
Appendix B
}
printf ("\n\nVoltage Adjustments Complete");
iclose (id);
}
This program uses the measured minimum, default, and maximum values
you enter to update the current adjustment constants for Channels 1, 2, 3,
and 4.
/* Current Adjustments
#include <stdio.h>
#include <sicl.h>
#define ADDR "hpib7,9,9"
void main ()
{
INST id;
float min, def, max;
int chan;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
id = iopen (ADDR);
for(chan = 1; chan <= 4; chan++)
{
printf ("\nCurrent Adjustments on Channel %u", chan);
iprintf (id, "CAL%u:STAT OFF\n", chan);
iprintf (id, "CURR%u MIN\n", chan);
printf ("\n\nChannel %u is set to minimum (-.024 A)", chan);
printf ("\nEnter measured value (in A to 5.5 digits) : ");
scanf ("%f", &min);
iprintf (id, "CURR%u DEF\n", chan);
printf ("\nChannel %u is set to default (0 A)", chan);
printf ("\nEnter measured value (in A to 5.5 digits) : ");
scanf ("%f", &def);
/* Close instrument session */
E1328A */
/* Address of device */
/* Define id as an instrument */
/* Exit on error */
/* Open instrument session */
Verification Tests - C Programs 69

Advertisement

Table of Contents
loading

Table of Contents