Originally Posted by
barilan
I can't find the comport.txt file.
Please assist.
From Page 18 in the MediaLab manual:
Code:
Input via Serial Port
You can now receive input from external devices such as response boxes via the serial
port. To do so you just need to create a file called “comport.txt” in your experiment
folder and copy the following text into it:
comPort, baudRate, parity, dataBit,stopBit
1,19200,n,8,1
inputcode (1-255),responsevalue(1-12)
1,1
2,2
3,3
4,4
5,5
6,6
You shouldn’t modify the first or third line. The second line represents the values of the
variables listed on the first line. You can change any of these as necessary. The
remaining lines tell MediaLab how to map incoming signals to response keys. On each
line you can list a pair where the first value is the signal sent to the serial port (i.e., 1-
255) and the second value is the response it should map on to (i.e., 1 to 12). In the
example above, if MediaLab detects a “1” coming through the serial port, it will react as
though the 1 or F1 key had just been pressed. This is an easy way to have subjects
respond to scale items through an external button box such as those made by
www.response-box.com
In other words, it's just a regular text file. Create it in NotePad or WordPad or similar, and save it with the .txt specification.
I've attached a sample 'comport.txt' file for future reference.