PsychoPy version (e.g. 1.84.x): 3
Standard Standalone? (y/n) y
I have designed an experiment with practice trials and experimental runs. I’m supposed to make a couple of custom code at the beginning of the experiment, but I’m not sure how to do so.
- Import the dataloop provided (dataloop.pyc)
- Call the dataloop.set_participant () function with 1 argument: The participant ID you used at the start of the program
- Open a new data file for writing in the ‘data’ folder named [participant ID].csv
- Write the following header:
Participant, Trial, Stimulus, Time, Observation, Left, Right, Distance, x, y\n
so far, I clicked code properties and selected “Begin Experiment” and typed out the following code:
I’m not sure if I have done this right for 1-3 above and not sure how to do 4
Any tips would be appreciated.