+x+x+x+xThank you Dave. Actually I managed to see the markers on the EEG recording computer (brain products software). However I only see two markers. For example: when the white square comes, s15 comes as a marker. And when other squares shows up, s7 is seen as a marker. My response doesn’t come as a marker but I think it can be solved during analysis part which I really hope to see! The problem here is that I don’t know how to specify those cues. I want to classify them as incentive and nonincentive cues. How can I do that?
You have not specified any markers to be sent upon response. You can do so by specifying /responsemessage attributes in your <trial> elements.
You're not distinguishing between incentive and nonincentive trials because you're not sending the markers.
for incentive trials:
<port incetivecueeeg>
/ port = LPT1
/ subport = data
/ items = ("00000001")
</port>
for nonincentive trials:
<port nonincetivecueeeg>
/ port = LPT1
/ subport = data
/ items = ("00000011")
</port>
I don't know why you don't send them, I have explained how to do this here:
https://www.millisecond.com/forums/FindPost25523.aspxFinally, it seems your "eraser" <port> is misspecified
<port erasereeg>
/ port = LPT1
/ subport = data
/ items = ("00000
111")
</port>
You'll want to send all zeros to lower, i.e. "erase" a previous signal during the trial:
<port erasereeg>
/ port = LPT1
/ subport = data
/ items = ("00000
000")
</port>
Thank you Dave,
Actually I updated the script after you the attached one was not the uptaed one. Now, the final version is attached. The thing is that I did what you said. I sent the markers I think. And I added responsemessage attributes. But, now all I can see the target as a marker (s7). Other incentive cues and nonincentive cues are not seen as markers let alone distinguishing incentive and nonincentive cues as markers. I don't know where I am doing wrong again. I am so close to succeed in this with your help and sorry to bother you this much but can you please have a look at the script and help me in marking problem? I just have to see the markers of incentive cues, nonincentive cues, responses, feedback etc while recording EEG..
Thank you very much in advance.
Özge
This is the nonincentive trial from the script you attached:
<trial nonincentive>
/inputdevice = mousekey
/validresponse = (lbuttondown, rbuttondown)
/correctresponse = (lbuttondown, rbuttondown)
/ responsemessage = (lbuttondown,incentivecue, 0)
/ responsemessage = (rbuttondown,incentivecue, 0)
/ ontrialbegin = [
values.incentive_condition = 2;
values.iti=0;
values.targetduration = expressions.determineDuration;
values.delayduration = list.delay.nextvalue;
trial.nonincentive.insertstimulustime(shape.eraser, values.cueduration);
trial.nonincentive.insertstimulustime(port.erasereeg, values.cueduration);
trial.nonincentive.insertstimulustime(shape.target, (values.cueduration + values.delayduration));
trial.nonincentive.insertstimulustime(port.targeteeg, (values.cueduration + values.delayduration));
]
/ stimulustimes = [0 = nonincentivecue, total]
/ beginresponsetime = values.cueduration + values.delayduration
/ responseinterrupt = immediate
/ timeout = values.cueduration + values.delayduration + values.targetduration
/ monkeyresponse = (values.responsekey)
/ ontrialend = [
trial.nonincentive.resetstimulusframes();
values.iti = values.trialduration - values.cueduration - values.delayduration - trial.nonincentive.latency - values.feedbackduration;
if (values.exp_condition == 0) {
values.count_NonIncentiveControl += 1;
values.countcorrect_NonIncentiveControl += trial.nonincentive.correct;
list.successNonIncentive_Control.insertitem(trial.nonincentive.correct, 1);
} else if (values.exp_condition == 1) {
values.count_NonIncentiveReward += 1;
values.countcorrect_NonIncentiveReward += trial.nonincentive.correct;
list.successIncentive_Reward.insertitem(trial.incentive.correct, 1);
} else if (values.exp_condition == 2) {
values.count_NonIncentivePunishment += 1;
values.countcorrect_NonIncentivePunishment += trial.nonincentive.correct;
list.successNonIncentive_Punishment.insertitem(trial.nonincentive.correct, 1);
} ;
]
/ branch = [trial.feedback]
</trial>
Where do you send the nonincentivecue EEG marker? It appears you don't. Why? All you send is the target EEG marker. Add the nonincentive marker as I have explained previously, please.
Then, you'll probably want to define _different_ markers to indicate response. Here,
<trial
nonincentive>
/inputdevice = mousekey
/validresponse = (lbuttondown, rbuttondown)
/correctresponse = (lbuttondown, rbuttondown)
/ responsemessage = (lbuttondown,
incentivecue, 0)
/ responsemessage = (rbuttondown,
incentivecue, 0)
...
#1: What does "incentivecue" do in <trial
nonincentive>?
#2: "incentivecue" is not a port marker, and neither is nonincentivecue. Those are <shape> elements. Your port elements are called incentivecueeeg and nonincentivecueeeg respectively.
<shape incentivecue>
/ shape = rectangle
/ size = (values.stimsize * 0.75, values.stimsize)
/ position = (50%, 50%)
/ color = red
</shape>
<port
incetivecueeeg>
/ port = LPT1
/ subport = data
/ items = ("00000001")
</port>
<shape nonincentivecue>
/ shape = rectangle
/ size = (values.stimsize * 0.75, values.stimsize)
/ position = (50%, 50%)
/ color = red
</shape>
<port
nonincetivecueeeg>
/ port = LPT1
/ subport = data
/ items = ("00000011")
</port>
#3: You almost certainly will want to send those markes for longer than just 0 ms, since it's not guaranteed that there will be a substantive post trial pause. Set it to a minimum of, say, 50 ms.