beautypg.com

AMETEK SLD Series User Manual

Page 76

background image

Appendix A

Sorensen SLD-Series DC Load

A-2

M540075-01 Rev C

ibwrt(load,"CLER",4);
}
ibwrt( load,"NAME?",5);

/* Get the SL-series module load specification */

strset(rdbuf,'\0');

/* Clear rdbuf string buffer */

strset(spec,'\0');

/* Clear spec string buffer */

ibrd(load,spec,20);
if (spec[3] == '9')
printf("\n SLM series specification error !");
/* Set the channel 1, preset off, current sink 1.0 amps and load on commands to the load. */
ibwrt( load,"chan 1;pres off;curr:low 0.0;curr high 1.0;load on ",51);
ibwrt( load,"meas:curr ?",11);
/* Get the load actially sink current from the load */
ibrd( load,rdbuf,20);
/* go to local. */
ibloc(load);
}