Canceling experiment takes minutes
Hi All,
Is it normal, when canceling an experiment (pressing ESC and then Q), that it should take a few minutes. I have an audio file that runs, and it's fairly large (between 25 and 40Mb). When it's running the audio, and I attempt to quit the experiment, it takes upwards of 2 minutes to show the quit prompt (i.e. press Q to quit). Is this normal, or should I be implementing some type of code in the back end to reduce the amount of processing that is required to play the audio?
Cheers.
Comments
Hi BossHard,
python works serially. In your case that means that the audio file needs to be finished until the program will 'react' to your button press (ESC). This also accounts for clock.sleep if you have inserted this in your code.
I do not really understand why you would like to have participants to cancel an experiment (at all) and even less while an audio is running. But that remains up to you ;)
Cheers, Stephan
Hi Stephan,
Thanks for the reply. You're correct that allowing participants to cancel the experiment would be bad, but when testing the experiment before it goes live, I've needed to cancel it. Not to worry, what you've said makes perfect sense.
Cheers