Howdy, Stranger!

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

Supported by

trial counter

Hi all,

I'm trying to add a basic trial counter to my experiment ("You are on trial X of Y"). I have read the following threads:

http://forum.cogsci.nl/index.php?p=/discussion/474/solved-how-to-let-the-subject-know-how-many-more-trials-they-have

http://forum.cogsci.nl/index.php?p=/discussion/480/solved-how-to-reset-the-trial-counter-after-the-practice-trials

I have specifically added Lotje's code from the first post to my experiment. Unfortunately, I get the following error when I try to run the experiment:

The variable 'count_trial_sequence' does not exist. Tip: Use the variable inspector (Ctrl+I) to see all variables.

item-stack: experiment[run].practice_loop[run].block_assignment[run].blocksequence[run].new_inline_script[run]
time: Mon Jul 16 11:57:07 2018

I've attached a picture of my experiment organization. The file itself is too large to attach, but please let me know if I can upload anything else to make it more clear.

Thanks for your help!

Comments

  • Hi,

    I'm not sure whether this will do the trick, but in the loop item, you can check the box skip on the first iteration or something like that. If this doesn't help, I would add an inline_script to the block_sequence (the first item or so) and add this line to its prepare phase: var.count_trial_sequence = 0

    Does that work?

    Eudard

Sign In or Register to comment.