fixed MDSplus code from jan 2014
source code for DAQ program