OK, this question clearly lies outside the domain of PST Web Support,
so I will weigh in...
>Of course, keyboards and mice don't look that professional
Hmm, around here we use keyboards and mice extensively, but perhaps
we are not that "professional" :). We also use the PST SRBox, and if
you understand its operation then in principle you could use it with
any platform that will accept a stream from a serial port. Beyond
that, sometimes we (meaning I) build our own custom response boxes
and wire them up either through an SRBox, a commercial digital I/O
board, or even the lowly parallel port -- I have some mechanical
skills as well as electronic and technology skills, and that is my
job here. Of course you should have a machine shop and an electronic
shop as well as a skilled research technology professional at your
own institution to help with that (perhaps you are that
professional!). <rant> I really don't see how anyone can consider
themselves to do serious science in this day & age without such
assistance. </rant> In short, we just do whatever it takes to get the data.
Oh, Empirisoft also boasts a keyboard with millisecond latency
specifically for psychology research, as well as a USB button box
(puts them a bit ahead of PST there), but we have not tried any of
these. See http://www.empirisoft.com . And of course, some people
use touch screens, but I have to let those folks speak up for themselves.
Good question, I look forward to more responses.
-- David McFarlane, Professional Faultfinder
For more money you could also create custom
keyboard designs with the Ergodex DX1
(http://www.ergodex.com/mainpage.htm ), although
I don't think it's timing is any better than an
ordinary keyboard, and I like your inexpensive custom design better.
The latest reference I have on keyboard timing is
Plant, R. R., & Turner, G. (2009), "Millisecond
precision psychological research in a world of
commodity computers: New hardware, new problems?" Beh Res Meth 41: 598-614.
-- David McFarlane, Professional Faultfinder
Thank you for your very detailed message. I will take a good look at
this and let you know what we find. It may be a bit before I get back
to you though since I will be leaving out of town this weekend for the
break.
Thanks again,
Carlos Faraco
University of Georgia
> ...
>
> read more »
That is entirely up to you, it makes no difference to how E-Prime
gets the input from the SRBox. It may simplify the testing of your
input masks -- you can use a Keyboard mask (using the same values as
your SRBox will use) to test your program without the SRBox, then
when you add the SRBox you have everything ready.
>2) What type of information should we be having the breadbox send out?
>Should this be in hex? We have verified that the breadbox is sending
>out the information we configure it so send, but E-Prime doesn't seem
>to happy with whatever type of output we send to it.
I thought I covered that in my earlier post.
>3) You said the E-Prime SRBOX sends out &H7F when it powers on. Is
>this something that E-Prime has to detect?
Not as far as I know, I simply recorded an observation that I made
(hence I enclosed that in parentheses).
>4) Does the SRBox send a steady stream of bytes to E-Prime at the
>speed of 800 bytes per second even if no button is pressed?
Yes.
>5) If no button is pressed, what will the SRbox send to E-Prime?
It sends a steady stream of &H00 bytes.
>In your reply you said: In your reply you mentioned:Each bit encodes
>the state of one button, so, e.g., button 1 sends &H01, button 2 &H02,
>button 3 &H04, etc.; and buttons 1 & 3 simultaneously send &H05, etc.
>You may then decode the byte with If...Then, or masking unwanted bits
>with a bitwise And
>
>Would that be the answer to the last two questions?
Yes, indeed.
>6) If, for example, button 1 is pressed, does the SRBox send
>"00000001" to E-Prime immediately? Is there any debounce processing
>needed? By any chance do you know how they achieve the "0 millisecond
>debounce period" as declared in their website?
It does send the "00000001" (or &H01, or 0x01, which I find easier to
read). I do not recall any debounce circuity in the SRBox. However,
since it sends a new datum only once every 1/800 s = 1.25 ms, the
buttons have plenty of time to debounce between each datum.
Hope that helps,
Just to make things simple for everyone, here is what e-prime would be
expecting regardless of what response pads you are using.
Constant data stream when nothing is pressed = 00000000 = &H00
Button 1 = 00000001 = &H01
Button 2 = 00000010 = &H02
Button 3 = 00000100 = &H04
Button 4 = 00001000 = &H08
Button 5 = 00010000 = &H10
and so on up until 8 buttons.
I want to thank David for his help on this! Without his input we might
not have figured this out. We were thinking what E-Prime was expecting
was much more complicated than this, and kept on straying farther and
farther.
Hope this helps everyone
-Carlos Faraco
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/f9c1cd5e-564b-4ae2-b058-cbce6f6af808%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
Hmmm. What happens if you start pushing buttons on the controller when the input box comes up asking for subject number and session number? Do you see the associated keyboard values for the buttons? Or if you set up an object to receive {any} keyboard input, record the response to your data file, and then press the relevant buttons on the controller. You can probably figure out the mapping that way. I hope.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/ec45bae9-fc81-4884-98f7-8e7aae1553e6%40googlegroups.com.
We use one of these, with some associated software from Logitech that lets you map different keyboard buttons to the controller buttons.
http://support.logitech.com/en_us/product/precision-gamepad
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/10e30c3a-239f-480b-9954-fead48842013%40googlegroups.com.