Repaired measurement script

The sleep(3) at the end of the keithleySetup function is important to
ensure time for finishing the communication.