Reply To: SetCounter() no longer increments the counter

PennController for IBEX Forums Support SetCounter() no longer increments the counter Reply To: SetCounter() no longer increments the counter

#4234
Jeremy
Keymaster

Hi Itamar,

When defining a sequence of trials manually (in your case, using the Sequence command) you need to make sure that all your trials are properly labeled for them to be executed in the order you stipulate. The command SetCounter actually creates a trial, which is no exception to this rule.

I think the following should accomplish what you want:

PennController.ResetPrefix(null);
PennController.DebugOff();
PennController.SetCounter("increase");

PennController.Sequence( "increase", "welcome", "practice1", "practice2", "practice3", randomize("experiment"), "goodbye" );

If you don’t manually define the sequence of trials (i.e. no Sequence command and no definition of the internal Ibex shuffleSequence variable) then the trials are run in the top-down order in which they appear in your script. In your case, since SetCounter appears at the top of your script, it would be the first trial to be executed (if you had no Sequence command—are you sure this isn’t a recent addition?).

Let me know if that solved your issue and if you have any questions

Jeremy

  • This reply was modified 4 years, 6 months ago by Jeremy. Reason: Added a note about absence of Sequence