Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 8 of 8

Thread: Time stamp stimuli (case 8838)

  1. #1
    Join Date
    Jul 2013
    Posts
    28

    Time stamp stimuli (case 8838)

    I am preparing a dual-task paradigm in which participants will perform some type of behavior while being video recorded and perform and button-press task in DirectRT. The video recording will be time-stamped using the computer's clock. I would like to know how to obtain the same time stamping for when stimuli are presented in DirectRT using the same clock.

    Is there a way to have DirectRT record when stimuli were presented using the computer's clock?

    I would appreciate any help anyone can provide. Thanks!

  2. #2
    Join Date
    Feb 2013
    Posts
    1,090
    The log files in the Data folders created by DirectRT may contain the information you need. They record the time that a session began in the time column and the started@ column keeps track of how many milliseconds passed between the start of the first trial and the current trial. By adding the strated@ value for the trial you are interested in to the value of the time column, you should be able to create the time stamp for when that trial began.
    Jason Reed
    Empirisoft Software Support Specialist

  3. #3
    Join Date
    Jul 2013
    Posts
    28
    Hi Jason,

    Unfortunately, the "Time" variable in the log Excel data file does not give accurate enough timing for when the session started. It gives hours and minutes, but not seconds or milliseconds.

    Is there a way to obtain more accurate information on when the experiment started in DirectRT syncing with the computer clock? I know this information is available in MediaLab, but the "Time" variable is not quite as accurate in DirectRT.

    Thanks!

  4. #4
    Join Date
    Nov 2005
    Posts
    294
    We had a system a few years ago that was set up like this:

    Computer (DirectRT) --serial port--> Black Box ----> Video Recorder
    Video Camera--------------------------|

    When a new screen or video or stimulus was presented on screen, DirectRT sent a trigger command out the serial port.

    Our black box received video from the camera, overlaid timing data & trigger information from DirectRT, then output a composite video signal which contained the original content and the timing data.

    Then, using a video recorder or a computer with a video capture card, everything could be lined back up again.

    This was built years before in-computer video capture was very stable under Windows.

    I wonder if it'd be useful in this situation?

    JEC

  5. #5
    Join Date
    Jul 2013
    Posts
    28
    Hi JEC,

    This "black box" sounds like it might work for our purposes. Could you provide more information on the box?

    1. Commercial built or lab constructed?

    2. What are the capabilities of the box?

    3. Did the box send some signal to the video feed or were the video and DirectRT signals combined somehow using the box?

    I'd appreciate any further information you could provide. Thanks!

  6. #6
    Join Date
    Nov 2005
    Posts
    294
    The system is something we've designed in-house.

    The black box has two inputs - composite video and an RS232 (serial port) and one output (composite video).

    Incoming video then can have arbitrary text overlaid on top of the image in nearly any location.

    MediaLab / DirectRT can then send commands through the serial port which display text on different areas of the screen. For example, you might want to include the date, the subject name, or something similar.

    Further, the system includes an on-screen timer which matches up with video's timing resolution of 30 frames per second. This timer can be started, stopped and cleared through the serial port. Thus, the computer can send a 'timer go' command when a new stimulus is displayed on screen, and then the on-screen overlay clock will increment on its own until stopped.

    Does that help?

  7. #7
    Join Date
    Apr 2008
    Posts
    15

    time stamp stimuli

    Hi John,
    Are we able to obtain the schematic/parts list for this black box, or is this something we can purchase from Empirisoft?
    You state that your black box has a composite video input, so that obviously is not getting the signal from a USB web cam, correct? What type of camera are you using to supply the input signal? The composite video out signal is cabled to what type of video capture card installed in the computer?
    arluser
    Last edited by ARLUser; 09-18-2013 at 04:00 PM. Reason: add text

  8. #8
    Join Date
    Nov 2005
    Posts
    294
    Hi John,
    Are we able to obtain the schematic/parts list for this black box, or is this something we can purchase from Empirisoft?
    You state that your black box has a composite video input, so that obviously is not getting the signal from a USB web cam, correct? What type of camera are you using to supply the input signal? The composite video out signal is cabled to what type of video capture card installed in the computer?
    arluser
    Unfortunately, we've not released the source code or schematic diagrams for this system. However, we can ship you something complete, assembled and tested.

    This box was designed to use any camera which can output composite video. It was designed well before USB video was possible on Windows, and much earlier than HDMI / HiDef video streams. So if your camera has a yellow output connector that would plug in to a TV or other monitor, you're in business.

    Most video capture cards would accept this type of input as well.

Similar Threads

  1. Stimuli display on wrong monitor (case 1478)
    By jzadra in forum DirectRT v2018: Troubleshooting
    Replies: 4
    Last Post: 12-11-2015, 11:31 AM
  2. Time Stamp inconsistency (case 6307)
    By lisa in forum DirectRT v2018: Troubleshooting
    Replies: 3
    Last Post: 03-26-2013, 04:48 PM
  3. Stimuli present in stim folder but not presenting (case 3729)
    By fusiform1 in forum DirectRT v2018: Troubleshooting
    Replies: 6
    Last Post: 01-08-2013, 04:23 PM
  4. how to time stamp in experiment files
    By stresslab in forum DirectRT Older Versions: General Questions
    Replies: 4
    Last Post: 08-02-2009, 04:08 PM
  5. time stamp questionnaires?
    By Fade Eadeh in forum MediaLab Older Versions: General Questions
    Replies: 1
    Last Post: 03-13-2009, 04:31 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
  •