![HP E1418A User Manual Download Page 167](http://html.mh-extra.com/html/hp/e1418a/e1418a_user-manual_161587167.webp)
resets until the store is complete. You can use the
*OPC?
query as described
Return the
Module to Use
If you have changed the position of the Cal Store Enable Jumper (as
described on page 159) and you wish to prevent writing calibration
constants to non-volatile memory, set the jumper to the SECURE position.
Example Program
The following program, written in ANSI C illustrates a full calibration of all
channels for both voltage and resistance. The internal calibration resistor is
used. The SCPI drivers disk contains a calibration example file. This
example uses function calls to the HP VISA Transition Library for I/O
operations. Page 39 provides more details about this library.
•
•
•
/** 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;
166 Voltage/Current Output Adjustment
Appendix D
Summary of Contents for E1418A
Page 6: ...Notes 6 Contents HP E1418A 8 16 Channel D A Converter Module ...
Page 10: ...Notes 10 HP E1418A User s Manual ...
Page 12: ...12 HP E1418A User s Manual ...
Page 105: ...TRIGger 105 HP E1418A SCPI Command Reference Chapter 3 ...
Page 111: ...Notes HP E1418A Command Quick Reference 111 HP E1418A SCPI Command Reference Chapter 3 ...
Page 135: ...135 HP E1418A Register Based Programming Appendix B ...
Page 157: ...Notes 156 HP E1418A Error Messages Appendix C ...
Page 170: ...Notes Appendix D Voltage Current Output Adjustment 169 ...
Page 174: ...Figure E 1 8 Channel Disassembly 172 Configuration and Disassembly Appendix E ...
Page 175: ...Figure E 2 16 Channel Disassembly Appendix E Configuration and Disassembly 173 ...
Page 192: ...Notes 192 HP E1418A 8 16 Channel D A Converter Module Index ...