Positioning of random images & Using a conditional expression in /trialduration... & more.


Author
Message
aya
aya
Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)Distinguished Member (3.5K reputation)
Group: Forum Members
Posts: 14, Visits: 1

Hello, I am doing an experiment that involves presenting 4 images on each trial. I would like to present the images in a 2 x 2 square, but have the images randomized to a position every time the experiment is run.


For example, if I had images 1, 2, 3, and 4: 


Participant 1, Trial 1 sees this:


1 3


4 2


Participant 2, Trial 1 sees this:


2 4


1 3


I hope that makes sense. 


 I understand that you can randomize the images in trials, but that's only if you want to present them in a row or a column. Is that correct?


Also, in the /trialduration property of <trial>, I would like to set a number of milliseconds only if a certain constraint is satisfied, i.e. /trialduration = [if (values.timer==1) 90000 else 99999999]. I thought this would work as the if statement would return an integer. I really wish this worked...


Lastly, I would like to redirect my participants to a survey website after the experiment, but pass along their subject ID to the URL. Kinda like what was going on here. But how do I access that subject number? Is it unique for every participant?


Any help would be greatly appreciated.



 Thanks!


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
aya - 13 Years Ago
Dave - 13 Years Ago
aya - 13 Years Ago
Dave - 13 Years Ago
                     OK, I updated that piece of code like so:

<text...
aya - 13 Years Ago
                         Since your <text> element does not have any items (i.e. no...
Dave - 13 Years Ago
                             But what I want to be randomized is in the counter. (e.g. the numbers...
aya - 13 Years Ago
                                 A <counter> referenced in a stimulus element's (<text>,...
Dave - 13 Years Ago
                                     Ahh that makes a lot more sense now! Thank you very much.
This...
aya - 13 Years Ago
                                         [quote]This would mean I would have to specify the list of images in...
Dave - 13 Years Ago
                                             How do you get your code so nice and formatted? I don't wanna post my...
aya - 13 Years Ago
                                                 [quote]How do you get your code so nice and formatted?[/quote]
...
Dave - 13 Years Ago
                                                     Thank you, I really appreciate your replies. I will take more time to...
aya - 13 Years Ago
                                                         [quote]I will take more time to read up on how these properties work...
Dave - 13 Years Ago
                                                             THANK YOU! I have one more question about my code (which is updated)....
aya - 13 Years Ago
                                                                 / timeout = (if(values.timer30="on") values.trial_limit30 else...
Dave - 13 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search