How to control multiple U6 using python in Ubuntu? | LabJack
 

How to control multiple U6 using python in Ubuntu?

2 posts / 0 new
Last post
Sue
lee_sching's picture
How to control multiple U6 using python in Ubuntu?

I saw different LocalID can be assigned using LJControlPanel in Windows environment. How to do similar thing in Linux? The purpose is to control 6 Labjack U6 in one program on Ubuntu.

LabJack Support
labjack support's picture
If using LabJackPython, when

If using LabJackPython, when creating your U6 object or using the open method, use the localId or serial parameters to specify the device and set firstFound parameter to False. For example:

import u6

u6Dev1 = u6.U6(localId=1, firstFound=False)  # Open first U6 with Local ID 1
u6Dev2 = u6.U6(serial=360005735, firstFound=False)  # Open second U6 with serial number 360005735

Use the configU6 method after opening a U6 if you want to read/change the local ID. For documentation, use the Python help function with u6.U6.__init__, u6.U6.open and u6.U6.configU6 .