Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

inline Script - Run Tab Isn't Working

edited November 2016 in OpenSesame

I'm having a simple problem, if I add my computation at prepare tab, all the code will be ran before loop is execute so I can not do any on the fly manipulation and if I add my computation at run tab, Open Sesame behaves as if code is not existent.

For instance if I add this code to run tab, it doesn't run at all and if I add it to prepare tab, it runs before everything else so time isn't calculated.

var.rDuration = 1000 - exp.response_time_keyResponse

  • The same code was working in previous studies using older versions of Open Sesame, the same source files are still working.

Comments

  • Hi Xeonen,

    If you need to do on the fly computations, you need to use the run phase. If this doesn't work, there must be an error in your implementation. Unfortunately, I can't help if you don't provide more information. What would be the error message, what are you doing in the rest of the code and which objects/variables do already exist?

    If you provide this information, I might be able to help you.

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.