How to set eye-tracker markers for each block for the emotional Go/No Go task


How to set eye-tracker markers for each block for the emotional Go/No...
Author
Message
jnmchan
jnmchan
Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)
Group: Forum Members
Posts: 9, Visits: 40
Dave - 10/31/2019
jnmchan - 10/30/2019
Hi 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.

Thank you so much for your kind help! I'm sorry for my rough description. I would like to port some makers to identify for each emotional block (i.e. Marker 1 for block AN, marker 2 for block FN etc.). I don't know how to edit the trial content to port those markers and showing them in the gaze file. Attached please find a pic for what problem I'm facing now. Really appreciate for your help on my task! Thank you so much!
The marker just showed "Zero" values so I would like to set it as an identical value then I could know and identity the eyetracker data in which block.  


   
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: 108K
Dave - 10/31/2019
jnmchan - 10/30/2019
Hi 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>

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: 108K
jnmchan - 10/30/2019
Hi 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.

Edited 6 Years Ago by Dave
jnmchan
jnmchan
Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)Associate Member (228 reputation)
Group: Forum Members
Posts: 9, Visits: 40
Hi 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!






Attachments
emotionalgonogo_eyetrack_2_2019.iqx (312 views, 53.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search