Noticing odd artifacts in the linearity of the DP832 DAC (see

this thread), I decided to write a script to calibrate the DP832 using

**TooOldForThis** and

**ted572**'s instructions from this thread.

The script is written in Matlab. Be gentle, this is my first Matlab script

I decided to use Matlab because a) I had never tried Matlab, b) I wanted easy graphing (not relevant to this script) and c) I wanted to get going quickly with SCPI and Agilent had several nice examples for the 34461A in Matlab.

Porting to C or Python should be reasonably straightforward. This is straight SCPI and there is no weird Matlab-ism except for one-dimensional arrays being multi-dimensional and starting at 1

The script is meant to be used with a DP832 and a 34461A. Other DMMs should be easy to add, but the current measurements require a step at 3.2A which can be challenging for many (like a plain 34401A). The 34461A has a 10A input, which turns out to be handy for this purpose.

Please read the notes carefully before using.

*15-Feb-2015*: Updated to v1.1 with some cleanup and tentative DM3068 support.