Michiel Spapé
Research Fellow
Perception & Action group
University of Nottingham
School of Psychology
www.cognitology.eu
Many Thanks!!
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-p...@googlegroups.com.
To unsubscribe from this group, send email to e-prime+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
That said, here is my take...
First, I agree that you would do well to work
through Mich's E-Primer, as well as the Getting
Started and User's Guides that came with E-Prime.
Now, the inline code method allows you to easily
randomize down to the ms, and without using
attribute references. OTOH, the lack of an
attribute reference means that the data log
contains no record of the randomized fixation
duration. So I would modify Mich's example as follows:
c.SetAttrib "FixDur", Random(1500,3500)
Then, in my fixation object, I would set Duration to "[FixDur]". Done.
But if you don't mind (or even prefer) a coarser
grain (say, 1500 - 3500 ms in steps of 100 ms)
then you can accomplish this without any inline
code. Just use a List, or perhaps a nested List,
to hold all the possible fixation durations, and
set the List Selection to Random. Suppose we
call that attribute (i.e., column)
"FixDur". Then, as before, in your fixation
object set Duration to "[FixDur]". Done. (For
more on nested Lists in particular, see Appendix
C of the User's Guide that came with E-Prime.)
-- David McFarlane, Professional Faultfinder
Glad it worked for you. But it bugged me that
Mich's code did not work, so I looked into it
myself. Indeed, when I hurriedly tried it, I got
the compile-time error, 'Left of "." must be an
object, structure, or dialog.' That seemed odd,
I looked more closely and saw that I had misnamed
my TextDisplay as "FixtationDisplay" instead of
"FixationDisplay". Fixed that, and for the
record, Mich's code worked just fine. So I
expect something like that happened to you, very
easy to do. Glad you got it to work in any case,
and posted back with your success.
Best,
Mich
c.SetAttrib "FixDur", Random(1500,3500)
--
best,
liw
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/5de95064-b129-4384-9fd5-d44b0552e351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.