[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.3.6.4 Scope Timed Response (#T)

The Scope Response command displays a string of characters on the scope and waits for a response. It writes the key and time to output. If no response is made within the specified time limit, TIMEUP_RESP_CHAR is written to output.

The text is written to the scope with the attributes set by Set Scope Attributes.

Scope Timed Response will terminate Cogsys execution of the experiment if the (BREAKOUT_CHAR) key is entered.

Name:
Scope Timed Response
Class:
Scope
Code:
#T
Syntax:
#T[timelimit,text]
timelimit is an integer from 0 to (FAIRTIME)
text may not contain the `]' character
System:
Displays text on the scope with the current scope text attributes. Waits up to timelimit milliseconds for a response, then writes the response to output. Cogsys variable (COGVAR_KEY) is updated with the key pressed. Cogsys variable (COGVAR_TIME) is updated with the reaction time.

Output:
The key pressed and time are written to output. If the timelimit limit is reached before a key is pressed, `' (TIMEUP_RESP_CHAR) is written as the key pressed, and limit as the time.
Breakout:
YES
History:
Before Cogsys 3, the timelimit variable appeared before the opening bracket.

Test Files:
`SCTR_T01.IN'
tests basic operation

Examples:

input
#T[250,hi there]
cogsys
Displays the string `hi there' on the scope with the current attributes.
subject
Presses the z key after 100 milliseconds.
output
z100

input
#T[250,hi there]
cogsys
Displays the string `hi there' on the scope with the current attributes.
subject
Does nothing withing 250 milliseconds.
output
250



This document was generated by Usman Muzaffar on June, 28 2000 using texi2html