How do I get the time of trial onset?


Author
Message
july1810
july1810
Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)Distinguished Member (3K reputation)
Group: Forum Members
Posts: 28, Visits: 213
Hi,
I would like to write the time of the beginning of certain trials relative to the onset of a response in another trial into the data file. However, I cannot really think of a way how to do this. Could you help me? 
The background is that I would like to determine the onsets of my regressors during a fMRI experiment, but I do not see the timing of the trials, responses etc. relative to each other. 
Best
Julia


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
You can read an applicable elapsedtime property /ontrialbegin, store it in a <values> entry and record that value to the data file and/or do other calculations based on it:

<values>
/ trialstart = 0
...
</values>

<trial mytrial>
/ ontrialbegin = [values.trialstart = script.elapsedtime; ]
...
</trial>

<data>
/ columns = [..., values.trialstart, ...]
...
</data>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search