Limit the number of participants on Pavlovia

URL of experiment: https://run.pavlovia.org/AlessandroG/dfsdfdfdffsd

Description of the problem:
Hi there!
I have a full license.
As indicated in the topic I would like to know if there is a way to limit the number of participants that execute the experiment through a link.
For example imagine I just need 4 participants, I don’t want more, is there a way for the link or for the experiment to go dead after 4 participants.
Best,
Alessandro

You could use my VESPR Pavlovia link to assign a consecutive participant number and then halt the experiment if the number is too high.

However, this doesn’t currently check whether the participant finished. On day I expect someone will commission me to create a new web app which reuses incomplete participant numbers

1 Like

HI,
Thanks, can you explain to me how it works, I don’t have great coding skills

Please start by looking at the instructions for my web app.

https://moryscarter.com/vespr/pavlovia.php

Thanks, I get a 404 not found error. As suggested I added a / but I still get the error.

Is your study active? If so, please could you post the link you’re testing?

Yeah this is study
https://run.pavlovia.org/AlessandroG/gggggggg/html/
By the way, I managed, the link with vespr works if I just limi to a and b like this:
https://moryscarter.com/vespr/pavlovia.php?folder=AlessandroG&experiment=gggggggg
But how do I get “participant” and “session” integrated?
And of course the big question, how to I limit the number of participant in terms of code?

When you click on https://moryscarter.com/vespr/pavlovia.php?folder=AlessandroG&experiment=gggggggg a value for participant is assigned, e.g. Pg1FrEssaixxxxx [PsychoPy]

You can add id, session and/or researcher to the first link to have them pass through unchanged.

You could have a routine with an unending text component in your experiment with a code component which says (in Begin Routine)

if int(expInfo['participant'])<4:
     continueRoutine=False

where 4 is four more than the value of participant when you last test the link.

Thank you very much for all this!
I will try out but I have two questions

  1. Why when I go through the vespr link (just below), it does not ask me anymore for the session number (because in the future, I would like the participants to add some stuff, age, name etc…)?
    https://moryscarter.com/vespr/pavlovia.php?folder=AlessandroG&experiment=gggggggg
  2. If I add a Routine in Psychopy, chances are that it will not work on Pavlovia, don’t you think?

Thanks again!

  1. Anything apart from the list of variables can be used for participant input.

  2. Have you seen my crib sheet? My new specialism is writing PsychoPy experiments that also work online.

Thanks again for your time

Concerning the first point, the problem is that when I use your link, Pavlovia does not ask for the session number anymore. Just compare what happens for both links:
https://run.pavlovia.org/AlessandroG/gggggggg/html/
https://moryscarter.com/vespr/pavlovia.php?folder=AlessandroG&experiment=gggggggg

Concerning the second point, no I was not aware of, I will try to use your routine and see if it still works on Pavlovia!

Anything apart from the list of variables I gave you in my earlier post (which includes session) can be used