Using NI USB-6001 as keyboard response

155 views
Skip to first unread message

aayt...@sheffield.ac.uk

unread,
Feb 18, 2015, 7:22:17 AM2/18/15
to psychop...@googlegroups.com


Hello,

I created a synchronisation task experiment on psychopy builder because I am not familiar with coding. Participants will need to press button synchronised with the pip sound, but sometimes they need to press button to hear the sound.
We have a tapping device, which is using NI USB-6001, in the lab.  So, I was wondering if there is a simple way of using this device as keyboard response. For example, when they tap they will hear a sound.

Any advice will be appreciated,

Thanks,

Ali

Richard Höchenberger

unread,
Feb 18, 2015, 3:39:19 PM2/18/15
to psychop...@googlegroups.com
Hello Ali,

On Wed, Feb 18, 2015 at 1:22 PM,  <aayt...@sheffield.ac.uk> wrote:
> We have a tapping device, which is using NI USB-6001, in the lab.  So, I was
> wondering if there is a simple way of using this device as keyboard
> response. For example, when they tap they will hear a sound.

to my knowledge, there is no "simple" way to do that in  PsychoPy, i.e. it is not possible without coding.

I've been successfully using an NI USB DAQ board for device control and data acquisition with Python/PsychoPy for quite a while now. I rely on PyLibNIDAQmx for interfacing with the board.

How you acquire the responses specifically depends on the device you intend to use. How have you been using it so far, i.e. how have you configured the NI board to recognize the button presses?

Also, I am wondering if the NI board is really required here, or if it would not be possible (and probably a lot easier) to simply connect the device e.g. to a serial port?

    Richard

aayt...@sheffield.ac.uk

unread,
Feb 19, 2015, 8:52:39 AM2/19/15
to psychop...@googlegroups.com
Hi Richard thenk you for reply.
I haven't used NI board before, it was here and I don't know exactly how they used it before. but, I guess it was designed for a kind of matTap code.

I was thinking to use it because of its timing accuracy but I think I will use another button box which has 2ms latency.

 I am not good at technology so I am afraid I can not inform you better. 

Thanks again,

Ali

Richard Höchenberger

unread,
Feb 19, 2015, 9:20:50 AM2/19/15
to psychop...@googlegroups.com
Hello Ali,

On Thu, Feb 19, 2015 at 2:52 PM, <aayt...@sheffield.ac.uk> wrote:
Hi Richard thenk you for reply.
I haven't used NI board before, it was here and I don't know exactly how they used it before. but, I guess it was designed for a kind of matTap code.

I was thinking to use it because of its timing accuracy but I think I will use another button box which has 2ms latency.

PsychoPy supports a growing number of different response devices. Which alternative button box did you have in mind?

Regarding the box hooked up to the NI board: We could certainly figure out how it works by looking at the Matlab code.

Cheers,

    Richard

Reply all
Reply to author
Forward
0 new messages