Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 14 of 14

Thread: ttl signals vs. sending receiving serial data (case 15992)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2013
    Posts
    1,093
    If you want to send a ttl signal with a virtual port, you might be able to by using DirectRT 2014. It has the feature of using a comport.txt function like that of MediaLab that might be compatible with virtual ports.

    If you can use DirectRT 2014, I would be happy to give you more information about the details of the process.
    Jason Reed
    Empirisoft Software Support Specialist

  2. #2
    Join Date
    Sep 2014
    Posts
    16
    Hi Jason,

    Thanks for your reply! If that is possible that would be great. I am guessing we would have to purchase a license for the 2014 version?

    Quote Originally Posted by jason_reed View Post
    If you want to send a ttl signal with a virtual port, you might be able to by using DirectRT 2014. It has the feature of using a comport.txt function like that of MediaLab that might be compatible with virtual ports.

    If you can use DirectRT 2014, I would be happy to give you more information about the details of the process.

  3. #3
    Join Date
    Feb 2013
    Posts
    1,093
    You could download and install a trial copy of DirectRT 2014 first to see if this works. Just download a copy from the Empirisoft download page here: http://empirisoft.com/Download.aspx?index=4. Send the 14-character D-code to me at support@empirisoft.com and I can get you a free 21-day trial code.

    Using DirectRT 2014, you can set up a DirectRT .csv input file to send ttl signals as normal (see http://www.empirisoft.com/directrt/h...tl_signals.htm). It doesn't matter what you type for the port address in the loc cell or the number in the time cell after the stim cell with ttl: in it.

    This is because you will include a .txt file named comport.txt in the same folder as the .csv input file you create. DirectRT 2014 will ignore the values in the loc and time cells as long as the comport.txt file is in the same file folder as the .csv input file that wants to send ttl signals.

    When you create your comport.txt file, you will need to define the the proper number to reflect the comport you want the computer to use to send the ttl signal. This is based off of the same functionality in MediaLab used for sending and receiving data over serial ports (for an explanation and example of the comport.txt file see http://www.empirisoft.com/medialab/h...s_features.htm).
    Jason Reed
    Empirisoft Software Support Specialist

  4. #4
    Join Date
    Sep 2014
    Posts
    16
    Hi Jason,

    Thanks so much for this! So far, the TTLs are being sent using the comport file through DirectRT so this is fantastic news. One issue I am having, is that DRT also seems to continuously send the TTL 240 along with the TTL I put into the stim column of my .csv- any reason why you think that might be happening? That is, every time it sends the ttl in the stim, it also sends a ttl of 240.

    Also I was hoping to use the ttlecho functionality as well, but again we have this issue with me being unable to put in an actual "loc" line. So if I am correct, I believe that if I create a ttlecho.txt file with "loc","time" it will send a TTL to that location for that time when a correct key response is pressed during a trial? Is there someway to create response-locked ttls in the .csv file instead? Or someway to manipulate the echottl.txt file to send to a COM1 address instead of actual DEC locations? Let me know! Again your help is valued and much appreciated!!

    Alex

    Quote Originally Posted by jason_reed View Post
    You could download and install a trial copy of DirectRT 2014 first to see if this works. Just download a copy from the Empirisoft download page here: http://empirisoft.com/Download.aspx?index=4. Send the 14-character D-code to me at support@empirisoft.com and I can get you a free 21-day trial code.

    Using DirectRT 2014, you can set up a DirectRT .csv input file to send ttl signals as normal (see http://www.empirisoft.com/directrt/h...tl_signals.htm). It doesn't matter what you type for the port address in the loc cell or the number in the time cell after the stim cell with ttl: in it.

    This is because you will include a .txt file named comport.txt in the same folder as the .csv input file you create. DirectRT 2014 will ignore the values in the loc and time cells as long as the comport.txt file is in the same file folder as the .csv input file that wants to send ttl signals.

    When you create your comport.txt file, you will need to define the the proper number to reflect the comport you want the computer to use to send the ttl signal. This is based off of the same functionality in MediaLab used for sending and receiving data over serial ports (for an explanation and example of the comport.txt file see http://www.empirisoft.com/medialab/h...s_features.htm).
    Last edited by atran; 12-21-2015 at 04:01 PM.

  5. #5
    Join Date
    Sep 2014
    Posts
    16
    Disregard that last post! The ttlecho.txt file works fine, I was pressing the numpad keys and it wasn't registering the stroke! Sorry, thanks again for your time!

    Alex

  6. #6
    Join Date
    Feb 2013
    Posts
    1,093
    Alex,

    Will do. Let us know if you have any other questions.
    Jason Reed
    Empirisoft Software Support Specialist

Similar Threads

  1. Sending TTL signals to ASL eyetracker (case 16133)
    By daniellecornish in forum DirectRT v2018: Troubleshooting
    Replies: 1
    Last Post: 09-16-2014, 12:17 PM
  2. Receiving TTL Signals from 2 Response Boxes (case 13508)
    By lisagerm in forum DirectRT v2018: Troubleshooting
    Replies: 8
    Last Post: 03-25-2014, 08:20 AM
  3. Sending TTL Signals (case 472)
    By jbeylev in forum DirectRT Older Versions: General Questions
    Replies: 2
    Last Post: 04-01-2012, 12:05 PM
  4. Sending ttl code to ASL eyetracker data file
    By sadler in forum DirectRT Older Versions: Troubleshooting
    Replies: 4
    Last Post: 03-10-2009, 06:27 PM
  5. Using a comma when receiving TTL signals?
    By jarvis24 in forum DirectRT Older Versions: Troubleshooting
    Replies: 1
    Last Post: 10-02-2006, 09:08 PM

Posting Permissions

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