|
Post by matia on Apr 12, 2021 18:58:54 GMT
Dear all,
I've been trying to work out whether I can code an experiment in such a way that I use Visual search task in which participants will not respond by pressing space, but rather they should click the target stimulus with their mouse. However, after hours of trying, at least I figured out what the problem is. I would be very grateful if someone could help.
options mouse on
bitmaps face1 face2 face3 face4 face5 distractor table a 1 6 2 6 3 6 4 6 5 6
task a table a show bitmap @1 -100 0 show bitmap @2 100 0 readmouse l @1 2000 #The problem is in this line, clear screen #@1 (1-6 in this particular example) does not refer to a bitmap from the delay 200 #bitmap section but rather to an order with which bitmaps save @1 @2 STATUS #are being presented (i.e. after the 2nd line in the table #I can't react because there is no third image that I can block aa #click on. tasklist a 5 end
I hope I have presented the problem clearly. It gets more complicated when I have a random set size (because I don't know when the target will be presented). Surely there must be some workaround this?
Thanks so much for any help! Best, Matia
|
|
|
Post by Partenope on Apr 18, 2021 11:10:07 GMT
Hi Matia! I would like to help you, because I usually use readmouse in my experiment; Nvertheless, I didn't understand why near to "readmouse l" you have put @1 (because I have always use that position to refer to a column of the table where I have put the correct answers (meaning the correct bitmap, or position that participant has to click on); could you explain it to me? I would like to better understand your script in order to try to help you;
Best wishes :*
|
|
|
Post by matia on Apr 22, 2021 6:14:01 GMT
Hello, I wanted to tell Psytoolkit which image should be clicked on (by refering to it from the table). However, what I learnt is that when using readmouse, number next to it does not refer to the bitmap image (from the stimuli dir) but to the order with which bitmaps are presented in a task. I guess there is a workaround this, but since I am using multiple images that are randomly showing on a screen this could be a tedious task, one that I decided to skip for now Thanks for asking, best, Matia
|
|
|
Post by PsyToolkit on Apr 23, 2021 11:09:37 GMT
This is clear something where some more documentation is needed.
The readmouse wants to know which stimulus is being pressed. Somehow, you need to make sure it is possible to find that out. There are different ways to solve this, but probably easiest with the array functions.
In Matia's example, you would not have "readmouse l @1 2000", because the @1 refers to the specific image, not the number of the stimulus in the sequence of presented stimuli in this trial. If it is the first stimulus one you want to be clicked, it should be "readmouse l 1 2000".
|
|