This is my relevant section of code for reading from the pulse counter.
d = u6.U6() d.configIO(EnableCounter0=True) previousCount=0 f = open("log.txt","w") while(True): s, = d.getFeedback(u6.Counter(counter=0, Reset=False)) s = s - previousCount previousCount = s if(s != 0): f.write(str(s)+"\n") time.sleep(10)
I'm currently getting the following results in my output file.
1 1 1 1 1 1 2 1 1 6 1 1 1
Most of the readings appear to be reasonable, but I occasionally get upwards of six pulses from a single 10 time span. This suggests to me that the labjack is measuring multiple pulses when it should only register one. Do you have any idea what might cause this?