some small changes were added to meas_drv.c (do not take effect to this branch).