•
•
•
/** FUNCTION PROTOTYPES **/
void main (void);
void err_handler(ViSession vi, ViStatus x); /* VTL error routine */
void sys_err(ViSession resource); /* Checks for SCPI programming errors */
void pause(); /* Waits for a keystroke to continue program execution */
int config_check (); /* Checks and reports the module configuration */
/* returns the number of channels in module */
float get_voltage (); /* Obtains the measured voltage */
float get_resistance (); /* Obtains the measured resistance */
•
•
•
void main (void)
{
char cal_point [5],int_ext [4];
int num_chan,result,compare,i,condition [4];
float
meas_volt,meas_res;
•
•
•
/*** VOLTAGE OUTPUT ADJUSTMENT ***/
for
(i=1;i<n1;i++)
{
result = 0;
while (result < 1)
{
err=viPrintf(dac, “CAL%d:CONF:VOLT?\n”,i); /* Configure for calibration */
if(err < VI_SUCCESS) err_handler(dac, err);
err=viScanf(dac, “%d”, &result); /* Enter integer returned */
/* returns a 1 when ready to calibrate */
if(err < VI_SUCCESS) err_handler(dac, err);
}
result = 1;
while (result !=0)
{
meas_volt=get_voltage (); /* Get the voltage measurement */
err=viPrintf(dac, “CAL%d:VAL:VOLT? %f\n”,i,meas_volt); /* Send the measurement*/
70 Adjustments
Chapter
5
Summary of Contents for E1418A
Page 4: ...Notes 4 HP E1418A 8 16 Channel D A Converter Service Manual Contents ...
Page 8: ...Notes 8 HP E1418A D A Converter Module Service Manual ...
Page 58: ...Notes 58 Verification Tests Chapter 4 ...
Page 66: ...Figure 5 5 Internal Resistor Adjustment Connections 66 Adjustments Chapter 5 ...
Page 81: ...Figure 6 1 8 Channel Disassembly Chapter 6 Service 81 ...
Page 82: ...Figure 6 2 16 Channel Disassembly 82 Service Chapter 6 ...
Page 84: ...Notes 84 Service Chapter 6 ...
Page 90: ...Figure 7 1 HP E1418A Replaceable Parts 90 Replaceable Parts Chapter 7 ...
Page 91: ...Figure 7 2 Common Terminal Module Replaceable Parts Chapter 7 Replaceable Parts 91 ...