
Adjustments
These programs are designed to assist with the adjustment procedures found
in Chapter 5 - Adjustments.
Example: Voltage
Adjustments
This program uses the measured minimum, default, and maximum values
you enter to update the voltage adjustment constants for Channels 1, 2, 3,
and 4.
/* Voltage 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 ("\nVoltage Adjustments on Channel %u", chan);
iprintf (id, "CAL%u:STAT OFF\n", chan);
iprintf (id, "VOLT%u MIN\n", chan);
printf ("\n\nChannel %u is set to minimum (-12V)", chan);
printf ("\nEnter measured value (in V to 5.5 digits) : ");
scanf ("%f", &min);
iprintf (id, "VOLT%u DEF\n", chan);
printf ("\nChannel %u is set to default (0V)", chan);
printf ("\nEnter measured value (in V to 5.5 digits) : ");
scanf ("%f", &def);
iprintf (id, "VOLT%u MAX\n", chan);
printf ("\nChannel %u is set to maximum (+12V)", chan);
printf ("\nEnter measured value (in V to 5.5 digits) : ");
scanf ("%f", &max);
iprintf (id, "CAL%u:VOLT %f,%f,%f\n",chan,min,def,max);
68 Verification Tests - C Programs
Appendix B
Содержание 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 ...