By Sato - 5/14/2015
Hi, I'm Japanese.
I have a question.
Now, I try to make AAT script in Japanese. I want to display the error massage in real experimental trial.
I added the following codes in zooming trial area.
<trial decrease> /ontrialbegin = [if (values.expcondition == 1 && values.targetformat == "p") trial.decrease.insertstimulustime(text.error, 0)] /ontrialbegin = [if (values.expcondition == 2 && values.targetformat == "l") trial.decrease.insertstimulustime(text.error, 0)]
<trial increase> /ontrialbegin = [if (values.expcondition == 1 && values.targetformat == "l") trial.increase.insertstimulustime(text.error, 0)] /ontrialbegin = [if (values.expcondition == 2 && values.targetformat == "p") trial.increase.insertstimulustime(text.error, 0)]
Then, error massages appeared. However error massages was not correct. These massage was displayed many many times.
I want to know how I have to write codes.
|
By Dave - 5/14/2015
> However error massages was not correct. These massage was displayed many many times.
You also need to reset <trial increase>'s and <trial decrease>'s stimulusframes as in the respective practice <trial>s. I.e.
<trial decrease> ... /ontrialend = [trial.decrease.resetstimulusframes()] ... </trial>
and
<trial increase> ... /ontrialend = [trial.increase.resetstimulusframes()] ... </trial>
|
By Sato - 5/14/2015
Dear Dave
Wow! Thank you very much! I could run the script correctly!
I'm very grateful to you.
|
By Dave - 5/14/2015
Great -- thanks for letting me know!
|
|