Description
This sample illustrates the use of Task Events and multiple input masks to send conditional based events on the response.
Abstract
If you want to send a specific Attribute at each Stimulus.Response, you can reference it from a List object (e.g., TrialList). The .ACC data type will send a "1" or a "0". At this time, the Task Events feature cannot send conditional data. Since the “off” signal is the same as the default “incorrect response” signal (ACC=0), accuracy can be re-coded from [0,1] to [1,2]*.
To do this, we can create two Attributes in the TrialList called CorrectRESPTrigger and IncorrectRESPTrigger. For the Correct response, we will send a "2". For the incorrect response, we will send a "1". To send the appropriate trigger, we can add two input masks to the Stimlulus object. For the first input mask, we would put the Allowable as [Correct] and the Correct as [Correct]. Then for the Task Event Stimulus.Keyboard(1).Press, we would send [CorrectRESPTrigger]. For the second input mask, we would put [Incorrect]{F4} as the Allowable and {F4} as the Correct. Then for the Task Event Stimulus.Keyboard(2).Press, we would send [IncorrectRESPTrigger].
Note that you do not need to use F4. You can use any key that would not accidentally be pressed. I just added in that key to make sure that a "no response" would not be counted as correct for the Incorrect Keyboard Input Mask Device (i.e. leaving the Correct Response blank for the second Keyboard Input Mask).
Comments
Requires E-Prime 2.0 Professional build 2.0.10.182 or later
*If you wish to send conditional triggers in an earlier version of E-Prime 2.0 or in Standard, you will need to use InLine script.
Comments
0 comments
Please sign in to leave a comment.