
Example: Current
Adjustments
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.
}
printf ("\n\nVoltage Adjustments Complete");
iclose (id);
/* Close instrument session */
}
/* Current Adjustments E1328A */
#include <stdio.h>
#include <sicl.h>
#define ADDR "hpib7,9,9"
/* Address of device */
void main ()
{
INST id;
/* Define id as an instrument */
float min, def, max;
int chan;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin();
#endif
ionerror(I_ERROR_EXIT);
/* Exit on error */
id = iopen (ADDR);
/* Open instrument session */
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);
Appendix B
Verification Tests - C Programs 69
Содержание E1328A
Страница 4: ...Notes 4 Contents HP E1328A Service Manual ...
Страница 46: ...Figure 6 7 HP E1328A DAC Replaceable Parts 46 Replaceable Parts Chapter 6 ...
Страница 48: ...48 Manual Changes Chapter 7 ...
Страница 54: ...54 Service Chapter 8 ...
Страница 60: ...60 Calculating D A Converter Accuracy Appendix A ...