"NULL" as my first logged answer when using "c.SetAttrib"
Paul Groot
pfc.groot at gmail.com
Tue Jun 24 22:00:57 UTC 2014
Hi Marie-France,
Sounds like this inline script is executed during the prerelease time of
the EmotionIdentification object. This will be the case when pre-release is
non-zero and the inline script is placed immediately after
EmotionIdentification.
Ideally such an inline should be at the end of the trial procedure.
However, when EmotionIdentification is the last object of the procedure,
you should consider setting the pre-release to zero or to insert another
'dummy' object before the inline.
Also have a look at the experiment advisor in EP 2. It probably warned
about this inline execution during pre-release issue.
Best
Paul
On 24 June 2014 15:59, Marie-France Larsson <marie-france.larsson at miun.se>
wrote:
> Hi!
> I was wondering if someone else encountered this problem. I used the code
> below in order to log which picture a participant clicks on (the answer
> choices in this experiment are images on a slide). For a reason that I do
> not quite understand, the answers are logged in my data output, BUT, the
> first answer is always "NULL", and the answers are then logged on the wrong
> row (they are displaced one row down so that the answer provided for trial
> 1 is logged on the row of trial 2, and so on, meaning that the last answer
> is not logged at all). Anything in my code that looks wrong to you, or any
> suggestion? This is the very first time I ever program an experiment at
> all, so I feel like there are probably a lot of things I might be doing
> wrong!
>
> Code:
>
> Dim theState As SlideState
> Set theState = EmotionIdentification.States("Default")
> Dim strHit As String
> Dim providedAnswer As MouseResponseData
>
> If EmotionIdentification.InputMasks.Responses.Count > 0 Then
>
> Set providedAnswer =
> CMouseResponseData(EmotionIdentification.InputMasks.Responses(1))
>
> strHit = theState.HitTest(providedAnswer.CursorX, providedAnswer.CursorY)
>
> c.SetAttrib "ClickedAnsKey", strHit
>
> End If
>
>
> --
> 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/aaf59e04-10be-4ec5-a9cb-2861ebaabcad%40googlegroups.com
> <https://groups.google.com/d/msgid/e-prime/aaf59e04-10be-4ec5-a9cb-2861ebaabcad%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAKAdR-svzgwfcLDkXA0Ch7eJ_MY7V94SduRDjgk8TfBpWgXm-A%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/20140625/5a88ca08/attachment.htm>
More information about the Eprime
mailing list