Joystick direction as response & RT

David McFarlane mcfarla9 at msu.edu
Mon Feb 1 21:21:29 UTC 2010


This old geezer cannot quite resist chiming in with some useless 
thoughts.  If I only wanted to detect when a subject pushed a 
joystick forward or backward (and not how far or fast), then I would 
go to eBay and purchase a simple old four- or eight-position Atari or 
Commodore style joystick, or even better, an arcade game joystick 
that used good quality micro switches.  These gave simple off-on 
switch closures when the user pushed the stick to a side or 
corner.  Then I would build a custom cable to go from the appropriate 
switches directly to an old parallel printer port or an added digital 
I/O card.  Then in E-Prime I would use the Port device, or the 
ReadPort function from script.

Ah for the days when the electronics were laid bare and the operating 
system got out of our way...

-- David McFarlane, Professional Faultfinder


>I can certainly forgive it, but unfortunately that's not the problem.
>I can get E-Prime to recognize the joystick and record certain
>responses (e.g. button click and concomitant RT), but I can't get it
>to record the direction of first movement and the RT of that response.
>
>On Feb 1, 11:00 am, liwenna <liwe... at gmail.com> wrote:
> > I hope you can forgive me if this is is a really silly question but:
> > did you add a 'joystick' to the devices in the experiment properties?
> > (e-prime logo at the top of your experiment tree).
> >
> > On Feb 1, 5:15 pm, Nick <ndla... at gmail.com> wrote:
> >
> > > Hi everybody,
> >
> > > I am trying to interface a Logitech Attack3 joystick with E-Prime. So
> > > far I have only had limited success although I think it should be
> > > pretty simple to do what I need.
> >
> > > On each trial, the participants will have to respond to the final
> > > slide with a forward or backward movement of the joystick (depending
> > > on the trial type). All I need is 1) for E-Prime to record the
> > > Reaction Time of when the the push or pull of the joystick is
> > > initiated (in correspondence to the onset of the final slide for each
> > > trial) and 2) for the direction (up or down) of the first joystick
> > > movement to be recorded to the data file.
> >
> > > It seems like this should be pretty standard, but I can't find any
> > > code that addresses it. Is there some code you might know of to do
> > > this type of thing?
> >
> > > Also, I did read through previous posts attempting to solve this
> > > problem with continuous sampling of the joystick X-Y coordinates, but
> > > I couldn't get the posted code to work out.  Although I don't like
> > > this solution quite as much for my purposes, any help with how to
> > > continuously sample the X-Y coordinates would also be very
> > > appreciated.
> >
> > > Thanks!
> > > Nick

-- 
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