I recently bought a labjack U6-pro
I manage to communicate with it using python .
I want to use it in an application where i am going to get eight different values of voltage and store them in a text file on my computer.
My problem is that at the moment i have just connected two AIN0 and AIN2 to a voltage source with a small resistor so as to have a tiny voltage difference.
import u6, time
d = u6.U6()
FileName = r'Z:\TFTS-PC\Labjack_2101493.txt'
SleepTime = 1 # wait time in seconds
fileHandle = open ( FileName, 'a' )
for i in range(1,100):
input0 = (d.getAIN(0))
input1 = (d.getAIN(2))
print input0, input1
I am using the above code but the output it fluctuates a lot.
Is there any solution to that?