The code that handled the voltage Offset in waveform acquisition is wrong

VOffset is an Added voltage to the waveform, and not a subtraction.

Therefore, if you want to measure a waveform from 0 to 5, you should set VOffset to -2.5