+x+xHi all,
As emotional Go/Nogo task is originally not a task with eyetracker but I would like to link it with eyetracker (Tobii Pro X3-120) to collect gaze data. However, I found some script problem on porting marker for practice block and test block. I would like to seek your help for event marker set-up for emotional Go/Nogo task. As I tried to add eyetracker and port marker coding but I couldn't identify the marker for each emotional block from the gaze file.
Would anyone please tell me what's wrong with my script in this inqusit task? and Could you also teach me how to show the marker values in the gaze file?
Attached please find my task script. thank you all so much!
The <port> element behaves like any other stimulus in Inquisit. I.e. you need to actually "display" the stimulus just like you would a <text> element to send the marker out, i.e. include it in the <trial>s' /stimulustimes or -frames. Moreover, your port needs to actually send some non-zero value, and yours doesn't do that. It is simply set to nothing.
I cannot give you any concrete code example, since you did not explain at all when you wish to send the marker or markers, what marker values you wish to send, etc. These are all things you need to decide first.
For the sake of illustration, suppose you wish to send the marker value 1 during during practice go trials, and the value 2 for practice no go trials, at the time the practice stimulus is presented.
You have already define a marker <port> element as
<port marker>
/ items = (0)
/ port = eyetracker
/ erase = false
</port>
so then you can do
<trial go_practice>
/ ontrialbegin = [
port.marker.setitem(1, 1);trial.go_practice.insertstimulustime(clearscreen, parameters.picDuration);
trial.go_practice.insertstimulustime(text.fixation, parameters.picDuration);
trial.go_practice.insertstimulustime(text.fixation, parameters.responseDuration);
values.iti = list.iti.nextvalue;
]
/ stimulustimes = [0 = practice,
marker]
/ validresponse = (parameters.goKey, 0)
/ correctresponse = (parameters.goKey)
/ beginresponsetime = 0
/ responseinterrupt = frames
/ timeout = parameters.responseDuration
/ ontrialend = [
trial.go_practice.resetstimulusframes();
values.response_time = trial.go_practice.latency;
values.image = picture.practice.currentitem;
if (trial.go_practice.correct){
values.response_outcome = "HIT";
} else {
values.response_outcome = "MISS";
values.response_time = "";
};
]
/ branch = [
trial.feedback;
]
</trial>
and for the no-go trial
<trial nogo_practice>
/ ontrialbegin = [
port.marker.setitem(2, 1);trial.nogo_practice.insertstimulustime(clearscreen, parameters.picDuration);
trial.nogo_practice.insertstimulustime(text.fixation, parameters.picDuration);
trial.nogo_practice.insertstimulustime(text.fixation, parameters.responseDuration);
values.iti = list.iti.nextvalue;
]
/ stimulustimes = [0 = practice_neutral,
marker]
/ validresponse = (parameters.goKey, 0)
/ correctresponse = (0)
/ beginresponsetime = 0
/ responseinterrupt = frames
/ timeout = parameters.responseDuration
/ ontrialend = [
trial.nogo_practice.resetstimulusframes();
values.response_time = trial.nogo_practice.latency;
values.image = picture.neutral.currentitem;
if (trial.nogo_practice.correct){
values.response_outcome = "CR";
values.response_time = "";
} else {
values.response_outcome = "FA";
};
]
/ branch = [
trial.feedback;
]
</trial>