Sending triggers: how to best invoke them?
J. Scott Saults
saultsj at missouri.edu
Tue Oct 3 19:36:34 UTC 2006
Hi Brandon
Really appreciate your detailed reply and links to relevant support
notes. I'm still digesting your script and figuring out how to use it
for my specific applications. For the time being, I have a few
questions (with more to follow, I suspect).
My questions partly relate to your recommendation "1)The object
should have a zero duration." I'm trying to understand this
requirement in relation to a message posted by Anthony P. Zuccolotto
(Wed, 2 Aug 2006 13:56:40, in response to similar questions about
response triggers) that said, in part:
"Another approach you could use would be to set a different duration for the
Duration property and the Time Limit property (e.g. 0 for the Duration
and 5000ms on the Time Limit). This way you can get into Inline
script immediately after the stimulus is presented and then you can poll
the Stimulus.InputMask(1).IsPending method to determine when the
response is logged and then use WritePort at that time. A more
advanced way of getting into an Inline script immediately after the
stimulus is displayed is to set your PreRelease property equal to the
Duration of the object, e.g. this will allow the current object to
display its stimulus, enable any response, and then move on."
One of my questions is whether setting the preRelease property to the
duration of the object (as Zuccolotto suggests) would accomplish the
same thing as your recommendation of setting the duration property of
the object to 0
My specific objective is to send an accuracy - response code to the
parallel port, in response to a 100 ms target stimulus, which is to
be followed by a 500 ms mask. Both target and mask are to have the
same duration regardless of when the response occurs. My second
question is how to do this using your program code. Based on your
example code, it would appear that the target and prime would both
have to be displayed within the "While" loop until a response occurs,
and then continued beyond that, if necessary. Is that correct?
Also, your code explicitly logs the response. Does that mean that the
inputMask object will NOT log response, accuracy, and/or RT normally,
that is, without eg "c.SetAttrib theResponseObject.Name & ".RESP_" &
nResponseCount, theResponseData.RESP"?
Sorry for such newbie questions, but this procedure (sending realtime
response triggers) is critical to my ERP research and the best
solution is still not obvious to me, even after your reading your
detailed response, script, and (most) support links.
Thank your for your patient and persistent assistance.
Best regards,
J Scott Saults
At 07:41 AM 10/3/06, you wrote:
>Hi J. Scott / Fabrizio,
>
>In E-Prime 1.x, the best way to achieve accurate port
>signaling at the onset/offset should use the
>.OnetSignal or OffsetSignal properties. Use of
>WritePort should only be done in the cases where
>required. For the Onset of an object this is critical
>since performing a WritePort just prior to the object
>will not be accurate of the onset since the object
>will delay to wait for the vertical blank.
>
>Any time custom logging, port signaling, or multiple
>responses is necessary, the following should be setup:
>
>1) The object should have a zero duration. This will
>allow it to immediately be processed by the processing
>InLine
>2) A device
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20061003/dd67f242/attachment.htm>
More information about the Eprime
mailing list