My aim is to trigger a transcranial magnetic stimulation pulse (TMS) using PsychoPy running on a MacBook Pro via a LabJack U3-LV. The MacBook Pro is connected to the TMS machine via the USB port, which is connected to the LabJack U3-LV. The LabJack U3-LV is then connected to the TMS via TTL.
I’m trying to run stuff that is on this webpage here: http://www.psychopy.org/api/hardware/labjack.html
The first line from psychopy.hardware.labjacks import U3 seems to be working ok. However, the next line is confusing me: U3.init(debug = False, autoOpen = True, **openArgs)
I’m inputting the code below to implement this (which is probably wrong):
U3.init(debug = False, autoOpen = True, firstFound = True, localID = None, devNumber = None, handleOnly = False, LJSocket = None)
However, I’m getting the following error:
TypeError: unbound method init() must be called with U3 instance as first argument (got nothing instead)
Please could somebody explain this error to me? Please could somebody explain the U3.init(debug = False, autoOpen = True, **openArgs) to me as well? In particular, could the format of specifying the openArgs be explained? I know it recommends looking at u3.open() but I’ve looked at this and I don’t understand.