[solved] I am not able to keyboard to work with Odd Ball Task
Lotje,
I was able to put together an auditory Odd ball task this weekend. Everything works! The odd ball task never occurs two times in a row. I do want to add the key board and have the person hit the space key every time they hear the target sound. I have tried to follow the tutorial creating a Gaze Cuing Experiment and have placed the key board in my experiment but when I check the excel worksheet it does not record the keystroke of the space bar.
Is there something I need to type in the script you provided for the Key board to record the hitting of the space key when a person hears the target sound?
I am sorry to bother you with this and I am hoping on can figure out the connection with Emotiv and setting the triggers on my own.
Kind Regards,
AJ
Comments
Hi AJ,
Did you insert a logger item after your keyboard_response item?
Or did you add
self.log(myvar)
to the code in your inline_script item? (if you're using an inline_script)Cheers!
Edwin
Before I got your response I found your keyboard functions page and I made a _inline_script and placed it under trial sequence:
The problem is that on the excel worksheet the correct response and response time will be recorded but always for the trial below the Target:
What am I doing wrong? is this sometime type of timing problem or did I just put the script in the wrong place. I am it is something simple I just can not figure it out.
Best,
AJ
From the looks of it, I'd say that your logger seems to be placed before your inline script, meaning that it will log the values of the previous trial. To verify this, could you perhaps post a screenshot of your overview (or of the relevant part only)?
I am sorry, I am working on a lap tap and I can not find the print screen button. Are you asking the information under trial sequence. If that is what you are requesting the order is determine_ trial_ type (script)
Thank you so much for being patient with me and helping me figure this out
Kind Regards,
AJ
Oh Man,
that last comment was a mess.
Trial Sequence:
determine_trial_order
determine_keyboard_response
non_target
target
sketchpad
logger
Script for determine_trial:
Script for block sequence determine_trial_order
Sorry again for the comment above. I hope this helps you figure things out.
Thank You
AJ
Let me try this one more time.
Trial sequence
determine_trial_ type
determine keyboard response
non_target: player
Target: player
sketch pad: fixation dot
Logger
I will put script for determine_ trial_ type and determine trail order in the next comment so I do not mess up again
determine_ trial_ type:
determine_ trial_ order
Thank you so much! just moving the script and now everything works. Again I am so sorry for making such a mess of this post. Thank you also for being so patient with me
Haha, I think it might be useful to know that you can post text in it's original layout by using '
< pre >
' and '< /pre >
' tags (without the spaces, mind you!), like so:Good to know that you've fixed it! If I understand correctly, you did indeed misplace the script a bit?
Good luck with further testing!