Hi,
I’m conducting an experiment with the Wisconsin Card Sorting Test, andfor the purpose of the experiment I need to switch mouse input to voice input.I managed to do so successfully with the script of the original WCST, found onthe Inquisit website, but not with the Modified Card Sort Test, also found onthe Inquisit website, that I would prefer to use. For the Modified CST, Inquisitseems just not to react to the voice (it is not a microphone input problem,because the original WCST works perfectly with voice input with the samesettings). I add that when I run the Monkey for the modified CST, it goesperfectly through all trials.
The only difference between the original WCSTand the modified CST scripts is that in the first case (working), the function« correctresponse » is used, and in the second case (not working),the function « iscorrectresponse » is used.
Below I copied a trial example of both tests, manythanks in advance if you could tell me what I need to change in the modifiedCST to get it working with voice input.
Note « eins, zwei, drei, vier »stand for « one, two, three, four » in German ; the participanthaving to indicate which deck he/she is choosing, from left to right.
Scriptof a trial for the Original Wisconsin Card Sorting Test (working with voiceinput)
<trial color_GreenTriangle1>
/ inputdevice = voice
/ correctmessage = true(right,400)
/ errormessage = true(wrong,400)
/ correctresponse = ("zwei")
/ validresponse = ("eins","zwei", "drei", "vier")
/ stimulusframes = [1=green_triangle1,RedTriangle1, GreenStar2, YellowCross3, BlueCircle4]
/ ontrialend = [if (values.OldRuleWindow == 1&& trial.color_GreenTriangle1.response == "eins")
values.OldRuleResponse= values.OldRuleResponse + 1]
/ ontrialend = [if (values.OldRuleWindow == 1&& trial.color_GreenTriangle1.response != "eins")
{values.OldRuleWindow= 0; values.OldRuleResponse =0}]
</trial>
Scriptof a trial for the Modified Wisconsin (currently not working with voice input)
***No ambiguity:1***
<trial GreenTriangle3>
/ inputdevice = voice
/ correctmessage = true(right,400)
/ errormessage = true(wrong,400)
/ ontrialbegin = [if (values.category == 1)values.colortrialcount += 1]
/ ontrialbegin = [if (values.category == 2)values.formtrialcount += 1]
/ ontrialbegin = [if (values.category == 3)values.numbertrialcount += 1]
/ ontrialbegin = [if(values.showRuleChangeAlert && values.RuleChange == 1)
{text.RuleChangeAlert.textcolor= black}]
/ stimulusframes = [1=playcard, RedTriangle1,GreenStar2, YellowCross3, BlueCircle4, deck, RuleChangeAlert]
/ validresponse = ("eins","zwei", "drei", "vier")
/ iscorrectresponse = [(values.category == 1&& trial.GreenTriangle3.response == "zwei") ||
(values.category== 2 && trial.GreenTriangle3.response == "eins") ||
(values.category== 3 && trial.GreenTriangle3.response == "drei") ]
/ ontrialend = [if (values.correctstreak >=values.setmaintainthreshold &&trial.GreenTriangle3.error)
values.Sum_FailureMaintainSet+= 1]
/ ontrialend = [if(trial.GreenTriangle3.correct)
{values.correctstreak += 1;
values.totalcorrect= values.totalcorrect +1}
else
{values.correctstreak= 0;
values.errorsum_block+= 1;
values.totalerror+= 1 }]
/ ontrialend = [if (values.OldRuleWindow == 1&& values.category == 1 && trial.GreenTriangle3.response =="drei")
{values.PerseverativeResponse= 1;
values.Sum_PerseverativeResponses+= 1}]
/ ontrialend = [if (values.OldRuleWindow == 1&& values.category == 2 && trial.GreenTriangle3.response =="zwei")
{values.PerseverativeResponse= 1;
values.Sum_PerseverativeResponses+= 1}]
/ ontrialend = [if (values.OldRuleWindow == 1&& values.category == 3 && trial.GreenTriangle3.response =="eins")
{values.PerseverativeResponse= 1;
values.Sum_PerseverativeResponses+= 1}]
/ ontrialend = [if (values.OldRuleWindow == 1&& values.category == 1 && trial.GreenTriangle3.response !="drei")
values.OldRuleWindow= 0]
/ ontrialend = [if (values.OldRuleWindow == 1&& values.category == 2 && trial.GreenTriangle3.response !="zwei")
values.OldRuleWindow= 0]
/ ontrialend = [if (values.OldRuleWindow == 1&& values.category == 3 && trial.GreenTriangle3.response !="eins")
values.OldRuleWindow= 0]
/ ontrialend = [if (trial.GreenTriangle3.response== "zwei") values.ResponseCategory = "C" ]
/ ontrialend = [if(trial.GreenTriangle3.response == "eins") values.ResponseCategory = "F" ]
/ ontrialend = [if(trial.GreenTriangle3.response == "drei") values.ResponseCategory = "N" ]
/ ontrialend = [if(trial.GreenTriangle3.response != "eins" &&trial.GreenTriangle3.response != "zwei" &&
trial.GreenTriangle3.response!= "drei")
values.ResponseCategory = "O" ]
/ ontrialend = [values.RuleChange = 0;text.RuleChangeAlert.textcolor = white]
/ branch = [trial.selectcard]
</trial>