I hope this helps, but it is more than possible that I've misunderstood your intended procedure.
On 20 Apr, 2012, at 02:01, Jose Camacho wrote:
> I have an experiment that involves presenting two images with a text
> below them for the participant to choose between them. Because these
> pairs of images are different for each text, we have designed it as
> separate routines, each involving a unique text and pair of images. A
> loop with a single repetition encompasses all the routines.
>
> My questions are the following:
>
> a) Is it possible to have the presentation of the individual routines
> randomized from participant to participant? As it stands, the loop is
> set to randomize, but each run of the experiment presents the same
> order.
Loop randomisation doesn't have any meaning when there is only a single repetition of the loop. Effectively there is only one "trial" here from PsychoPy's point of view, as a trial equates to a single iteration of a loop. So it can't be randomised: the one-and-only trial can only be presented first.
From the point of view of the subject, it might appear that there multiple trials are being presented, but in the PsychoPy world view, it is just a single trial with multiple stimuli being presented consecutively in a chain. You need to restructure things, but the good news is that it will be much simpler than what you have already done. You currently have a single (redundant) iteration of a loop, containing multiple routines. What you actually want is a single routine within a loop which repeats.
> b) (this is a more general question) Is it possible to draw the images/
> texts from a single file? I understand this can be done when there is
> only text (using an excel file), but I can't think of a way to do the
> same to pair images with text.
Certainly, this is the fundamental way in which PsychoPy is structured. You create a .xlsx or .csv file containing three columns, such as:
leftImage rightImage questionText
happy.jpg bored.jpg Who is happy?
myCat.jpg myDog.jpg Who goes woof?
etc
The randomisation works by selecting entire rows at random from the file, so the two images you want will always be paired with their correct text.
Create just a SINGLE routine, which draws two images and a text message. Put a randomised loop around the routine, and browse for your conditions .xlsx file. If there are, say, 50 trials, then there should be 50 lines in the .xlsx file and you should set the number of repetitions in the loop to be 50.
In the "image" field of the picture stimuli, type "$leftImage" (without the quotes) in one and "$rightImage" in the other. In the text stimulus, type "$questionText" in the text field. The $ symbol tells PsychoPy to get the current value of the .xlsx column with that name from the loop rather than to use the literal text you typed.
This arrangement means that you can easily change your experimental stimuli just by editing the .xlsx file, without having to edit an individual routine inside PsychoPy. It is then also easy to change the order of presentation, repeat trials, etc, just by changing the loop settings. PsychoPy will do the heavy lifting for you…
Regards,
Michael
Michael
--
You received this message because you are subscribed to a topic in the Google Groups "psychopy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/psychopy-users/yM8ZIGQoPUo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/1F0C1CE5-6C17-4D3C-9C24-C83DF3395D6A%40otago.ac.nz.
For more options, visit https://groups.google.com/d/optout.
On 21/06/2016, at 16:29, zgabrie...@gmail.com wrote:Hi, Michael. Thank you very much. In fact, I don´t think is exactly this what I need. I have already my lists manually counterbalanced, as I understand you suggest, and I will manage manually which list I present to each subject, depending on the subject. What I need is to present the 36 sequential pairs of each list (intra-list) in a random way. The problem I am having is that if I make sentence-word sequential (from an excel file), the presentation of this pairs, as a unit, is also sequential: this I want to be random.I don´t if I am being very clear, I am sorry, my english is a bit rust.Best regards and thanks,Gabriela