[open] Polling responses in parallel with and throughout a sequence
Hello!
I am a psychology student from Finland and I have just started using OpenSesame and think it is great!
However, I have come across an issue I need some help. I am currently trying to create an experiment where timing is very important. The backend is PsyhoPy and my setup is the following:
The problem concernes sequence_2 and the parallel function. What I need is to collect responses throughout the entire sequence, however the keyboard_response does not work when applied with the parallel plugin. I have tried putting the key_response before the sequence as was suggested in this post:
But that does not work (OpenSesame simply freezes)
I have also read this post:
http://forum.cogsci.nl/index.php?p=/discussion/270/solved-recording-rt-during-a-sketchpad/p1
And I am, therefore, wondering if I need an inline script to do what I require? If so, the main problem is that I have no experience working with pyhton script and cannot adapt the scripts in the earlier mentioned posts to my needs, so that it will work (I have tried my best).
What I would need is a sequence as follows:
Sequence_2
Press_start (Sketchpad; duration = keypress)
Blank (Sketchpad; duration = 0 ms)
Delay_before_cue (duration =750ms; jitter=500)
Cue (Sketchpad; "press now"; duration = 0 ms)
Blank (Sketchpad; duration = 0 ms)
Delay_before_response (duration =250ms; jitter=250)
Circle (Sketchpad; duration = 0 ms)
Blank (Sketchpad; duration = 0 ms)
Delay_after_circle ( duration = 400 ms)
Blank (Sketchpad; duration = 0 ms)
Temporal_order_question (Sketchpad; duration = 0 ms)
Temporal_order_response (duration = infinite; Correct/allowed responses = left;right)
Blank (Sketchpad; duration = 0 ms)
and during all this I would need a script that collects keypress responses throughout the sequence (all key presses = "space", except for in the temporal_order_response), so that I can compare the time stamp of the presentation of the circle and the time stamp of the key press (this is the most important part of the experiment)
The reason I need to collect responses in parallel and not in sequence is because I need to vary the duration between the cue and the presentation of the circle but at the same time I don't want the appearance of the circle to be dependent on the key press. Furthermore, I need the duration of the cue and the circle to be 0 in duration.
Am I using the parallel function wrong in some way or would this require a inline script? If a script is required, is there any chance I might receive som help in writing it?
Kind regards,
Thomas
Comments
Hi Thomas.
You're not doing anything wrong. There are known issues with the
parallel
plug-in.A fix was suggested by @dschreij, but this has so far not been tested. So you could take a look at that, in which case, please report back with your experiences. The fix is described here:
Alternatively, you can, as you already saw elsewhere, write your trial sequence using an
inline_script
that continuously polls the keyboard. That may be more coding than you'd care for, but it would work. I would take a look at the various example scripts that you can find here on the forum. And don't hesitate to ask if you get stuck.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
The explanation I have to accumulate tendencies inside parallel instead of inside string is really because I have to change the actual period involving the cue as well as the business presentation of the group of friends however at the same time My partner and i will not desire the looks of the group of friends to be determined by the main element press. On top of that, I would like the actual period of the cue as well as the group of friends to be 0 inside period.
Was My partner and i with all the parallel operate inappropriate in some way or could that need a inline script? In case a script is essential, possibly there is just about any opportunity I might be given som assistance in writing the item?
_______Edwordstephen_______
@thomasusa80 I'm afraid your question is unclear. (I assume it has been machine translated?) Could you please rephrase your question? The English doesn't have to be perfect (most people here are not native speakers), but we have to be able to understand!
Check out SigmundAI.eu for our OpenSesame AI assistant!
@sebastian Thank you for your quick reply and your help!
I was in a hurry to sort the problem and I was looking for a quick solution when I first wrote, but I decided to alter the experiment instead. However, I am going to try your solution in the coming months and will definitely post any headway I make with the problem.
And I just want to say that I think it is wonderful how much time and energy you guys put into helping others!
Cheers,
Thomas
Ps. I am afraid I do not understand how thomasusa80 question relates to my first post, but he/they are perhaps conducting a similar experiment...