Psychtoolbox>Datapixx.{mex*} subfunction

Configure digital input transition logging. The log reports rising and falling
edges of the digital inputs, with associated timetags, and is the best way to
monitor button box responses or read parallel port data.
-“bufferBaseAddress” specifies the start of the RAM buffer which should hold the
logged data inside the Datapixx. Use ReadDinLog to upload the logged data from
this address after calling StartDinLog.
-“numBufferFrames” specifies the desired size of the log buffer in the Datapixx
RAM. This buffer is circular, so it must be large enough to hold all logged
transitions between successive calls to ReadDinLog. newLogFrames returned by
GetDinStatus indicates the number of transitions logged since the last call to
Note that the first call to StartDinLog must be preceeded by a call to SetDinLog
to initialize and clear the log. Once SetDinLog has been called, StartDinLog and
StopDinLog may be called multiple times to enable and disable logging.
Note that logged timetags are implemented in hardware with microsecond
See DatapixxSimonGame, DatapixxDin*Demo files for examples.

###See also: EnableDinDebounce, StartDinLog, StopDinLog, GetDinStatus, ReadDinLog