psychopy.org | Reference | Downloads | Github

Give unique Code to PARTICIPANT

#1

Description of the problem: How do I need to change my settings so the .csv file that gets Saved has a unique code for every Participant and doesn’t look like this.

image

0 Likes

#2

If you add the unique code to the participants field, the file will begin with your unique code, and you can parse this during your analysis. The timing data within the filename ensures with high probability that you never get a name conflict when saving data.

0 Likes

#3

@dvbridges

This is how I set it up. Am I missing a participants field somewhere?

0 Likes

#4

Ah, yes unfortunately, the field must be “participant”, otherwise the input is not used in the filename.

0 Likes

#5

@dvbridges how would I go about saving variables into the CSV file?

0 Likes

#6

For local studies, you use Python code:

thisExp.addData('columnName', variable)

For online studies, you would the following JavaScript:

psychoJS.experiment.addData('columnName', variable);
0 Likes

#7

@dvbridges thank you!

0 Likes