• 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 #7: SlideStates

June 15, 2017 Andrew Jahn

SlideStates are different instances of the same Slide object. For example, you may want to present two types of conditions, one where the subject responds to the color of a word, and another condition where the subject responds to the color of a car. Instead of creating two separate Slide objects, you can put both conditions into a single Slide, making the experiment more compact and more flexible.

You can create SlideStates by clicking on the Add Slide State button in the Slide object toolbar. The SlideState that is presented depends on the ActiveState field, which is found in the property pages of the Slide. The SlideState names can be changed through the sub-object properties pages, and then the ActiveState can point to any one of the SlideStates.

Instead of pointing to just one SlideState, we can have the ActiveState depend on which condition is chosen from a List object. Create another attribute in the Slide object and enter the names of the SlideStates. In our example, we created a new attribute called "StateName", and have the ActiveState field refer to this attribute when presenting a trial. In our example, if the StateName attribute is "Car", then the Car SlideState is activated; if the StateName attribute is "Stroop", then the Stroop SlideState is activated.

StateName_Attribute.png

Once you've mastered these basics of E-Prime and object-oriented programming, you have the tools to create even more sophisticated experiments. The next tutorial will expand the structure of our experiment by including a separate practice session in addition to the experimental trials. To do this, we will use Inline objects, which give you even greater power and flexibility in building your experiments.

← Ordering of Options in CommandsE-Prime Tutorial #6: The Feedback Display Object →
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