automate running of two programs consecutively

MEDState Notation Repository › Forums › Coding Help Archive › automate running of two programs consecutively

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12711
    Med_Support
    Moderator
    andy

    Hello,

    I didn’t see a topic addressing this, so if one exists, please do let me know.

     

    I wish to run a session in which rats are tested on FR5 for 10 minutes, followed by PR for 50 minutes, with a user adjustable changeover delay if possible. Is there a way to automate this changeover by using macros? I already have standalone code for each program.

    Also, I would like if separate data files are written for each of the two phases of the session.

    Looking forward to replies.

    Best,

    Andy

    #12712
    Med_Support
    Moderator
    Gary Bamberger

    Hi Andy,

    I don’t think what you want is possible.  Your best bet is to write your program to run both procedures.  When the program starts it runs the FR5.  After the FR5, the program would then time the delay and then move onto the PR.  The delay can be a Var_Alias or even calculated at run time based on some equation and/or the animals performance with the FR5.

    For the data it would be best if each procedure used different variables.  At the end of each session use the FLUSH command to save the data to disk.

    It is not exactly what you are looking for, but it is the closest that I can come up with.

    I hope that this information helps.  Please let me know if I can help you in any other way.

    Best Regards,
    Gary

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.