Trialhandler - Importing Conditions from Excel file

411 views
Skip to first unread message

kwsunwoo

unread,
May 12, 2013, 8:53:20 PM5/12/13
to psychop...@googlegroups.com
Hi this is Sam. I have written a question earlier regarding random presentation of stimuli.

My Psychopy version is v1.76.00 and currently I am trying to use only the builder to create an experiment where I can randomize the presentation of the stimuli with the pre-determined conditions with different contrasts.

There is no error message, but when I run the basic set up of experiment using random method of trialhandler, I do not see different contrasts/conditions written in my excel file (Parallel2.xlsx) but I rather see same stimuli repeatedly with same contrast. When I open the results file (KSW01_Trial04.xlsx), it says that different conditions (rows) were presented on the screen, but I do not see these conditions on the screen at all. I see one stimuli with not the contrast I have written, but somehow a default contrast is being used during the experiment. I believe somehow my parameters from the condition list files are not being imported correctly.

How can I  make sure my contrast is being imported correctly into the system using random method of trialhandler?
I have uploaded the basic version of the experiment (Practice.psyexp) for anyone to see what my current problem is.
I think I just do not understand how the importing conditions work from the excel file into the code using trialhandler.
It would be great if someone can give me information about what I am missing or making mistakes in. I have read all the documents regarding trialhandler in psychopy website or other sites, but I still cannot make this work.

Thank you very much for your time and I appreciate all your help and insights gratefully.



Sincerely,
Sam
Parallel2.xlsx
KSW01_Trial04.xlsx
Practice.psyexp

Michael MacAskill

unread,
May 12, 2013, 11:30:04 PM5/12/13
to psychop...@googlegroups.com
Dear Sam,

I suggest a visit to the documentation, in particular:
<http://www.psychopy.org/builder/flow.html#accessingparams>

Nowhere have you told Builder to use the variables from your Excel file. All of the parameters in your components are entered as fixed constants (e.g. '1') rather than referring to the names of the variables in the file (e.g. "contrast", "present", "corrAns").

The software can't know your intentions unless you tell it explicitly.

Regards,

Michael
> --
> You received this message because you are subscribed to the Google Groups "psychopy-users" group.
> To unsubscribe from this group and stop receiving emails from it, 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/msg/psychopy-users/-/ZgZVpn4KkFoJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> <Parallel2.xlsx><KSW01_Trial04.xlsx><Practice.psyexp>

--
Michael R. MacAskill, PhD michael....@nzbri.org
Research Director,
New Zealand Brain Research Institute

66 Stewart St http://www.nzbri.org/macaskill
Christchurch 8011 Ph: +64 3 3786 072
NEW ZEALAND Fax: +64 3 3786 080










kwsunwoo

unread,
May 13, 2013, 3:47:52 PM5/13/13
to psychop...@googlegroups.com
Thank you Michael.

Now I can see different contrast conditions that I have imported.
Thank you!


Best regards,
Sam
Michael R. MacAskill, PhD                michael.maca...@nzbri.org
Reply all
Reply to author
Forward
0 new messages