Naive question 1 of 3: How to properly interrupt a run?

2,442 views
Skip to first unread message

Matt Hall

unread,
Nov 8, 2013, 3:47:58 PM11/8/13
to e-p...@googlegroups.com
Hi, all- I'm new to Eprime, dusting off scripts written by a previous lab member about 10 years ago, and without any other Eprime users in my lab or department, so please have patience with my n00b questions.  The 1st of 3: how to properly interrupt a run?

I've found other topics here and else asking how to interrupt a run and then resume where you left off: that is *not* my question. Mine is much more basic: let's say you're testing out a script, so you hit run, and then having verified that whatever you tweaked did or didn't work, you want to go back to the main building environment. What's the best way to exit/quit/interrupt a run?

Just through guessing, I've found that control-escape reliably quits the run; unfortunately, it also seems to cause the program to hang in unhelpful ways: for example, about half the time, it acts as if the mouse is in the *background*, behind the Eprime windwo, such that you can't see the mouse or click anything inside an Eprime window (although the mouse tracks and clicks fine in other applications).

This leads me to believe that control-escape is not the optimal way of interrupting a run, so can someone please tell me what is? Thanks!

David McFarlane

unread,
Nov 8, 2013, 4:35:28 PM11/8/13
to e-p...@googlegroups.com
Welcome to the E-Prime Group. As a n00b, the most crucial advice you
can take is to first work through *all* of the tutorials in the
Guides that came with E-Prime (in particular, the "Getting Started
Guide" and "User's Guide") before you do anything else. Do *not*
neglect the "Advanced" tutorials, they are not advanced at all and
present crucial basic concepts! You might also consider taking some
training in computer programming in general, and E-Prime in
particular. That said...

You will find one answer to this question on the very second page of
the EP1 "Getting Started Guide", on p. 81 of "Getting Started Guide"
in the section on "Good Practices, Testing, & Help", and in section
1.6.1 of the EP2 "User's Guide" (also listed under "abort" in the
index, or just try a text search in the .pdfs). As an exercise, you
should go look that up for yourself now, before looking at the answer
provided in reverse text below*. This method will perform an
ungraceful abort and return you to E-Run or E-Studio without saving
data to an .edat file.

Starting with EP2.0.10 Pro, you may also use Ctrl+Alt+Backspace to do
a "Conditional Exit" which may result in a graceful abort that saves
data -- you will have to look in the "New Features Guide" or the
Knowledge Base for more details on this.

Finally, if you do not mind a bit of inline programming, you may use
GetUserBreakState for more graceful and granular control of early
exits -- see that topic in the E-Basic Help facility.

As you have found, Ctrl+Esc is a particuarly poor method for aborting
a run, users should never use this.

-----
David McFarlane
E-Prime training
online: http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster )

/----
Stock reminder: 1) I do not work for PST. 2) PST's trained staff
take any and all questions at https://support.pstnet.com , and they
strive to respond to all requests in 24-48 hours, so make full use of
it. 3) In addition, PST offers several instructional videos on their
YouTube channel (http://www.youtube.com/user/PSTNET ). 4) If you do
get an answer from PST staff, please extend the courtesy of posting
their reply back here for the sake of others.
\----

*Answer: tlA+tfihS+lrtC

Alexandra

unread,
Mar 28, 2016, 4:08:45 PM3/28/16
to E-Prime
How can a graceful abort be done in E-prime 2.0 (older version)? I have a working memory task with verbal responses from the participant therefore the conditional exit based on a certain rate of incorrect responses is not an option (e.g. If ... then goto ... ). Do you have any suggestions where should I start looking for an inline? I need an inline which says that when I press a keyboard/mouse key then to go to/jump to the end of the experiment.

Thanks a lot!
Alexandra

David McFarlane

unread,
Mar 28, 2016, 5:35:35 PM3/28/16
to e-p...@googlegroups.com
Alexandra,

Look at the GetUserBreakState topic in the E-Basic Help facility. If
instead you want to control what input to use for your jump, look at the
InputDevice.History topic in the E-Basic Help facility. These will work
with *any* version of E-Prime, going all the way back to EP1.

---------------
David McFarlane
E-Prime training online:
http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster)


Reply all
Reply to author
Forward
0 new messages