Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 2 of 2

Thread: Passing the subject and/or condition ID to an Executable

  1. #1
    Join Date
    Nov 2005

    Passing the subject and/or condition ID to an Executable

    [edited from support email]
    I am currently working on a little program that serves special needs we could not address using Medialab or Direct Rt (or any other research software we ever used). This little program is supposed to be integrated into a larger experiment, controlled by Medialab. There will be ML/DRT parts before our program and there will be ML/DRT parts afterwards. Hence, ML will be programmed in such a way that it will call our program, which will come as a Windows executable.

    Here’s my question: Is there a way do pass the Subject ID from ML to our program? This would be most convenient, as research assistants would have to enter the Subject ID only once. Our program will be written in Visual Basic 6.

  2. #2
    Join Date
    Nov 2005
    Yes there is. The subject and condition info is contained in a text file called "currentsubjectinfo.txt" as soon as the session begins. Here is some VB code that would allow your VB6 program to access it during the session:
    Open "c:\medialab\currentsubjectinfo.txt" For Input As #1
    Input #1, subject: subject = Mid(subject, 11, Len(subject) - 10)
    Input #1, condition: condition = Mid(condition, 11, Len(condition) - 10)
    Close #1

Similar Threads

  1. Runnning an MDE Executable?
    By jarvis24 in forum MediaLab Older Versions: Troubleshooting
    Replies: 1
    Last Post: 09-27-2006, 12:52 PM
  2. Subject-Controlled Break in Experiment
    By joshfoster in forum MediaLab Older Versions: Sharing Area
    Replies: 0
    Last Post: 08-11-2006, 10:51 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