Recording presses and releases from a serial response box
Michiel Spape
Michiel.Spape at nottingham.ac.uk
Thu Dec 10 12:14:13 UTC 2009
Hi,
Just to make a bit of a contribution to this: as David pointed out, though maxCount will allow recording of multiple responses, it will not necessarily SAVE the timings of these responses. Here's an example where I have one textDisplay, 'RespS1', which collects the two responses, and a script which then saves the relevant information to the .edat (a quick edit from the ebasic help, actually):
dim nClicks as integer
Dim kbdRespColl As ResponseDataCollection
nClicks = RespS1.InputMasks(1).Responses.Count '(1) being keyboard here
Set kbdRespColl = RespS1.InputMasks(1).Responses
if nClicks > 0 then
c.Setattrib "RT1", (kbdRespColl(1).RT)
if kbdRespColl(1).RESP = c.GetAttrib ("CRESP1") then c.SetAttrib "ACC1", 1 else c.SetAttrib "ACC1", 0
end if
if nClicks > 1 then
c.SetAttrib "RT2", (kbdRespColl(2).RT)
if kbdRespColl(2).RESP = c.GetAttrib ("CRESP2") then c.SetAttrib "ACC2", 1 else c.SetAttrib "ACC2", 0
end if
BTW: I agree with David that ElseIf would be more computationally efficient and elegant, but I usually find it easier on my own cognition to make exclusive and exhaustive if-then statements (and will take the extra microsecond for granted). The above formula works pretty elegantly however, since the only unselected case (=0) shouldn't give any RT's or ACC's anyway (I prefer missing reactions to be coded as missing rather than as errors).
Cheers,
Michiel Spapé
Research Fellow
Perception & Action group
University of Nottingham
School of Psychology
-----Original Message-----
From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of River
Sent: 10 December 2009 11:00
To: E-Prime
Subject: Re: Recording presses and releases from a serial response box
FYI for others who aren't clever enough to check the PST site first...
(apologies)
To get the SRBox to register presses and releases you have to: go to
Edit, Experiment, Devices, and edit what it records. Then in Allowable
responses add the key as you normally would e.g. 1 as well as {-1}
which denotes presses with the 1 and releases with the {-1} . Then
click on the advanced button and increase the MaxCount to at least 2.
Also, just from my experience, if you're trying to get timing between
presses, bear in mind that responses may occur during fixations and
necessarily during images so these settings should probably be applies
to fixation screens too.
Thanks for the pointers David.
On Dec 3, 5:06 pm, David McFarlane <mcfar... at msu.edu> wrote:
> River,
>
> Standard reminder: 1) I do not work for PST. 2) PST's trained staff
> really does like to take any and all questions athttp://support.pstnet.com/e%2Dprime/support/login.asp, and they
> strive to respond to all requests in 24-48 hours. So don't be shy
> there. 3) If you do get an answer from PST Web Support, please
> extend the courtesy of posting their reply back here for the sake of others.
>
> That said, here is my take ...
>
> At 12/3/2009 09:23 AM Thursday, you wrote:
>
> >I've been perusing the E-Basic Help pages...just to specify, ideally I
> >want this record to appear in the data file, not in a msg box. Is that
> >possible?!
>
> Yes. Please download the
> <http://www.pstnet.com/e-prime/support/samples.asp?Mode=View&SampleID=43>Multiple
> Response Collection sample from the PST web site.
>
> >On Dec 3, 12:26 pm, River <ll... at medschl.cam.ac.uk> wrote:
> > > I see that you can get the srbox to record presses and releases
> > > however I can't see where these two discrete events are recorded in
> > > the data files when this setting is used-can anyone enlighten me?
>
> By default, only one response gets recorded in the .edat file. If
> you have both presses & releases enabled, and a Max Count of 1 (the
> default), then you will record only the press. If you set Max Count
> to 2, then you will record only the release. To record more, please
> see the answer above.
>
> > > Secondly, is there a way to program the software to start a stop watch
> > > when a certain srbox button has been pressed (or released) and stop it
> > > when its pressed again (or released) while simultaneously continuing
> > > with the experiment (namely showing a series of pictures which are to
> > > be responded to using a different srbox key press.) I.e. is it
> > > possible to time the duration between a specific set of key presses?
>
> Yes, it is possible, and many other things besides. It will require
> some inline script, and the more intricate your design, the more
> script you will need.
>
> -- David McFarlane, Professional Faultfinder
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list