Labjacks

This provides a basic LabJack U3 class that can write a full byte of data, by extending the labjack python library u3.U3 class.

class psychopy_labjack.labjacks.U3(debug=False, autoOpen=True, **kargs)
setData(byte, endian='big', address=6701)

Write 1 byte of data to the U3 register address (EIO default)

parameters:

  • byte: the value to write (must be an integer 0:255)

  • endian: [‘big’ or ‘small’] ignored from 1.84 onwards

  • address: U3 register to write byte to. Both str and int constants are supported:

    • ‘FIO’ == 6700

    • ‘EIO’ == 6701 (default, accessed from DB15 breakout)

    • ‘CIO’ == 6702 (4 bits wide (0 - 15))


Back to top