Linking Experiments

PennController for IBEX Forums Support Linking Experiments

This topic contains 2 replies, has 2 voices, and was last updated by Avatar es19488 1 week, 1 day ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6345
    Avatar
    es19488
    Participant

    Hello
    I am using the native Ibex Farm (not PCIbex) and I have 4 already designed 4 experiments. Can you help me connect them so on completion of each, the server would connect to the next experiments?

    Thank you for your help and support

    Best,
    Ehsan

    • This topic was modified 1 week, 1 day ago by Jeremy Jeremy. Reason: Moved to 'Support'
    #6350
    Jeremy
    Jeremy
    Keymaster

    Hello Ehsan,

    You just need to add a link to your other experiment on the last trial of your experiment, after you’ve sent the results. If you’re using PennController on the native Ibex Farm, you could have your last trial look something like this:

    newTrial( "last" ,
      SendResults()
      ,
      newText("<a href='http://spellout.net/ibexexps/UserName/NextExpName/experiment.html'>"+
              "Click here to proceed to the next experiment</a>").print()
      ,
      newButton().wait()
    )

    Using native-Ibex syntax, it would look something like this:

    ["last", 
      "__SendResults__", {},
      "Message", {html: "<a href='http://spellout.net/ibexexps/UserName/NextExpName/experiment.html'>"+
                        "Click here to proceed to the next experiment</a>"}
    ]

    You would do that for your three first experiments, using the link of the ‘next’ experiment each time (the last experiment, by definition, not being associated with a ‘next’ experiment). Let me know if you have questions

    Jeremy

    #6351
    Avatar
    es19488
    Participant

    Thank you Jeremy!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.