Group: Awaiting Activation
Posts: 2,
Visits: 25
|
Thanks for the help! I figured out what I was doing wrong and it was an easy fix. Now we want to send the TTL signal at the beginning of each block instead of by element. To send the signal by element, I did this for all of them:
<trial attributeA> / validresponse = ("E", "I") / correctresponse = ("E") / stimulusframes = [1 = attributeA, attributeAsignal] / posttrialpause = 250 </trial>
Do you have any advice on how to send the signal by block? I defined the ports like this:
<port compatibletest1signal> / port = LPT1 / subport = data / items = ("00000001") </port>
<port compatibletest2signal> / port = LPT1 / subport = data / items = ("00000010") </port>
<port incompatibletest1signal> / port = LPT1 / subport = data / items = ("00000011") </port>
<port incompatibletest2signal> / port = LPT1 / subport = data / items = ("00001000") </port>
Here's one block. I tried using /stimulusframes = [ 1 = compatibletest1, compatibletest1signal] and I got several event markers on Aqcknowledge instead of a single event marker. Is there something else I should type to send a signal at the beginning and end of each block?
<block compatibletest1> / bgstim = (targetAleft, orleft, attributeAleftmixed, targetBright, orright, attributeBrightmixed) / trials = [1=instructions; 3,5,7,9,11,13,15,17,19,21= random(targetAleft, targetBright); 2,4,6,8,10,12,14,16,18,20 = random(attributeA, attributeB)] / errormessage = true(error,200) / responsemode = correct / ontrialend = [if(block.compatibletest1.latency <= 10000 && block.compatibletest1.currenttrialnumber != 1 ) values.sum1a = values.sum1a + block.compatibletest1.latency] / ontrialend = [if(block.compatibletest1.latency <= 10000 && block.compatibletest1.currenttrialnumber != 1 ) values.n1a += 1] / ontrialend = [if(block.compatibletest1.latency <= 10000 && block.compatibletest1.currenttrialnumber != 1 ) values.ss1a = values.ss1a + (block.compatibletest1.latency * block.compatibletest1.latency)] / ontrialend = [if(block.compatibletest1.latency <= 10000 && block.compatibletest1.currenttrialnumber != 1 ) values.n_correct += block.compatibletest1.correct] </block>
Thanks for the guidance! I attached the whole thing if that is easier to look at.
Sarah
|