Subsections

Input-related questions

What do I need to do to interface a Cedrus RB-x30 response box with Tscope?

First of all, the dip switches of the box should be set in the right position: switches 1 & 3 should be down, switches 2 & 4 should be up.

Before attaching the box to your computer, you will need to install the drivers for the response box. The most recent drivers and installation information are available at Cedrus.

Next, you will need to determine to which serial port the box is attached. The port number can be found under Control Panel - System - Hardware - Device Manager - Ports, or by running tscope/tests/testsport.c. This program will first check which ports are available on your system. Then it will open the first available port and wait 2 seconds for a keypress from the user (press the keys during this interval!). If no input was detected it goes on to the next port, etc. until it has found the right port, or until all available ports have been tried out without success.

After you have determined the port number (which will change from PC to PC), add a call to ts_setserialport(int port) before the key definitions in your program. The serial box keys have the codes S1-S7. Alternatively, you can enter these values in your tscope config file.

With the serial box it is impossible to measure key release events.


top
Persoonlijke pagina Universiteit GentTscope
Allegro | Cygwin | Gcc
© See license.html for copyright information