|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/15/2007 12:41:07 PM
Posts: 2,
Visits: 15
|
|
Hi,
I am new in e-prime and have problems with finding a possibility to record two responses, one verbal response via microphone/ SRBox made by the participant (I want to record the RT in naming the color of a word), one response made by the experimentator via keyboard, indicating the content of the response of the participant (1=blue, 2=red, 3=green). Can anybody please help me and let me know how to do this?
Thank you!
Andrea
|
|
|
|
|
Forum Guru
      
Group: Moderators
Last Login: 10/30/2008 3:23:17 PM
Posts: 127,
Visits: 924
|
|
Hi Andrea,
It is possible in E-Prime to allow more than one response device on a single object. To do so, open the object's property pages and navigate to the Duration/Input tab. Click the "Add" button to add the SRBox and then click it again to add the Keyboard. You can then edit each response device's properties separately (e.g. you would want the Allowable field for the SRBox to be "6" - voice key - and the Allowable field for the Keyboard to be "123").
One thing to keep in mind when doing this is that one of the response devices should have their EndAction property set to "none". Specifically, the device from which you will collect the first response should have this property set to "none". In your experiment, this will likely be the vocal response via the SRBox (i.e. since the experimenter would have to hear the response before pressing the corresponding key on the keyboard). This way, when the vocal response comes in, the object remains on screen until the keyboard response is received.
It is important to note, however, that when you collect multiple responses to a single object, E-Prime will only log information (i.e. RT, RTTime) about the final response automatically. So, using your experiment as an example, only the RT and RTTime values for the keyboard response will be logged. If you want to log information about each response, you will need to do so manually using script. We actually have a sample experiment on the support site that contains the script necessary to do this. I have attached this sample for your to take a look at.
Let me know if you have any questions about this information or the sample.
- Matt
- Matt
PST Technical Consultant
http://pstnet.com
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/15/2007 12:41:07 PM
Posts: 2,
Visits: 15
|
|
Thanks so much for the help! However, I still have problems with the script you sent me. I inserted the files InLine1, ProcessMouseResponses, and ProcessKeyResponses into my file now to adapt those. But there is immediately an error message letting me know that the function MouseResponseData is unknown. I fear I can't handle the script. Is there any other solution to record two responses, that is, the RT for the first response and the accuracy for the second response?
Thank you very much!
|
|
|
|
|
Forum Guru
      
Group: Moderators
Last Login: 10/30/2008 3:23:17 PM
Posts: 127,
Visits: 924
|
|
Andrea,
I actually believe there was a modification made to the file I sent you, specifically in the InLine1 object. I have attached the original version of the sample to this post. Please try adapting the script to your experiment again (you will not need the InLine1 object at all) and let me know if you run into any problems.
- Matt
- Matt
PST Technical Consultant
http://pstnet.com
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 6/6/2007 1:10:34 PM
Posts: 1,
Visits: 9
|
|
Hi Matt,
i have a similar problem. I need to record 4 key presses (key and RT) from one Slide object. I copied pieces of your code that i thought were relevant and put an inline after the SlideTarget. When i test it, however, only KeyResponse1's data are recorded in the file. I'm terrible at scripting--can you tell me why nIndex doesn't increment and write all of the key presses to the file?
thanks,
fenna
Dim theResponseObject As RteRunnableInputObject
Set theResponseObject = CRteRunnableInputObject(Rte.GetObject("SlideTarget"))
'If the assert below fires, then the object named in the line above does not exist
Debug.Assert Not theResponseObject Is Nothing
'Counter variable for the number of responses made
Dim nPressCount As Long
'Counter variable
Dim nIndex as Integer
'Enumerate through the response collection
For nIndex = 1 To theResponseObject.InputMasks.Responses.Count
'Set theKeyboardResponseData equal to the current keyboard response
Dim theKeyboardResponseData As KeyboardResponseData
Set theKeyboardResponseData = CKeyboardResponseData(theResponseObject.InputMasks.Responses(nIndex))
If Not theKeyboardResponseData Is Nothing Then
'Increment the press count
nPressCount = nPressCount + 1
'Log reaction time and response for each key press.
c.SetAttrib "KeyPress" & nIndex & "RT", theKeyboardResponseData.RT
c.SetAttrib "KeyPress" & nIndex & "RESP", theKeyboardResponseData.RESP
End If
Next 'nIndex
|
|
|
|
|
Forum Guru
      
Group: Moderators
Last Login: 10/30/2008 3:23:17 PM
Posts: 127,
Visits: 924
|
|
Hi Fenna,
The easiest way for me to troubleshoot this issue would be to take a look at your ES file. If you do not feel comfortable posting the file on a public message board, please create a support request at http://www.pstnet.com/e-prime/support/login.asp and attach your file there.
One possible cause is that you have not configured the SlideTarget object to collect multiple responses. In order to do this, you must set the Max Count property to a value greater than 1 (e.g. 4 in your case). To locate the Max Count property, open the SlideTarget object's Property Pages and navigate to the Duration/Input tab. Click the "Advanced" tab near the lower right.
If the Max Count property is set to 1, the For nIndex = 1 to... loop will only run once because "theResponseObject.InputMasks.Responses.Count" will return a value of 1 (i.e. since the object only collected 1 response).
I hope that this has been helpful. Please let me know if you continue to have difficulty.
- Matt
- Matt
PST Technical Consultant
http://pstnet.com
|
|
|
|
Posted 7/11/2007 11:22:08 AM |
< | | | |