from LabJackPython import * import u6 cmd = [9, 153, 9, 153, 9, 153, 9, 153] d=u6.U6() d.configIO(1) d.setDOState(6, 1) d.setDOState(7, 1) print 'first', d.i2c(96, cmd, 7, 6) d.setDIOState(2, 1) d.getFeedback(u6.LED(0)) print 'second', d.i2c(96, cmd, 7, 6)