• Blog
  • About
  • Publications
  • Videos
  • Workshops
  • CV
  • Contact Me
  • Hall of Fame
Menu

Andy's Brain Blog

Street Address
City, State, Zip
Phone Number
fMRI, Neuroimaging, and More

fmri, neuroimaging, and more

Andy's Brain Blog

  • Blog
  • About
  • Publications
  • Videos
  • Workshops
  • CV
  • Contact Me
  • Hall of Fame

E-Prime Tutorial #9: StartUp Info Parameters

June 22, 2017 Andrew Jahn

We've learned how to declared variables and how to change the properties of other objects using E-Basic code. But what if we want to use a variable or attribute not yet coded into our experiment? What if we want an attribute created by what the user at the beginning of the experiment?

We can do this through the Startup Info tab of the Experiment Object Properties, accessed by double-clicking on the Experiment object at the top of the hierarchy. The default is to ask for a subject number and session number, and then to set them as the attributes "Subject" and "Session" which can be used in other parts of the experiment. You can add other startup parameters by clicking on "Add" and choosing whether you want your parameter to be a Number, String, or Choice.

Any other parameters you add can then be used in InLine objects. For example, if we had a startup parameter called "SkipPractice" and made it a choice (either "Yes" or "No"), we could check the value of the SkipPractice attribute and use it to determine whether we should jump to a Label in another part of the experiment:

Try setting different startup parameters and using them in your experiment. If you're following this experiment, see if you can do this exercise: Set a parameter which asks the user to enter a number between 300-1000 to indicate the duration of the ExpStroopSlide. Modify the ExpStoopSlide object to use this new duration.

← Can you use AFNI's 3dFWHMx with SPM's residual data?E-Prime Tutorial #8: InLine and Label Objects →
Archive
  • September 2024
  • June 2024
  • March 2024
  • January 2024
  • June 2023
  • May 2023
  • April 2023
  • February 2022
  • January 2022
  • January 2021
  • December 2020
  • April 2020
  • December 2018
  • April 2018
  • January 2018
  • December 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • January 2017
  • November 2016
  • August 2016
  • July 2016
  • February 2016
  • January 2016
  • September 2015
  • August 2015
  • July 2015
  • May 2015
  • April 2015
  • December 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • April 2012
  • March 2012

What's on Andy's Brain this month?

Connect with Andy!

Powered by Squarespace