When I run the following code:
import u6 import LabJackPython d = u6.U6() s = d.getFeedback( u6.DSP(2)) print (s) d.close()I get [8580096] printed out. I don't have anything plugged into the labjack, so that may be correct, but I'm not really concerned with that at the moment.
My problem is that I only get [8580096] the first time I run the program after resetting the U6. If I try to run it again without unplugging and plugging back in my U6, I instead get
Traceback (most recent call last): File "TEST.py", line 6, in <module> s = d.getFeedback( u6.DSP(2)) File "c:\work\labjack python tries\DSP\u6.py", line 429, in getFeedback raise LowlevelErrorException("\nThis Command\n %s\nreturned an error:\n %s" % ( culprit, lowlevelErrorToString(rcvBuffer[6]) ) ) LabJackPython.LowlevelErrorException: This Command <u6.DSP( PLine = 2, Resolution = 0, Gain = 0, SettlingFactor = 0, Differential = False, DSPAnalysis = 1, AcquireNewData = True )> returned an error: UNKNOWN_ERROR (129) Unrecognized error code (129)
This happens every time until I unplug my labjack and plug it back in, in which case I get [8580096] again the next time I run the program. Is there something else I need to run after DSP?
I'm using the Sept. 20 version of LabjackPython with driver version 3.25 and firmware version 1.24.