[open] I used vioce response but [acc] doesn't exist
Hello.
I'm a normal pc user. I don't know well about computer programming.
Just used code from this link
http://forum.cogsci.nl/index.php?p=/discussion/928/open-pyaudio-error-in-inline-script/p1
I got 2 problems
1) sometimes it's work, sometimes after started the experiment it's finished without any result.
How to solve this problem?
2) I used inline_script insteand keyboard_reponse but the excel file result, accuracy was showed 'unidentified'
How can I get 'accuracy'?
Thank you so much.
Comments
Hi, and welcome to the forum!
When you say "normal pc", I take it you mean Windows? What version of OpenSesame are you using? Standalone (i.e. installed using the installer), 2.8.3?
1) This depends on what you expect. The code you use tests if the environmental loudness is above a set threshold. If it is, it breaks. This means that the inline script will stop once the loudness measured in a certain time interval exceeds the set threshold. What's stored, is the loudness across of the measured time interval and the amount of time that passed between the start of running the script, and the time at which the loudness was determined to surpassed threshold. It could be that you are expecting very different results. It would be good if you could indicate what you want (the script) to do.
2) The accuracy variable is automatically updated by some items, e.g. the keyboard_response (but only if you tell it what a correct response would be!). In the case of the inline_script you are referring to, a correct response is not defined, and the accuracy is not updated either.
In general, it would be good to do a few of the tutorials, to familiarize yourself with OpenSesame. More good reading can be found on the documentation page, e.g. on response variables (like accuracy).
Good luck!
Thank you so much.