LabJackPython.LJ_chSTREAM_WAIT_MODE, LabJackPython.LJ_swSLEEP, 0, 0) #Define the scan list as AIN2 then AIN3. LabJackPython.AddRequest(deviceHandle, LabJackPython.LJ_ioCLEAR_STREAM_CHANNELS, 0, 0, 0, 0) LabJackPython.AddRequest(deviceHandle, LabJackPython.LJ_ioADD_STREAM_CHANNEL, 2, 0, 0, 0) LabJackPython.AddRequest(deviceHandle, LabJackPython.LJ_ioADD_STREAM_CHANNEL, 3, 0, 0, 0) #Apply the requests prior to starting streaming. LabJackPython.GoOne(deviceHandle) #Get all the Results until an exception is thrown try: rIOType, rChannel, rValue, rxValue, rudValue = LabJackPython.GetFirstResult( deviceHandle) while (True): rIOType, rChannel, rValue, rxValue, rudValue = LabJackPython.GetNextResult( deviceHandle) except LabJackException, lje: print "Recieved Exception:" + str(lje) #Start the Stream actualScanRate = LabJackPython.eGet(deviceHandle, LabJackPython.LJ_ioSTART_STREAM, 0, 0, 0)