Register Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
crado

Junior Member
Registered:
Posts: 7
Reply with quote  #1 
Hello. Is there a way to access eventmarkers (CodeNumbers) for all preceding trials and not only the last presented trial in ML2 using the TrialRecord structure? I would like to access some specific codes acquired during the preceding trials and I am not sure how to do that.

In addition, I wonder if I can declare some variables as global in the timing file and then use them/plot them in the performance plot. For instance, I would like to track the responses to multiple presented items and see if a subject has an item preference. What would you suggest?

I really appreciate your help.
0
Jaewon

Administrator
Registered:
Posts: 689
Reply with quote  #2 
As you know, you can read the previous trial's codes. Then can't you just add them back to TrialRecord?

if 1<TrialRecord.CurrentTrialNumber
    TrialRecord.User.TrialCodes(TrialRecord.CurrentTrialNumber-1) = TrialRecord.LastTrialCodes;
end

Did you declare global variables but it didn't work? I don't see any reason for it not to work.
0
crado

Junior Member
Registered:
Posts: 7
Reply with quote  #3 
Many thanks, Jaewon. I will use the code that you are suggesting.  
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.