Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 14 of 14

Thread: Port number for a Cedrus device?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2005
    Posts
    294
    Quote 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.
    Last edited by JEC; 07-11-2006 at 10:51 AM.

  2. #2
    Join Date
    Nov 2005
    Posts
    294

    Sample comport.txt file

    I've attached a sample 'comport.txt' file for future reference.
    Attached Files Attached Files
    Last edited by jarvis24; 09-17-2006 at 04:56 PM.

Similar Threads

  1. Authorization code does not work--and the number changes
    By jarvis24 in forum MediaLab Older Versions: Troubleshooting
    Replies: 8
    Last Post: 10-19-2009, 11:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •