how to make the program choose a particular image depending on the previously shown image
David McFarlane
mcfarla9 at msu.edu
Fri Jun 4 19:31:28 UTC 2010
Judit,
Stock reminder: 1) I do not work for PST. 2) PST's trained staff
takes any and all questions at
http://support.pstnet.com/e%2Dprime/support/login.asp , and they
strive to respond to all requests in 24-48 hours (although latest
reports indicate more like 10 days) -- this is pretty much their
substitute for proper documentation, so make full use of it. 3) If
you do get an answer from PST Web Support, please extend the courtesy
of posting their reply back here for the sake of others.
That said, here is my take...
If I understood your task better and thought a little harder then I
might come up with a code-free approach, perhaps with judicious use
of nested lists. But let's stick with the code for now.
Suppose you the List attrribute "TestFile" holds the name of your
test image file, and you use an attribute reference like [ProbeFile]
in the stimlus object for your probe. Then you might use code like
If Mid$( c.GetAttrib("TestFile"), 1, 1) = "1" Then
c.SetAttrib "ImageFile", "redblob.bmp"
Else
c.SetAttrib "ImageFile", "blueblob.bmp"
End
This just sketches the basic idea, you can refine it and fill in the
details from there.
-- David McFarlane, Professional Faultfinder
>I'm new in this group and also in EPrime programming. I've only used
>EPrime without script and now I'm starting to learn how to program.
>
>I have a first question, it must sound silly to most of you but I'd
>really appreciate your answers.
>
>I'm currently designing a visual working memory experiment. I need to
>show items such as a blue triangle, a red circle and so on and at test
>show a probe that would be either the shape alone or a colour blob
>(participants should then recall the colour in which the shape was
>presented or the shape that appeared in a particular colour).
>
>The image files are organised like this:
>
>11.bmp=Red circle
>12.bmp=Red triangle
>
>21.bmp=Blue circle
>22.bmp=Blue triangle
>
>How can I tell the program to randomly present 2 coloured shapes at
>study, and and test probe with only ONE feature of one of the
>previously shown items? Importantly, features cannot be repeated
>within a trial.
>
>I've already done it by creating nested lists, but manually choosing a
>target, lets say 11.bmp, and then manually making it show a red blob
>colour. Is it a way to tell the program something like "if the target
>filename starts with 1, then show a red blob, if it starts with 2,
>then show a blue blob, or if it ends with 1, then show a circle" and
>so on.
>
>I would like to do it by script so it could be automatic, cause I
>don't want all participants to have the same manually chosen targets.
>How would the code be and where should I place it?
>
>Many, many thanks in advance!
>Judit.
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list