record time it took to press a key during video file presentation?
I'm creating a task in which the participant need to stop the video file presented to him whenever he decides to.
Is there a way I can record the exact time it took him to press the key after the video started? (its a short video of 10 seconds, so it needs to be very accurate).
thanks in advance.
Maayan.
1 Attachment(s)
Record time taken to stop a video clip
[quote=Maayan Nagar;19365]I'm creating a task in which the participant need to stop the video file presented to him whenever he decides to.
Is there a way I can record the exact time it took him to press the key after the video started? (its a short video of 10 seconds, so it needs to be very accurate).
thanks in advance.
Maayan.[/quote]
[LEFT][FONT=Arial][SIZE=2]hi Maayan. What you aim to do is possible, and not much syntax. For example, attached I made a very basic 3-line DirectRT experiment with my own video clip, "vidtest.csv". [SIZE=2]
U[SIZE=2]nder the stim column, the video file needs to beg[SIZE=2]in with an underscore[SIZE=2], [/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/FONT][FONT=Arial][SIZE=2][SIZE=2][SIZE=2][SIZE=2][FONT=Arial][SIZE=2]"_yyy.pin.avi"
[/SIZE][/FONT]However the actual file name itself [SIZE=2]does not [SIZE=2]include the underscore[SIZE=2]--in my stim folder it is simpl[SIZE=2]y called "yyy-pin.avi".[/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/SIZE][/FONT]
Next, the video stim needs to include the desired resolution, in this case, "(640x480)" --the parentheses are needed.
Finally, in your experiment folder where you keep the DirectRT experiment file, such as vidtest.csv, for higher color resolution than 16-bit, make a new text file called "colour.txt" , in which you specify 24 or 32-bit, for color resolution.
More details on such instructions are in the DirectRT manual under "Video / Movie / Animation"
The reaction time for how long it takes a given participant to stop the video will be in the Data folder, in each participant's data file under the column RT.[/LEFT]