trialduration error message


Author
Message
Tylhi
Tylhi
Respected Member (426 reputation)Respected Member (426 reputation)Respected Member (426 reputation)Respected Member (426 reputation)Respected Member (426 reputation)Respected Member (426 reputation)Respected Member (426 reputation)Respected Member (426 reputation)Respected Member (426 reputation)
Group: Forum Members
Posts: 20, Visits: 121
Hi,

I try to change one thing in a script that I created and used for study, but it's doesn't works and I don't undestrand why. 

I want to add a trialduration (1000 ms) on my actual trail (Go), but when I add the line /trialduration = 1000 in my trial, Inquisit told my that I do a mistake.

There is my trial :

<trial Go>
/ ontrialbegin = [
     values.gotype = list.Go.nextvalue;
     values.trialcount+=1;

if (parameters.runRandomITI == true){
values.ITI = list.intertrialIntervals.nextvalue;
} else {
values.ITI = parameters.fixedITI;
};

   trial.Go.insertstimulustime(picture.X, (values.ITI));
  trial.Go.insertstimulustime(clearscreen, (values.ITI + parameters.pictureDuration));
]

/ stimulustimes = [0 = clearscreen]
/ beginresponsetime = values.ITI
/ response = timeout(parameters.RW)
/ validresponse = (57, noresponse)
/ correctresponse = (57)
/ response = timeout(parameters.RW)
/ trialduration = 1000

/ ontrialend = [
 list.accuracy.insertitem(trial.Go.correct, 1);
 list.accuracy_G.insertitem(trial.Go.correct, 1);
 
 if (trial.Go.correct)
{
list.latencies.insertitem(trial.Go.latency, 1);
list.latencies_G.insertitem(trial.Go.latency, 1);
};
values.itempic = picture.X;
trial.Go.resetstimulusframes();
]
/ recorddata = true

</trial>

My script works well without the "trialduration". I just need that the stimulus "Go" appear for 500 ms and 500ms before the next stimulus. I hope you could help me.

Thanks in advance,
Best

Margaux



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Tylhi - 5 Years Ago
Dave - 5 Years Ago
Tylhi - 5 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search