Data Collection Procedure.
The sequence of events per run:
- User at the master computer: pick a stimulus, pick or set stimulus parameters, pick or
set DAQ parameters, hit "Start" button.
- Master computer: connect to the main database, check for active electrodes, add a new
record to the datafile table. Link datafile to the electrode location using the info on
active electrodes.
- Master computer: send the DAQ settings and the command to the DAQ server to start data
acquisition.
- DAQ server: start data acquisition.
- Master computer: wait for about 1 sec to make sure the recording starts before the video
presentation.
- Master computer: add a new record to the stimulus table. Set the stimulus parameters on
the video server and send the command to the video server to start the display. Poll the
state of the video server waiting for the stimulus to finish.
- Video server: calculate the stimulus image (if needed) and start displaying. When done
with the presentation, reset the busy flag, indicating that
the presentation is over.
- Master computer: when the current presentation
is over, check if there are more presentations in
the current run. If so, repeat steps 6-8.
- When the run is over send the command to the DAQ server to stop DAQ.
Inform the user that the run is over.
Now we have:
- On the DAQ server: a datafile written to the disk. The file contains electrode voltage
traces and the video synchro signal.
- In the main database:
- a record in the datafile table containing the filename, DAQ parameters, stimulus type,
etc.
- Ne records in the link table linking the file to the electrode locations. Ne
- is the number of active electrodes during the run.
- Np records in the stimulus table (each stimulus type is using its own table)
containing the stimulus parameters and the timestamp. Np - number of presentations in the run.
The terms:
- presentation - one video stimulus
presentation.
- run - a sequence of presentations recorded in the
same file.