Hi,<br><br>I am trying to create an experiment, where a subjects have to answer to a movie stimuli by moving a joystick backward or forward. According the subjects response, the video should loom bigger (backward movement)  or smaller (forward movement). <br>
<br>I thought I could do this by using a feedback object: forward movement could be coded as correct answer and backward movement as wrong answer. And a feedback for correct answer could be a video looming smaller and for incorrect answer there could be a video looming bigger. <br>
<br>I have already added a joystick device to the 
experimental design, and <span><span><span id="ctl03_ctlTopic"><span id="ctl03_ctlTopic_ctlPanelBar"><span id="ctl03_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage">using an inLine object I inserted a script </span></span></span></span></span><span><span><span id="ctl03_ctlTopic"><span id="ctl03_ctlTopic_ctlPanelBar"><span id="ctl03_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage"> </span></span></span></span></span><span><span><span id="ctl03_ctlTopic"><span id="ctl03_ctlTopic_ctlPanelBar"><span id="ctl03_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage">to decode the movement of the joystick as response, and that works alright. </span></span></span></span></span><span><span><span id="ctl03_ctlTopic"><span id="ctl03_ctlTopic_ctlPanelBar"><span id="ctl03_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage"> (I found the script from this forum </span></span></span></span></span><span><span><span id="ctl03_ctlTopic"><span id="ctl03_ctlTopic_ctlPanelBar"><span id="ctl03_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage">
 
<a href="https://groups.google.com/forum/#!searchin/e-prime/joystic/e-prime/cu8Fm6lbE_I/JcZaf_ORhk8J">https://groups.google.com/forum/#!searchin/e-prime/joystic/e-prime/cu8Fm6lbE_I/JcZaf_ORhk8J</a>
 ... I even use the same joystick!)</span></span></span></span></span><br><span><span><span id="ctl03_ctlTopic"><span id="ctl03_ctlTopic_ctlPanelBar"><span id="ctl03_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage"><br>
Dim nInitY As Integer<br>Dim nCurrentY As Integer<br>Dim nDiff As Integer<br><br>nInitY = Joystick.CursorY<br><br>Do<br>   nCurrentY = Joystick.CursorY<br>   nDiff = nInitY - nCurrentY<br><br>Loop Until Abs(nDiff) > 50<br>
<br>Stimulus.RTTime = Clock.Read<br>Stimulus.RT = Stimulus.RTTime - Stimulus.OnsetTime<br><br>If nDiff > 0 Then<br>   Stimulus.RESP = "Forward"<br>Else<br>   Stimulus.RESP = "Backward"<br>End If<br>
<br>However, I don't know how to make the program to understand the forward movement as "Correct" answer. I tried to write another inLine script with my minor programming skills </span></span></span></span></span><span><span><span id="ctl03_ctlTopic"><span id="ctl03_ctlTopic_ctlPanelBar"><span id="ctl03_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage">without success:<br>
<br></span></span></span></span></span><span><span><span id="ctl03_ctlTopic"><span id="ctl03_ctlTopic_ctlPanelBar"><span id="ctl03_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage">    If Stimulus.RESP = "Forward" Then<br>
        'Set the ActiveState to Correct<br>        Feedback.ActiveState = "Correct"<br>        End If<br><br>    If Stimulus.RESP = "Backward" Then<br>        'Set the ActiveState to Incorrect<br>
        Feedback.ActiveState = "Incorrect"<br><br>        End If<br><br>Could you help me with that?<br><br>Another questions concerns the looming videos: I found that it would be possible to create looming pictures with a script </span></span></span></span></span><span><span><span id="ctl03_ctlTopic"><span id="ctl03_ctlTopic_ctlPanelBar"><span id="ctl03_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage">(<a href="https://groups.google.com/forum/#!searchin/e-prime/joystick/e-prime/qD0NwsXD7i4/bk1hMejJ3u8J">https://groups.google.com/forum/#!searchin/e-prime/joystick/e-prime/qD0NwsXD7i4/bk1hMejJ3u8J</a> )</span></span></span></span></span><span><span><span id="ctl03_ctlTopic"><span id="ctl03_ctlTopic_ctlPanelBar"><span id="ctl03_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage">, but do you know if that's possible with video stimuli? <br>
<br>Thanks in advance, <br>Terhi  <br></span></span></span></span></span>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />

For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.<br />