Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Creating a variable and logging it using python code

Hi!

I am making an experiment for my research study. Its based on a simple continuous perform paradigm. In the task the target and non target flash quickly on the screen. The subject has to respond only to the target stimuli by providing a touch response. There are number of variables produced however, one such variables is the 'anticipatory response'. Here I need to see whether there were any responses after 200 ms post stimuli (be it target or non target) presentation.

The sequence of the experiment is: Blank screen (2000ms) > Target/Non-Target(80ms) > Response(80ms) > Blank Screen (2000ms).

I suppose. I need to write an inline code for it. I've gone through logging variable page. Though I am not sure how should I go about in this. Can anyone please help in this ?

Thanks
Vatsal

Comments

  • Hi Vatsal,

    What's your question exactly? I don't think you need inline code. Touch responses are logged with the touch response item. In order to be able to log anything (e.g. your anticipatory response) from the moment the stimuli are presented until 200ms later, you'd set the target duration to 0 ms, followed by the touch response with a time-out of 80 ms, followed by another target screen with duration 80-[response_time]. Right after that second target screen you place the response screen with duration 0 ms, and another response item with duration 120 ms (if it's really 200 ms you want. If you want responses to be collected during the black screen as well, with a 80 ms presentation of the response screen, you leave it at 80 ms). You now have to repeat the same procedure for the blank screen, i.e. presenting black screen 0 ms, followed by a response item with your desired time-out, followed by another blank screen with a duration indicating the remainder of the 2000 ms (2000 - [response_time]).

    Cheers

    Josh

Sign In or Register to comment.