[Addressing some old posts here, probably too late to do any good ...]
Jasmin,
I do not have a ResponsePixx to work with, nor documentation for the
waitForButtonPress() function, so I am working blindly here.
But let's suppose that the line
res = ML.Execute("waitForButtonPress([5, 10], 30)")
actually pauses program execution until ResponsePixx gets a button
press, and returns the value of the button pressed in the variable res
(possibly including a time stamp). (Hmm, but then how would you add a
time limit for the response?)
Now lets' suppose that you want to use the ResponsPixx to get a response
to the E-Prime object StimText. In that case, I think you would set up
StimText with a Duration of 0. Then you would handle the response
collection in InLine code following StimText, thus:
res = ML.Execute("waitForButtonPress([5, 10], 30)")
StimText.RTTime = Clock.Read
StimText.RT = StimText.RTTime - StimText.OnsetTime
StimText.RESP = res
You can use the Logging properties in StimText to enable response
logging, otherwise you would add the logging in your InLine code.
Again, I am working blindly here, would like to know if any of this
actually works.
-- David McFarlane