Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 5 of 5

Thread: Comport File Question: Serial port, Input code (1-255) Meaning

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Comport File Question: Serial port, Input code (1-255) Meaning

    Hello, I have a question about the comport file.

    We want MediaLab to look for a response via the serial port. Our other computer in the past sent an ASCII 49 to the serial port, which MediaLab interpreted as a 1 and responded with a 1 response. Now, we want the input value to be an 18, and when MediaLab receives the code for 18, proceeds with a response of 1. The parameter in the questionnaire is set to (p1).

    In a paragraph for Serial Port Input from section 5.10 of the
    MediaLab manual file you state that "on each line you can
    list a pair where the first value is the signal sent to the serial
    port (i.e., 1-255)"...... This statement seems to explicitly state
    that one could send any numeric integer value into the serial port,
    and MediaLab ought to be able to read that value (including decimal
    18, as we need). So, my question is -- can Medialab
    really do this, and if so, how. And what does "input code (1-255) mean?
    ?

    It is confusing that from our work trying to figure this out earlier, it is when MediaLab detects the ASCII *code* for a 1 coming over the serial port that it will react -- so, it's detecting the *number* 49.


    Thank you! M
    Last edited by rothers27; 04-02-2009 at 07:30 PM. Reason: Adding more information

Similar Threads

  1. Path/File Access Error - Comport.txt
    By lhoggard in forum MediaLab Older Versions: Troubleshooting
    Replies: 9
    Last Post: 04-01-2009, 08:58 AM
  2. input file crashes DirectRT on 1 computer
    By sjlee0623 in forum DirectRT Older Versions: Troubleshooting
    Replies: 3
    Last Post: 12-11-2007, 07:20 AM
  3. Input file won't run
    By baruche in forum DirectRT Older Versions: Troubleshooting
    Replies: 17
    Last Post: 11-06-2007, 07:42 AM
  4. Select and run input file
    By Carlea in forum DirectRT Older Versions: Troubleshooting
    Replies: 1
    Last Post: 09-17-2007, 02:09 PM
  5. How do I recreate the input file from a resulting data file?
    By teddenney in forum DirectRT Older Versions: How Do I...
    Replies: 1
    Last Post: 03-19-2007, 07:49 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
  •