e-prime software:
TRANSCRIPT
![Page 1: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/1.jpg)
E-Prime software: A “stimulating” introduction Caitlin M. Hudac Developmental Brain Laboratory January 2012
![Page 2: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/2.jpg)
What is E-Prime?
• Made by Psychology Software Tools (PST) • E-Prime is an object-oriented programming language.
![Page 3: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/3.jpg)
What is E-Prime? • E-Prime 1 – cannot display videos • E-Prime 2 – current version. Can open E-Prime 1 files and
upgrade to EP2 format. • Normally requires a dongle (license) Site license runs
without a dongle!
![Page 4: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/4.jpg)
What is E-Prime? • Error message indicates that the license is not being read (no dongle or site license recognized).
• Possible to still work in E-Studio but only can only save a few times.
![Page 5: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/5.jpg)
E-Studio vs. E-Run • E-Studio is the Guided User Interface (GUI or ‘gooey’) to
build scripts. • File extension = .es (E-Prime 1) or .es2 (E-Prime 2)
• E-Run is a way to run any script without needing to open E-Studio. • Need to have generated the script in E-Studio (see last few slides) • Usually does NOT require any license • File extension = .ebs (EP1) or .ebs2 (EP2)
![Page 6: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/6.jpg)
Process of building an E-Prime experiment that interacts with NetStation 1. Outline your experiment! 2. Read E-Prime manual. 3. Build script without NetStation calls. 4. Read E-Prime Extensions for Netstation manual. 5. Add in NetStation calls. Needs to be done at our
laboratory. 6. Video tutorials will be available on our website.
![Page 7: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/7.jpg)
Object vs. Attributes • Objects are things that “happen” in the script. These get
ordered into a script as part of the Structure Tree. • Attributes are defined variables. Examples:
• Background color of a slide • Slide states • Trial number
• Both objects and attributes need to be established
BEFORE the script tries to call it.
![Page 8: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/8.jpg)
Hierarchies • Session Procedure
• Text: “Welcome to the experiment” • Set Trial Number = 1
• Looped procedure (x20) • Trial Number = Trial Number + 1 • Display Trial Number and play sound /ba/
• Text: “Thank you, goodbye!”
1
2
3
20 times
![Page 9: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/9.jpg)
The main stage
Objects
The Structure
Tree
Properties Box
Workspace
![Page 10: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/10.jpg)
The main stage
New.. Open.. Save..
Run the script
Check the overall experiment properties
Generate the script
![Page 11: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/11.jpg)
Objects to use Image (bmp format only) User-created “in-line” code
Marks a “Go To” location in the Structure Tree
The “main” structure of the Structure Tree Movie (.avi or .mp4) How E-Prime interacts with external packages, like NetStation
Any combination of other objects
A “ready-made” way to display a participants accuracy, response time, etc.
Record sounds being produced Sound file (.wav) Text A way to pause the experiment
![Page 12: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/12.jpg)
Image object
If you enter “image.bmp” then E-Prime will look in the folder directory where the .es2 file is save. Otherwise, you can browse for the directory.
![Page 13: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/13.jpg)
Movie object
![Page 14: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/14.jpg)
Slide object Indicates which object is active
Objects that can be used
Slide State
![Page 15: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/15.jpg)
Slide object – Slide states
Add new slide state
Slide state
![Page 16: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/16.jpg)
Slide object Objects that are in the slide
Bring objects forward or backwards
![Page 17: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/17.jpg)
Slide object – Slide properties
![Page 18: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/18.jpg)
Slide object – Sub-object properties
![Page 19: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/19.jpg)
Slide object – Slide states
Add, delete, or duplicate a slide state
Slide state
![Page 20: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/20.jpg)
Slide object – Slide states
Slide state
![Page 21: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/21.jpg)
Slide object – Slide states
The slide state can be dependent on the user response. In this example, prior to the slides DeckChosen and DeckPayoff, the slide state was set based off the deck selection (A = 1).
![Page 22: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/22.jpg)
Sound out object
Note: Sound out objects are only the Properties menu. They do not have a window that appears in the Workspace.
![Page 23: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/23.jpg)
Feedback
Slide State
Feedback objects are basically “ready-made” slides to display feedback, such as whether that answer was correct, the response time, ongoing accuracy, etc. These can be edited, or you can build your own slide object.
![Page 24: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/24.jpg)
Feedback
![Page 25: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/25.jpg)
Feedback
Feedback must be linked to an object that appeared previously in procedure.
User defines which statistics are collected
![Page 26: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/26.jpg)
Feedback
Formatting choices
![Page 27: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/27.jpg)
Lure and In-Line script examples
This example uses 2 attributes: Lures lastWasLure
This example uses 3 labels: Finish1 Lure1 Go1
A B C
A B
C
![Page 28: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/28.jpg)
Procedures
Green = Start Red = Stop
![Page 29: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/29.jpg)
E-Prime example using NetStation calls – The Oddball
![Page 30: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/30.jpg)
Experiment properties • Recommended that you take the time to write notes in the General tab.
• Especially helpful as you make modifications to different versions.
![Page 31: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/31.jpg)
Experiment properties • These are the prompts that are shown at start-up.
• Note: Some are required to be defined to start NetStation, although may not be necessary to display them.
![Page 32: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/32.jpg)
Experiment properties
Options include Numeric, Choice, String
Attribute name
![Page 33: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/33.jpg)
Experiment properties • Make sure these are checked if you need to use them.
• The SRBOX is the response pad.
![Page 34: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/34.jpg)
Experiment properties
![Page 35: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/35.jpg)
Experiment properties • Any 3rd party communication (like with NetStation) should be an approved package.
• Often when you are working with tech support they will need to know the version of the package.
![Page 36: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/36.jpg)
Object properties Object properties
![Page 37: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/37.jpg)
Object properties • Text object: You can type in the general box, change the alignment, colors, etc.
Attributes
![Page 38: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/38.jpg)
Object properties • Most objects also have frames. You can use % or pixels.
• To create a border around the object, change the width from 0 to a different number (e.g. 20 for a thick border).
![Page 39: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/39.jpg)
Object properties • Font options
![Page 40: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/40.jpg)
Object properties
Any devices needed during the display of that object
should be listed here
Terminate or Jump to
EEG testing should be run in Event mode.
Allowable: Any character that can be used during the object. Correct: What the correct answer should be. This is important if you are basing any of the script off of user response or marking the EEG file with correct/incorrect response. Tip – use [CorrectAns] here that calls back to an attribute in the List.
![Page 41: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/41.jpg)
Object properties • You can custom select any options you’d like or use a pre-set on the Duration/Input tab.
• Anything selected will be printed and saved for THAT OBJECT onto the E-Data file (.edat)
![Page 42: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/42.jpg)
Lists List
New procedure
![Page 43: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/43.jpg)
Practice List Add multiple rows (cases) or columns
(Attributes)
Attributes: The name and case are important. These
become OBJECTS.
You can double-click and rename if needed.
![Page 44: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/44.jpg)
Practice List
Step 1: Since it is sequential, start with ID=1. Run PracProc using FrequentTone as Stimulus.
Step 2: TrialBegin object through Pause object.
Step 3: ID=2. Run PracProc using TargetTone as Stimulus.
Step 4: TrialBegin object through Pause object.
Step 5: etc.
Once an ID has been selected, all attributes will be assigned to the value in
that row.
![Page 45: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/45.jpg)
Practice List
Text surrounded by “[ ]” indicates an attribute (e.g. OBJECT) as well!
Attributes must be defined prior to
using in the text! Where were these defined?
![Page 46: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/46.jpg)
Lists
![Page 47: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/47.jpg)
List properties
![Page 48: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/48.jpg)
List properties
![Page 49: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/49.jpg)
Block List
![Page 50: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/50.jpg)
Block Procedure
![Page 51: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/51.jpg)
Trial List Weights: How many times you repeat a row.
In this example, ID=1 will
be run 70 times.
![Page 52: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/52.jpg)
Trial procedure
![Page 53: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/53.jpg)
Trial procedure
![Page 54: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/54.jpg)
Trial procedure
![Page 55: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/55.jpg)
Trial procedure Calls to the attribute
Stimulus (retrieves from the PracticeList).
![Page 56: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/56.jpg)
Trial procedure Interstimulus interval was previously defined in ISI object.
![Page 57: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/57.jpg)
Trial procedure
![Page 58: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/58.jpg)
Trial procedure
Because we have this in-line script, anytime an ID is run, if you press CTRL-
SHIFT during the PracProc, it will pause the stimulus until CTRL-SHIFT is pressed
again.
![Page 59: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/59.jpg)
Trial procedure The last object of BlockProc
![Page 60: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/60.jpg)
Generating the script
This is another way to define attributes. These are defined even before script is
run.
![Page 61: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/61.jpg)
Generating the script
This is the full script. If you see this, the script hasn’t been generated yet –
meaning, no .ebs2 file has been created and the stimuli cannot be run.
To generate the script
![Page 62: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/62.jpg)
Generating the script
Clicking the running man will automatically
generate the script and start the script.
![Page 63: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/63.jpg)
Start Recording
Stop Recording
Trial Begin
Trial End
Trial Begin
Trial End
Pra
ctic
e Tr
ials
NS Calls: Big mouth, little sandwiches
![Page 64: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/64.jpg)
Adding NetStation calls
![Page 65: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/65.jpg)
Adding NetStation calls
![Page 66: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/66.jpg)
Adding NetStation calls
![Page 67: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/67.jpg)
Adding NetStation calls
![Page 68: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/68.jpg)
Adding NetStation calls
![Page 69: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/69.jpg)
Adding NetStation calls
![Page 70: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/70.jpg)
Adding NetStation calls
![Page 71: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/71.jpg)
Adding NetStation calls
![Page 72: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/72.jpg)
Adding NetStation calls
![Page 73: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/73.jpg)
Adding NetStation calls
![Page 74: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/74.jpg)
Deleting objects
![Page 75: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/75.jpg)
Deleting objects These objects STILL EXIST! Be careful or they will come into conflict with other
aspects of the script.
You can delete them again from this Unreferenced section and then they will
be gone forever.
![Page 76: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/76.jpg)
Deleting Objects
![Page 77: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/77.jpg)
Organization .edat2 = Data file with response times, accuracy, etc.
.ebs2 = E-Run file. Will automatically run script.
.es2 = E-Studio file. Open and edit
.txt = Can be used to recover edat’s if the program stops before the script is completed.
![Page 78: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/78.jpg)
Organization Tip: Much easier to open files from within E-Studio itself!
![Page 79: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/79.jpg)
Organization – E-Recovery
Use the .txt file in E-Recovery to recover edat’s if the program stops before the script is completed.
![Page 80: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/80.jpg)
Organization – E-Recovery
![Page 81: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/81.jpg)
Organization – E-Recovery
![Page 82: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/82.jpg)
ESSENTIAL LESSONS • Look for help
• Read the user manual! • Pull open other people’s scripts
• Examples should be posted on every Center system • Online forums (PST net, google forums): Probably need to create
an account • http://www.pstnet.com/forum/ • http://groups.google.com/group/e-prime/
• Ask for help • David office hours for E-Prime =
• Spring 2012: Thursdays, 10am-12pm • Otherwise, check website for office hours
![Page 83: E-Prime software:](https://reader034.vdocument.in/reader034/viewer/2022051521/5868c09f1a28ab677d8b5e09/html5/thumbnails/83.jpg)
Questions??