//  This file is long because it contains 2 different scripts and a ton of comments.
//  You would use the first script if you had a DMM and were using it for
//  the resistance measurement and the second script if you were using
//  a pA meter and a voltage source.  The program "learns" what you are using
//  from a short configuration file that contains lines like:
//          DCdevice Fluke8840 17              where 17 is its GPIB address
//
//  you would use this first script if you were measuring the resistance with a DMM
//
set temperaturetolerance=1, temphold=30
sweep time, start=0, stop= 604800, step=3600
  set temperature=500
  measure Rdc1
  set temperature=25
  measure Rdc2
endsweep
//
//  and this script if you were using a pA meter for a high resistance sample with a 10 second
//  delay between application of voltage and measurement of current and didn't want to 
//  leave the voltage on the sample during heating and cooling, just when being measured
//
set temptol=1, temphold=30
sweep time, start=0, stop= 604800, step=3600
  set temperature=500
  set dc=100
  wait s=10
  measure pA1
  set dc=0
  set temp=25
  set dc=100
  wait s=10
  measure pA2
  set dc=0
endsweep
//  temperaturetolerance and temphold mean that the GADD program will wait after sending the
//  set command to the temperature controller until the measured temperature read from the 
//  controller has been within temptol (1deg) for temphold time (30s).  This is to make sure the sample
//  has had time to settle to temperature.  These are not the only ways to control temperature,
//  ramps are also built in, and you can run "open loop," possibly inserting a 
//       wait min=30
//  command to wait 30 minutes for the temperature to settle, for example.
//  temptol and temperaturetolerance are synonyms in a script. 
//  The reason there are Rdc1, Rdc2 and pA1, pA2 is so that those measurements produce 
//  their own graphs later in VIZ.  It's a rule in these script files that any particular
//  "measure XX" can only occur in one line, (so there's a distinct data unit for VIZ.)
//  But you can make up to 9 different measurement calls of the same property, e.g. pA0 ... pA9.
//  It's clearer in the examples above than when I try to explain it.
//  BTW- 604800 is how many seconds there are in a week
//  and these scripts are written to measure once an hour 
//
//   I would appreciate it if you noticed how much shorter the actual scripts are
//   than all this blah, blah, blah I'm doing to explain them.