Please could you show your data file.
I think I might be misunderstanding your problem.
Each loop of trials should create one row in your data file.
Do you not have enough rows (I thought you only wanted one because you didn’t want trials to repeat) or not enough columns (because you are only getting data from one routine and not the other)?