| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#C) The Get Timed Key Response pauses Cogsys until the subject presses a key, or until a specified time limit is reached. If no character is pressed within a given time limit, '&' is recorded as the key pressed, and Cogsys procedes processing the testlist. Either way, the Cogsys response key and response time variables are updated.
If the "@" key is pressed before the time limit has expired, the experiment is terminated.
#C
#Climit
limit is a timelimit
@C Testing the Timed Key Response \#C command. #W3000 Press the 'z' key.#C10000 You pressed the '$SV7' key after $SV5 milliseconds. #W3000 This has been an illustration of the \#C command, using \#C10000 to timeout after 10 seconds of no keyboard input. #W5000 Now press the 'z' key after waiting 5 seconds.#C3000 The '$SV7' key was sent to output after $SV5 milliseconds. This has been an illustration of the \#C command, using \#C3000 to timeout after 3 seconds of no keyboard input. #W4000 Done. Press any key to exit.#R |
Press a key within 5 seconds: #C5000
z200
Press a key within 5 seconds: #C5000
&5000
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |