How to change the output data file name
Hello,
I will have more than one opensesame programs in one experiment. It means each subject will have more than one data output. In order to discriminate different data files of one subject, i want to change change the default output data file name. For example, the current output file name is "subject-X", and i want to change to "V_subject_X" or "CR_subject_X". Does anyone know what I can do?
Thank you in advance!
Comments
Hi @Oliviaaa,
I don't think you can edit OS' output file name. However, the simplest way to avoid one task overwriting the output file from another is to simply have your tasks in separate folders. As long as you keep the output files from the two tasks in separate folders, they won't interfere with each other.
Alternatively, you could add a subject number suffix for your second task. For example, you give subject 1 the following numbers: 1 in the first experiment and 1001 in the second. For subject 2, you use 2 and 1002 respectively. That way, no overwriting but you know what files belong to the same participant.
Yet another alternative would be write your own code (in Python or in Javascript) to generate your own output files (this way, you can name them whatever you want, and structure it however you want, whether you generate one new file for each subject or decide to append every subjects' data to the same file). You could do that by appending data to the output file on every trial, or store the information in memory arrays and output it all at the end - both methods have their advantages and inconveniences).
Hope this helps!
Fabrice.
Dear Fabrice,
Well-received, and thank you so much for your patient explanation!
Best,
Olivia