psychopy.org | Reference | Downloads | Github

Logging, debugging, PR655 delay issues

Hi, I’m successfully using PsychoPy to communicate with our PR655 meter. I’m having issues on one machine, however, which is causing a 10 second delay after the meter is finished taking the reading until the python program responds again. This is only happening on one machine, and not on my other computer running the same version of PsychoPy, PySerial and Python. I was trying to figure out if the log will show me anything useful, but I can’t seem to get it working. In the pr.py file I turned all the DEBUG paramaters for the sendMessage method to True, and in my script put:

from psychopy import logging
logging.console.setLevel(logging.DEBUG)

I’m still not seeing anything outputting, so perhaps I’m missing something?

Also - I was trying to check where in the script it was hanging, but while in debug mode in PyCharm, as soon as it sends the measure command to the meter, Pycharm would exit debug mode as if waiting for a raw_input(), and not come back until the meter was finished reading plus the extra 10 second delay. Any pointers in the right direction would be greatly appreciated. Thanks!