I could also upload my code but it's very lengthy, so I'd rather try to explain it a bit better if the issue is not clear. Until now, we have a randomised block design, where the order of blocks is set to random. I was thinking maybe I could build in an if condition that checks when the code is running if the list items are target items and runs them differently, but I am unsure how I could make this work. Counterbalancing is simply an extension of blocking. I'm just not sure how to make this happen. While the experiment still works fine, randomization still doesn’t occur. To do this, I’ve placed a loop around all the blocks, with this loop titled blocknames in the picture. What I need is something to understand if there is a target item in the list that has to be displayed differently. The next step for me is to randomize the presentation of these blocks, with one block denoting one level of SOA/time interval (e.g +750ms). This is how I exchange on item of the stimulus list (in this case a list of words) with a random item from the target list (a list containing words and pathways to images): #randomly swapping an item of the list with a probability of 1/3Īfterwards I am running each list with a specific code that either displays them as text on a screen or plays them as audio files. Because the lists are run by a code that is specific to the type of the list items. However, when I am trying to display an image in a block with words or audios this does not work. This is no problem if the target item is the same type as the items in the list. I am creating random lists of stimuli and with the probability of 1/3 one stimulus of each list is replaced by a target item. So far I managed to replace a random stimulus of the blocks with the target, but I do not know how to display the target item. To keep the attention of the subjects, I have to incorporate target items which are either an image or a word. Each block consists either of words being shown or audio files being played. You can use a number of different Loop Types in PsychoPy. In the above example only one line was indented so that one line will be executed if the statement evaluates to True. The content of the if or of a for-loop is determined by the indentation of the lines. OS: Win10 PsychoPy version : 2021.2.1 I’m building a Simple Reaction Time experiment. I created different trials with blocks of stimuli. Loops control the repetition of Routines and the choice of stimulus parameters for each. Begin Routine: m圜ount m圜ount + 1 if m圜ount > 10: trials.finished True Note In Python there is no end to finish an if statement. I am facing an issue that I do not know how to solve. I found out even though I selected loopType as random, the images are still displayed in repeats across blocks and between events.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |