Skip to content
Discussion options

You must be logged in to vote

Hi @Qiuishere,

I guess the loop_function does not allow writing data except those already stored in the data object created inside the loop?

Yes, that's correct. This is because the data returned from the loop function is the DataCollection for all trials executed inside the loop. You could, I think, access individual trials within that collection and modify them.

My question is how to write the properties that I'd like to store in my data file?

I would recommend adding the on_finish to the adjustment trial.

on_finish: functon(data){
	if(data.response == " "){
		data.respAng = theang;
	}
}

An extra question is why putting an on_finish will render the loop trial an normal non-loop trial?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Qiuishere
Comment options

Answer selected by Qiuishere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants