Stimulus marker
juan concepcion
elmoro5185 at gmail.com
Tue Sep 23 20:58:30 UTC 2014
Well I've tried it but no success.
I get this report (adjunct to this e-mail).
It says that it could not find the attribute StimSlide.ACC. I've tried
changing the name of instead of StimSlide.ACC to Target.ACC because the
slide in my experiment is called Target. Also, I've checked the ACC
dependent measure logging.
One question: (is this for the purpose to create an attribute so that when
the task event calls for that attribute, it exists?).
Also I've tried it for a Cue slide. To the cue slide I've added: Onset and
Offset. It did not yielded results since I can not get pass the aboved
mentioned error.
Best reguards,
Juan
On Tue, Sep 23, 2014 at 12:15 PM, juan concepcion <elmoro5185 at gmail.com>
wrote:
> Thank you for the fast response. I will carefully look at the advice.
>
> Thanks alot!!
>
> Juan
>
> On Tue, Sep 23, 2014 at 11:53 AM, David McFarlane <mcfarla9 at msu.edu>
> wrote:
>
>> Juan,
>>
>> Once again, if you use EP2.0.10 or later, I think you can do this better
>> with Task Events than with inline code. How about the following:
>>
>> Suppose you use the object StimSlide to get your subject response. Make
>> sure that it logs StimSlide.ACC; you might also have to set its PreRelease
>> to 0 to make sure that E-Prime sets the StimSlide.ACC attribute before
>> executing the next object. Set up your trial Procedure something like
>>
>> ...
>> StimSlide
>> MarkerWait
>> ...
>>
>> MarkerWait is a Wait object with a Duration of 0. Add a Task Event at
>> StartTime, ActionTime, or OnsetTime (in this case it hardly matters which,
>> if you want to know the difference please see
>> https://groups.google.com/d/topic/e-prime/OeiZ00V9SRc ). Set it to use
>> your communications device (ParallelPort, Serial, etc.). Use WriteString
>> as the Action, "(custom)" as the Source, "[StimSlide.ACC]" for Custom,
>> String for Data Type; leave Delay at 0, and Enabled at Yes.
>>
>> The key is the Custom value for the Task Event. If StimSlide is set to
>> log .ACC, then E-Prime will automatically create the StimSlide.ACC
>> attribute (though you might have to set PreRelease to 0 to make sure that
>> MarkerWait does not try to use that attribute before its value is set!).
>> Then MarkerWait can use that as an attribute reference in the Custom value.
>>
>> I have not tested this out myself, so I will be very interested to learn
>> what you get to work. Please write back.
>>
>> -----
>> David McFarlane
>> E-Prime training online: http://psychology.msu.edu/
>> Workshops_Courses/eprime.aspx
>> Twitter: @EPrimeMaster (https://twitter.com/EPrimeMaster)
>>
>> /----
>> Stock reminder: 1) I do not work for PST. 2) You may reach PST's
>> trained staff (and other support facilities) at
>> https://support.pstnet.com . 3) If you do get an answer from PST staff,
>> please extend the courtesy of posting their reply back here for the sake of
>> others.
>> \----
>>
>>
>> At 9/23/2014 10:34 AM Tuesday, juan concepcion wrote:
>>
>>> Hello I need help with sending an alphanumeric marker when presenting a
>>> stimulus. I have set the port for communication and already have
>>> successfully sent markers to another program.Â
>>>
>>> My wish now is to send markers if stimuli are correct or incorrect. So
>>> for example if stimulus is correct send marker "1" and if stimulus is
>>> incorrect send marker "0". I need to understand how  in-line script does
>>> this and what to write in the in-line script for it to perform the function
>>> specified.
>>>
>>> Thank you in advance!!!
>>>
>>> Juan
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "E-Prime" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to e-prime+unsubscribe at googlegroups.com.
>> To post to this group, send email to e-prime at googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/e-prime/54219788.066b320a.21ca.0f18SMTPIN_
>> ADDED_MISSING%40gmr-mx.google.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+unsubscribe at googlegroups.com.
To post to this group, send email to e-prime at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/CALsz0u4H-6wBtuUgeRnL5W93YfYTqicy0Kq0BnxJ4KH6PcUfEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20140923/d2857e62/attachment.htm>
-------------- next part --------------
Target.Tasks.Reset
If Serial.GetState() = ebStateOpen Then
Target.Tasks.Add Serial.CreateTask(ebUCase_T & ebLCase_a & ebLCase_r & ebLCase_g & ebLCase_e & ebLCase_t & ebDot & ebUCase_A & ebLCase_c & ebLCase_t & ebLCase_i & ebLCase_o & ebLCase_n & ebUCase_T & ebLCase_i & ebLCase_m & ebLCase_e, CLng(ebDigit_0), ebUCase_W & ebLCase_r & ebLCase_i & ebLCase_t & ebLCase_e & ebUCase_S & ebLCase_t & ebLCase_r & ebLCase_i & ebLCase_n & ebLCase_g, ebParenOpen & ebLCase_c & ebLCase_u & ebLCase_s & ebLCase_t & ebLCase_o & ebLCase_m & ebParenClose, c.GetAttrib(ebUCase_T & ebLCase_a & ebLCase_r & ebLCase_g & ebLCase_e & ebLCase_t & ebDot & ebUCase_A & ebUCase_C & ebUCase_C), ebUCase_S & ebLCase_t & ebLCase_r & ebLCase_i & ebLCase_n & ebLCase_g, CLogical(ebUCase_Y & ebLCase_e & ebLCase_s))
End If
If Serial.GetState() = ebStateOpen Then
Target.Tasks.Add Serial.CreateTask(ebUCase_T & ebLCase_a & ebLCase_r & ebLCase_g & ebLCase_e & ebLCase_t & ebDot & ebUCase_O & ebLCase_f & ebLCase_f & ebLCase_s & ebLCase_e & ebLCase_t & ebUCase_T & ebLCase_i & ebLCase_m & ebLCase_e, CLng(ebDigit_0), ebUCase_W & ebLCase_r & ebLCase_i & ebLCase_t & ebLCase_e & ebUCase_S & ebLCase_t & ebLCase_r & ebLCase_i & ebLCase_n & ebLCase_g, ebParenOpen & ebLCase_c & ebLCase_u & ebLCase_s & ebLCase_t & ebLCase_o & ebLCase_m & ebParenClose, c.GetAttrib(ebUCase_T & ebLCase_a & ebLCase_r & ebLCase_g & ebLCase_e & ebLCase_t & ebDot & ebUCase_O & ebLCase_f & ebLCase_f & ebLCase_s & ebLCase_e & ebLCase_t & ebUCase_T & ebLCase_i & ebLCase_m & ebLCase_e), ebUCase_S & ebLCase_t & ebLCase_r & ebLCase_i & ebLCase_n & ebLCase_g, CLogical(ebUCase_Y & ebLCase_e & ebLCase_s))
End If
If Serial.GetState() = ebStateOpen Then
Target.Tasks.Add Serial.CreateTask(ebUCase_T & ebLCase_a & ebLCase_r & ebLCase_g & ebLCase_e & ebLCase_t & ebDot & ebUCase_O & ebLCase_n & ebLCase_s & ebLCase_e & ebLCase_t & ebUCase_T & ebLCase_i & ebLCase_m & ebLCase_e, CLng(ebDigit_0), ebUCase_W & ebLCase_r & ebLCase_i & ebLCase_t & ebLCase_e & ebUCase_S & ebLCase_t & ebLCase_r & ebLCase_i & ebLCase_n & ebLCase_g, ebParenOpen & ebLCase_c & ebLCase_u & ebLCase_s & ebLCase_t & ebLCase_o & ebLCase_m & ebParenClose, c.GetAttrib(ebUCase_T & ebLCase_a & ebLCase_r & ebLCase_g & ebLCase_e & ebLCase_t & ebDot & ebUCase_O & ebLCase_n & ebLCase_s & ebLCase_e & ebLCase_t & ebUCase_T & ebLCase_i & ebLCase_m & ebLCase_e), ebUCase_S & ebLCase_t & ebLCase_r & ebLCase_i & ebLCase_n & ebLCase_g, CLogical(ebUCase_Y & ebLCase_e & ebLCase_s))
End If
Target.Run
c.SetAttrib Target.Name & ebDot & ebLogNameOnsetDelay, Target.OnsetDelay
c.SetAttrib Target.Name & ebDot & ebLogNameOnsetTime, Target.OnsetTime
c.SetAttrib Target.Name & ebDot & ebLogNameDurationError, Target.DurationError
c.SetAttrib Target.Name & ebDot & ebLogNameOffsetTime, Target.OffsetTime
c.SetAttrib Target.Name & ebDot & ebLogNameRTTime, Target.RTTime
c.SetAttrib Target.Name & ebDot & ebLogNameACC, Target.ACC
c.SetAttrib Target.Name & ebDot & ebLogNameRT, Target.RT
c.SetAttrib Target.Name & ebDot & ebLogNameRESP, Target.RESP
c.SetAttrib Target.Name & ebDot & ebLogNameCRESP, Target.CRESP
c.SetAttrib Target.Name & ebDot & ebLogNameTag, Target.Tag
c.SetAttrib Target.Name & ebDot & ebLogNameOnsetToOnsetTime, Target.OnsetToOnsetTime
More information about the Eprime
mailing list