XID Timing Features

XID devices provide a built-in Base Timer, Reaction Time Timer, and a Trial Alarm. These timing features were implemented for the two following reasons:

  • To make it possible for an application program to present visual stimuli asynchronously. A program can now present a succession of pictures or a movie while the XID device is checking for input. When a button is pressed or voice key is detected, this information is sent to the host computer time stamped.

  • Measuring time on various computers' operating systems is not getting any easier. XID makes the task simpler by relieving the application program from timing a participant's response.

The Base Timer

The Base Timer is always running. Typically, this timer is reset at the start of an experiment or session, and can later be queried at any time to determine how much time has elapsed.

The following commands apply to the Base Timer:
 

Command Send Bytes

What Happens:

Reset Base Timer

e1

The Base Timer is reset to zero

Query Elapsed Time

e3

The XID device sends back e3 followed by four bytes indicating the number of milliseconds that have elapsed since the Base Timer was reset

 

The Reaction Time Timer

The Reaction Time Timer is also always running but works differently from the Base Timer. Typically, this timer is reset at the onset of a trial. The application then continues to do more work or simply waits for the XID device to respond. When the XID device detects input from the participant, it sends that information to the host computer time stamped with the participant's reaction time.
 

Command Send Bytes

What Happens:

Reset Reaction Time Timer

e5

The Reaction Time Timer is reset to zero

 

The Trial Alarm

There are instances when a researcher needs to present trials at exact fixed intervals, e.g. when using an fMRI scanner. XID devices address this requirement by providing a Trial Alarm. The application program sets the alarm's period and the XID device responds by sending bytes TA at the specified interval until the Trial Alarm is stopped.
 

Command Send Bytes

What Happens:

Start Trial Alarm

e2 + value

The Trial Alarm is started. 'value' is the alarm's period in milliseconds, expressed as a binary number.

Stop Trial Alarm

e20000

The Trial Alarm is stopped

Get Trial Alarm Period

_e2

Returns _e2 followed by the current Trial Alarm period

 

 
© Copyright 2010 Cedrus Corporation, P.O. Box 6309, San Pedro, CA 90734 - USA
Toll Free: (800) 233-7871, other: (310) 548-9595. Send us an email or join mailing list