Storing The Adjustments; Return The Module To Use; Example Program - Agilent Technologies E1418A User Manual

8/16-channel d/a converter module scpi programming guide
Table of Contents

Advertisement

Storing the
Adjustments
Note
Return the
Module to Use

Example Program

/** FUNCTION PROTOTYPES **/
void main (void);
void err_handler(ViSession vi, ViStatus x);
void sys_err(ViSession resource);
void pause();
int config_check ();
float get_voltage ();
float get_resistance ();
void main (void)
{
char cal_point [5],int_ext [4];
int num_chan,result,compare,i,condition [4];
float meas_volt,meas_res;
Appendix D
Once all adjustments have been made using the procedures outlined
previously, you can store the new calibration constants in non-volatile
memory by sending the following command:
/* Store the new constants */
CALibration:STORe
This command will generate an error if the Cal Store Enable Jumper is not
set to the CAL position (see page 157).
The Agilent E1418A will be busy storing the new calibration constants
following the
CAL:STORe
or module resets until the store is complete. You can use the
described on page 56, if needed.
If you have changed the position of the Cal Store Enable Jumper (as
described on page 157) and you wish to prevent writing calibration
constants to non-volatile memory, set the jumper to the SECURE position.
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 Agilent VISA Transition Library for I/O
operations. Page 39 provides more details about this library.
command. You should not perform any bus resets
/* VTL error routine */
/* Checks for SCPI programming errors */
/* Waits for a keystroke to continue program execution */
/* Checks and reports the module configuration */
/* returns the number of channels in module */
/* Obtains the measured voltage */
/* Obtains the measured resistance */
Voltage/Current Output Adjustment
*OPC?
query as
163

Advertisement

Table of Contents
loading

Table of Contents