I am trying to take a single ended reading of a voltage using a U3-LV LabJack, and programming it in C#. The line of code I use to do so is as follows:
LJUD.eAIN(u3.ljhandle, 4, 31, ref Rec_Volt, 0, 0, 0, 0);
However the voltage is in the range +-10, and the readings only go as far as 2.5v. I would like to adjust the range of the readings, and I am trying to do so with the following line:
LJUD.ePut(u3.ljhandle, LJUD.IO.PUT_AIN_RANGE, 4, LJUD.RANGES.BIP10V,0);
However it does not adjust giving me the following problem: "Argument 4: cannot convert from 'LabJack.LabJackUD.LJUD.RANGES' to 'double'." & "Argument 5: cannot convert from 'int' to 'double'."
Does anyone have an idea of how to properly configure the range, and get the desired readings.
Thanks in advance.