I want to TMS participants 200 ms before the CuePr (CuePr duration = 500 ms), so during the FixCrossPr text presentation. The duration of the FixCrossPr is set to random in InLine FixCrossDurPr: FixCrossPr.Duration = Random(1200,1600). I am confused how I should deal with the random duration of the FixCrossPr .
I also have another TMS pulses: 100, 300, and 500 ms after the presentation of the FixCrossPr1 (FixCrossPr1 duration = 700 ms). But here everything is simpler because the duration of the FixCrossPr1 is constant. For this part the TMS triggers are in the InLine TMSingPr:
'Triggers
If c.GetAttrib("TMS")=1 Then
sleep c.GetAttrib("SOA")
writeport 888, triggercode
sleep 1
writeport 888, 0
sleep 999-c.GetAttrib("SOA")
Else
writeport 888, triggercode
sleep 1
writeport 888, 0
sleep 999
End If
As you see I refer to the SOA attribute that indicates the timing of the TMS pulse from the onset of the FixCrossPr1.
Can you help me, please, with sending the TMS pulse 200 ms before the CuePr?
Best,
Mariam
I think that's where the problem is because I simply don't have it for now. Since I am quite new to the E-Prime, I don't know what to use: inline codes, OnsetSignal facilities or Task Events. I would chose the inline code with WritePortas (if it is simpler) but I don't know how to do it in this case. However, I am open to any kind of suggestions!