Jump to content

As of July 17, 2015, the LabJack forums here at forums.labjack.com are shut down. New registrations, topics, and replies are disabled. All forums are in a read-only state for archive purposes.

Please visit our current forums at labjack.com/forums to view and make new posts. To post on the current forums, use your labjack.com login account. Your old LabJack forums login credentials have been retired. There are no longer separate logins for labjack.com and LabJack forums.


U6 labjack Python getAIN error in differential mode

  • Please log in to reply
1 reply to this topic

#1 Nivix

  • Members
  • 1 posts

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!

#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

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