Using a joystick as a response and defining correct response.

Diana Laura Rosa Leyra dl.rosaleyra at gmail.com
Fri Nov 2 19:18:14 UTC 2012


Thank you! I will try this out. I have a similar code and am now trying to
define what would be a right  and a left response. We will see! Thanks!

On Fri, Nov 2, 2012 at 3:01 PM, terhi helminen <helminenterhi at gmail.com>wrote:

> Hi,
>
> I have recently made a task where participant has to answer with joystick
> (pulling it backward or forward).  The Inline code below helped me to make
> an appropriate code, perhaps it helps you too...
>
> (from
> https://groups.google.com/forum/?fromgroups=#!searchin/e-prime/joystick$20as$20response$20device/e-prime/ww6C02LZ8nY/qDT5rsZrerkJ
>  )
>
> ----
>
> Dim nInitY As Integer
> Dim nCurrentY As Integer
> Dim nDiff As Integer
>
> nInitY = Joystick.CursorY
>
> Do
>    nCurrentY = Joystick.CursorY
>    nDiff = nInitY - nCurrentY
>
> Loop Until Abs(nDiff) > 50
>
> Stimulus.RTTime = Clock.Read
> Stimulus.RT = Stimulus.RTTime - Stimulus.OnsetTime
>
> If nDiff > 0 Then
>    Stimulus.RESP = "Up"
> Else
>    Stimulus.RESP = "Down"
> End If
> ----
> As I also wanted to give a feedback based on subjects answer, I used
> contingent branching based on the response. (See the example in
> http://www.pstnet.com/support/samples.asp?Mode=View&SampleID=3 )
>
> Hope this helps!
> - Terhi
>
>
> On Thu, Nov 1, 2012 at 3:47 PM, Diana Laura Rosa Leyra <
> dl.rosaleyra at gmail.com> wrote:
>
>> Thanks Pip. I'll try this!
>>
>>
>> On Wed, Oct 31, 2012 at 7:46 PM, Pip <pipgriffiths86 at gmail.com> wrote:
>>
>>> I'm not sure that you can do this automatically, but if you code some
>>> inline to store the final x co ord of the cursor then you can look at this
>>> in the output file and use filters to determine whether the correct answer
>>> was given. You can also set up a screen that will respond if the answer was
>>> "correct" through using this method.
>>>
>>> Essentially you set a variable, get EPRime to write the x co ord to that
>>> variable and then get a conditional statement to read that file and
>>> feedback the necessary response to the participant
>>>
>>> Hope this helped
>>>
>>> Pip
>>>
>>> Sent from my iPhone
>>>
>>> On 31 Oct 2012, at 21:00, Diana Laura Rosa Leyra <dl.rosaleyra at gmail.com>
>>> wrote:
>>>
>>> All,
>>>
>>> We would like to use a joystick as a response device. Our task requires
>>> participants to judge whether the hand they see on the screen is a right or
>>> left hand. We'd like for them to respond with the joystick. Basically, I am
>>> trying to define a correct answer in terms of the position of the joystick
>>> at the time of response. Anyone have any ideas on how this would work and
>>> if it would work at all?
>>>
>>> I am working with EPrime 2.0 Professional and know that I have to use a
>>> bit of code, but am unsure as to where or how to use it.
>>>
>>> Thank you,
>>> Diana
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "E-Prime" group.
>>> To post to this group, send email to e-prime at googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> e-prime+unsubscribe at googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/e-prime/-/1EHfBZClU6kJ.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "E-Prime" group.
>>> To post to this group, send email to e-prime at googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> e-prime+unsubscribe at googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
>>
>> --
>> -------------------------------
>> Diana Laura Rosa-Leyra
>> dl.rosaleyra at gmail.com
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "E-Prime" group.
>> To post to this group, send email to e-prime at googlegroups.com.
>> To unsubscribe from this group, send email to
>> e-prime+unsubscribe at googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "E-Prime" group.
> To post to this group, send email to e-prime at googlegroups.com.
> To unsubscribe from this group, send email to
> e-prime+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
-------------------------------
Diana Laura Rosa-Leyra
dl.rosaleyra at gmail.com

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20121102/7423b69d/attachment.htm>


More information about the Eprime mailing list