|
Post by asabert on Oct 7, 2019 2:04:50 GMT
Hello! I am currently coding my IAT and it is running fine except when I use both sound and text stimuli in a task. It will play the sound fine however when the text appears the screen freezes and will not receive any input or continue with experiment. I believe the error lies in the task as when I do not include "sound @1" in the task, the code runs fine. Here is a copy of task below:
task generala_hispanic_mix keys e i table generala_hispanic_pleasant_unpleasant_list draw off if &order == 1 show text "generla" -250 -50 show text "hispanic" 250 -50 fi if &order == 2 show text "hispanic" -250 -50 show text "generala" 250 -50 fi show text "pleasant" -250 50 show text "unpleasant" 250 50 draw on delay 100 show rectangle 0 0 10 10 255 255 255 # fixpoint delay 200 clear -1 delay 200 show text @1 sound @1 if &order == 1 readkey @2 3000 fi if &order == 2 readkey @3 3000 fi clear -1 if STATUS != CORRECT show bitmap frowny delay 100 clear -1 delay 100 show bitmap frowny delay 100 clear -1 delay 100 show bitmap frowny delay 100 clear -1 delay 300 fi if STATUS == CORRECT show bitmap smiley delay 300 clear -1 delay 300 fi delay 700 save BLOCKNAME BLOCKNUMBER @1 RT STATUS
|
|
|
Post by destinygonzales on Dec 11, 2020 2:11:44 GMT
If you don't need the sound playing while displaying the text, you can try silencing the sound ("silence sound @1"). It might also help to clear the text then play the sound ("clear -1").
If you need them to play simultaneously, I'd suggest creating an image with Google Drawing and displaying an image of the text. I have this in my experiment, and it allows me to play sound and show text (via an image) at the same time.
Hope this helps! Let me know if you run into any other issues or if that works.
|
|