How to use variable stimulus durations within a coroutine?
Hello,
I have trouble with the duration settings within a coroutine.
I defined variable SOA in an inline script and applied it to the Duration of one of my sketchpads (cue_to_target_interval). This worked fine as long as it was part of a sequence. However, I had to change the sequence into coroutine ( I need the keyboard_response to collect responses from the very beginning of the trial). I set the Start time of the cue_to_target_interval to 800 and the following sketchpad to 800+[SOA] (target_right).
Im getting an error: ''Start (now: 800+1333.5) and end (now: 800+1333.5) time need to be non-negative numeric values and end time needs to be equal to or higher than start time''
The Duration of the target_right sketchpad that the note refers to is set to 300 (Im not able to set the End time inside of the coroutine item for this sketchpad).
Is there a way to fix this?
Or another approach to implement the SOA variable?
Thank you!


Comments
Can you try:
=800+[SOA]Does that work?Eduard
Hi @romana , do you mind sharing your inline script for me to take a look? I am currently facing this issue: http://forum.cogsci.nl/index.php?p=/discussion/4811/how-to-record-keyboard-responses-outside-of-the-block-loop#latest and it seems like your experiment is similar to what I'm planning to do.
Would be awesome if you can let me see if I can incorporate it into my own experiment.