|
Group: Forum Members
Posts: 2,
Visits: 1
|
I have encountered a problem with getting Inquisit to process trial timeouts in the expected way. In an industrial QC simulation, the operator is to press a key ("D") if the current trial image (JPEG file) shows a defective product, and he should press the Spacebar (" ") if the product looks Okay. Also, IF HE DOES NOTHING for 10 seconds (trial timeout), that should be scored as a pass, same as pressing Spacebar. I use ("") to indicate no response in the script. I define the "valid" and the "correct" responses separately for defective and Okay product images. An error message is to be shown briefly if the operator presses "D" for a good product or a different message is shown if he presses Spacebar, or lets timeout occur, when seeing a defective product.
What I find is that error messages and data scoring work as expected for the normal keypress responses, *but timeout is always scored as an error in either situation, even though I defined it as a correct response for Okay images.* I have tried substituting "0" for "" to indicate timeout, but this produces another inappropriate set of behaviors by the program. This seems like a straightforward program function but I have had no success in getting it to work. If I can't get this going, it is a total show-stopper for our project and I will have to try a different experiment builder program, wasting our investment of time & money in Inquisit! Any suggestions? Below is the relevant code from my script. I apologize that this is long but I wanted to be sure to include the parts that might be causing the problem.
General setup:
/ mode = free / timeout = 10000
Define error messages:
/ numitems = 1 / items = (" ERROR: product was defective ") / color = (255, 0, 0) / position = (50, 80)
/ numitems = 1 / items = (" ERROR: product was Okay ") / color = (0, 255, 0) / position = (50, 80)
**DEFINE TRIALS:** / validresponse = ("D") / correctresponse = (" ", "") / errormessage = (errormessage2, 1000) / trialcode = "goodP" / response = all / frames = [10=picgoodprods]
/ validresponse = (" ", "") / correctresponse = ("D") / errormessage = (errormessage1, 1000) / trialcode = "badP" / response = all / frames = [10=picbadprods]
Define Block:
/ preinstructions = (Picintro1) / trials = [1-25 = noreplace(picgp, picbp, picgp)] / bgstim = (iftarget, ifnotarget) / blockfeedback = (correct)
Define Experiment:
/ preinstructions = (logo) / blocks = [1=practice]
|