Michael
February 28, 2018, 10:59pm
2
When you include python code on this forum please put triple “backticks” like this ``` on the line before and the line after your code.
If you’ve done it correctly then your code will appear in a grey box with correct indentation like this (check the preview of your post on the right hand side before posting it) and other people will be better able to work out what might be right/wrong with your code.
if myVal==True:
break
If you’ve already posted something that didn’t follow this rule th…
Your problem is here:
mikhail.ordin:
parallel.setData(z)
As the API shows (psychopy.parallel - functions for interacting with the parallel port — PsychoPy v2023.2.3 ), the .setData()
function sends one byte. You are feeding it a multi-character string, which by definition will contain more than one byte’s worth of data.
The parallel port is a very low level interface in this day and age. You are literally controlling the voltages on individual lines in a cable. You can’t just send arbitrary information on that old-school channel.