Howdy, Stranger!

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

Supported by

The variable did not show in OSweb

I want to calculate some variable. The variable [art] and [bacc] is recorded, I want to divide them by 4.

In the opensesame, this script can work, and show the art and bacc in the screen.


But when I open it in the OSweb, the variable did not show:


Could someone tell me why, or give me solution. Thanks!

Comments

  • It seem that the variable changing in the Opensesame well but could not in the OSweb.

  • here is the experiment, I have change the stimuli presenting time.

    The average RT and ACC could calculate and present in opensesame but not in OSWEB

  • Hi tong,

    I have a hard time reading through your quite complex experiment. From what I saw, my advice would be to not, combine your own avg_rt measures with Opensesame defaults. Either use one or the other.

    To compute average response time you just need to have a javascript_inline in the beginning of every loop, that reset the variables

    vars.total_rt = 0 # keeps track of all the responses that were given
    vars.total_trials = 0# keeps track of how many trials there were
    vars.total_correct = 0 # keeps track of all the correct responses
    

    Then, later in your block, you can increment these variables with the response times, or the correct responses respectively. Finally, in another inline_script after the loop, you can compute average rts like this:

    vars.avg_rt = vars.total_rt/vars.total_trials 
    vars.acc = vars.total_correct/vars.total_trials
    

    Does that make sense?

    If not, could you maybe make a simplified version of your experiment in which you only try out the computation of accuracy, rather than the entire stimulus presentation part? That will make it easier to pinpoint the problem.

    Thanks,

    eduard

    Buy Me A Coffee

  • thank you ! I will try to see how this chould work

Sign In or Register to comment.