U6 labjack Python getAIN error in differential mode
1 reply to this topic
Posted 14 April 2013 - 05:15 PM
Hi, I recently got a LabJack U6 Pro and have been using labjack python to control it. However I have recently come across a small problem. I am using the getAIN function to measure the inputs of the device in differential mode, however I now need to be able to change the resolution. But it keeps coming up with this error: AINu6 = -labjackU6.getAIN(0, 1, resolutionIndex = 0, differential = True) TypeError: getAIN() got multiple values for keyword argument 'resolutionIndex' Without me defining the resolutionIndex the program works fine, and I have checked the documentation and nothing in there seems to explain this problems occurance. I did read that the resolution is a global setting and needs to be changed globally; but I am unsure how to do this. Any help gratefully appreciated, thanks!
Posted 15 April 2013 - 10:38 AM
You are passing two resolutionIndex values through the the second and resolutionIndex = 0 parameters causing the error. Use getAIN like this to set the resolution index: -labjackU6.getAIN(0, resolutionIndex = 0, differential = True) or -labjackU6.getAIN(0, 0, differential = True)
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users