ℹ️ Storing results from the experiment in external logfiles

Now we have the task running, with config files feeding the task. No experiment without collecting data, so we need to store some values in the results.

There are multiple paths of logging data, but we will focus on storing it to disk in this example. The framework uses the UXF framework, EDIA uses that when using `Experiment.instance.addtotrialresults' in your script.

If you have run the project in the editor, you now have a new folder called logfiles next to the folder of the Unity project.

We will have a look at them one by one.

trial_results.csv

This would be the main file where all results from the trials are logged into.

A few key thing to know:


We used:

  Experiment.Instance.AddToTrialResults("selection", _selectedStimulus.ToString());
  Experiment.Instance.AddToTrialResults("correct", isCorrect.ToString());

Take a look at the trialresults.csv file in a more view-friendly matter:

trial_results

As you can see, the selection and the correct values are logged per trial.

./other

Experiment related logfiles are stored in here. These are:


./session_info

Session related logfiles are stored in here. These are: