By nashby - 3/14/2016
I have an experiment where I need to create a variable that is the subjects number which is assigned at the start. I cant figure out how to call subjectnumber, any ideas?
|
By Dave - 3/14/2016
This is not something you can do *in* Inquisit. The subject number needs to be known *before* ever starting an experiment.
|
By nashby - 3/14/2016
Can I do it with the group variable? I essentially need a payout to only register for one subject out of 60 and doing it offline isnt so helpful.
|
By Dave - 3/14/2016
No, both subject number and group number need to be known beforehand and cannot be changed by any script at runtime.
The reason is that Inquisit uses these inputs for various *essential* things: Creating and naming data files, assigning participants to conditions based on either subject and/or group number etc.
> I essentially need a payout to only register for one subject out of 60 and doing it offline isnt so helpful.
Hmm, this makes me think I may have misread your question. So, all you want is to have your script *read* the subject number that was randomly generated (or otherwise passed in) before running the experiment?
If so, the property that returns the subject id is script.subjectid (script.groupid for the group number, respectively). You can access that property just like any other property, perform math on it, etc. The only thing you *cannot* do is *write* to the property. It is read-only for the reasons mentioned above.
|
By nashby - 3/15/2016
Yup that was it. Thanks Dave.
|
|