Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 7 of 7

Thread: Command Line Parameter not working properly

  1. #1
    Join Date
    Jan 2007
    Posts
    3

    Command Line Parameter not working properly

    Hello,

    I'm trying to launch an eprime experiment from within medialab 2004.3.24, using the EKick software. EKick launches eprime experiments with command line switches, such as subjectid. What I would like to do is use the medialab command line parameter to launch an ekick session, using the current subjectid as input. Unfortunately, the command line parameter doesn't seem to be working, either in the experiment editor, or in single questionnaire mode. Ekick itself will launch fine, but the dos window will then close instantly. I experimented with a few parameters such as (c|more), which should at least pause for user input before closing, but that makes no difference (although it works fine from the command prompt itself). Even simple switches such as (cexperiment.ebs) don't work properly.

    Any suggestions?

    Thanks,
    Jacob

  2. #2
    Join Date
    Nov 2005
    Posts
    3,328
    Hi Jacob,

    If you click Run from the Windows Start menu, and type your command in there, does it work ok? If so, can you show me exactly what it is that you're entering in there to make it work?

    Blair

  3. #3
    Join Date
    Jan 2007
    Posts
    3
    Hi Blair,

    Yes, the command works properly when using the windows run button.
    Here's the command that I'm using:

    "C:\*programpath*\ekick.exe" experiment.ebs subject=123

    This launches the eprime experiment "experiment.ebs", using 123 as the subjectid. Ideally, this subject variable would be fed forward from medialab.

    Thanks,
    Jacob

  4. #4
    Join Date
    Sep 2007
    Posts
    18

    Can MediaLab call on an eprime script?

    Hi,
    I was trying to figure out whether MediaLab could be used to call on an eprime script and saw this posting.
    However, I did not see a resolution. Can anyone clarify whether it can be done and if so how.
    I would greatly appreciate it.
    thank you.
    Smile,


    Quote Originally Posted by jacob View Post
    Hi Blair,

    Yes, the command works properly when using the windows run button.
    Here's the command that I'm using:

    "C:\*programpath*\ekick.exe" experiment.ebs subject=123

    This launches the eprime experiment "experiment.ebs", using 123 as the subjectid. Ideally, this subject variable would be fed forward from medialab.

    Thanks,
    Jacob

  5. #5
    Join Date
    Nov 2005
    Posts
    3,328
    So just to be clear, in your questionnaire (.que) file, you are entering:
    Code:
     
    C:\*programpath*\ekick.exe
    in the filename field for the Executable item. Then in the Parameters field, you have tried entering:
    Code:
     
    (cexperiment.ebs subject=123)
    If so, please post or send me a copy of the que file and I'll be happy to take a look at it.

  6. #6
    Join Date
    Jan 2007
    Posts
    3
    Yes, that is what I had in my Medialab experiment (and have also tried other alternatives, but with no success). Attached is a sample .exp file that produces the error. I have yet to find a good way to interface Medialab with E-Prime scripts (and have had to program batch scripts for administering multiple .ebs files as a result). The problem is also present in the latest Medialab version (2008.1.22). I thought it might have to do with the command parameter not recognizing multiple word arguments (e.g., for experiment name and subject number), but the same thing happens when only a single-word argument (e.g., cexperiment.ebs) is used.

    Jacob
    Attached Files Attached Files

  7. #7
    Join Date
    Nov 2005
    Posts
    3,328
    If I run:

    C:\jacob\attention\ekick.exe |more

    From the Run command on the Start menu, I get the flashing black window and then it closes immediately. But, if I first run cmd and then enter

    C:\jacob\attention\ekick.exe |more

    Then the more command works as it should. Is this the way it works on your system, or are you able to get the window to stay open either way?


    PS., I found this PDF on executing EPrime scripts through EKick using Authorware (see attached). I thought it might be helpful. I noticed that, for whatever reason, they suggested creating and running EKick and it parameters via batch files.
    Attached Files Attached Files
    Last edited by jarvis24; 10-07-2008 at 06:14 PM.

Similar Threads

  1. 's' parameter for fill-in-the-blank items
    By luke in forum MediaLab Older Versions: How Do I...
    Replies: 8
    Last Post: 10-23-2013, 04:05 PM
  2. responses.xls functions not working
    By jarvis24 in forum MediaLab Older Versions: Troubleshooting
    Replies: 6
    Last Post: 11-17-2006, 11:06 AM
  3. Quickstyles not working
    By josland in forum MediaLab Older Versions: Troubleshooting
    Replies: 3
    Last Post: 01-17-2006, 10:50 AM
  4. Can onset parameter be explained in the manual?
    By jarvis24 in forum MediaLab Older Versions: Suggestions
    Replies: 0
    Last Post: 01-16-2006, 02:58 PM
  5. Is there an on-line version of MediaLab
    By jarvis24 in forum MediaLab Older Versions: General Questions
    Replies: 1
    Last Post: 11-28-2005, 05:04 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
  •