![]() On trials with the popup, would it be possible to have it set so that they can ignore the popup and continue with the primary task on screen (math problem)? Because you mentioned being unable to have more than one keyboard component, I’m unsure how to set this up. I was able to get the popup to work, but unfortunately I have a few more questions.įor this task, we want participants to be able to choose to respond to either the popup or the math problem. Thank you for your help! I went with your first suggestion, as it seems to fit our experiment better. thisN = 0: from your code, and adjust things so that you can just use one keyboard component, to avoid the conflict between them overlapping. So just remove the conditional line about. Just insert another text component, and carry over its content from the previous routine.ĮDIT: actually, looking at your screen shots again, maybe this wouldn’t work for you, as you want that prompt text to appear early in the trial. the math problem) from the previous routine to carry over to this one (so the participant doesn’t notice the change), you can do that. Then add this: # only run this routine on 1/5 trials: Insert a code component on that routine, and generate your popup_prompt_rng variable. So put your popup message and keyboard on a separate routine, with the message text set to always be visible. There is only one physical keyboard, so they will be competing and conflicting. The reason for this is that you can’t have two keyboard components running at the same time, as you have currently. construct your trial from multiple routines), and make the execution of those routines conditional on your popup_prompt_rng variable. Rather than do this within one routine, you probably want to split things across routines (i.e. 80% of the time, the stimulus would be set to be invisible, and remain so for the rest of the experiment.īut there is a larger problem here. ![]() Having said that, you are on the right track with your code but note that you are running it conditionally (only on the first trial), so it will have no effect on subsequent trials. ![]() If you’ve already posted something that didn’t follow this rule th… 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. When you include python code on this forum please put triple “backticks” like this ``` on the line before and the line after your code. Please surround python code with backticks Other Please let me know if more information is needed! Would anyone be able to give me some advice on how to set this up? Any and all help is appreciated. ![]() I am attaching screenshots of my builder view, as well as the code component I have been trying to work with. The text simply does not appear during any of the trials. I have tried following the steps in this thread: Presentation of a sound in a random trial - #2 by Michael but I have not been successful. Once this secondary task is completed, the primary task (math problems) continues as normal.įor now, I am first seeking help on getting this prompt to popup during the primary task. This prompt should appear in 20% of the trials, and if the participant elects to attempt this task, a different stimuli should appear on the screen, taking the place of the math problem. However, during every trial, we want there to be a prompt for participants to choose whether or not to complete a secondary task (during the primary task). The primary task involves responding to a math problem via key press. I am currently trying to build an experiment in which participants complete two tasks. If not then just delete and start from scratch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |