Performance Verification Tests Example - HP E1418A Service Manual

8/16-channel d/a converter
Hide thumbs Also See for E1418A:
Table of Contents

Advertisement

Performance
Verification Tests
Example
/** FUNCTION PROTOTYPES **/
void main (void);
void err_handler(ViSession vi, ViStatus x); /* VTL error routine */
void sys_err(ViSession resource);
void pause();
void dcv_check ();
void compliance_check ();
void maxcurrent_check ();
void current_check ();
/* DMM routines
void dmm_setup (char function [6], char range [6]); /* Set function and range for DMM */
float dmm_measure ();
/** GLOBAL **/
ViStatus err;
ViSession defaultRM, cmd, dac, dmm;
int num_chan;
float dcv_results [16][9]={0};
float compliance_results [16] = {0}; /* Compliance current verification test results */
float maxcurrent_results [16] = {0};
float current_results [16][9] = {0};
void main (void)
{
dcv_check ();
compliance_check ();
maxcurrent_check ();
current_check ();
}
38 Verification Tests
This example demonstrates a full performance verification test of the
module. The code shown in this example can be obtained from the file
prftest.c on the examples disk provided with this manual.
/* Checks for SCPI programming errors */
/* Waits for a keystroke to continue program execution */
/* Voltage output verification test */
/* Compliance current verification test */
/* Short circuit output current verification test */
/* Current output verification test */
*/
/* get the dmm measurement */
/* 8 or 16 */
/* Voltage output verification test results */
/* Short circuit output current verification test results */
/* Current output verification test results */
Chapter 4

Advertisement

Table of Contents
loading

Table of Contents