Realtime Head-Tracking for Adjusting Head Position

This program is designed to capture head position information from the CTF MEG system and display a scalp surface relative to the sensor helmet. The acquisition workstation runs the FieldTrip program acq2ftx and a second computer runs Brainstorm and the FieldTrip buffer program. The acquisition workstation and the second computer need to be connected to each other either across the same network or a direct computer-to-computer network connection.

System Setup:

On the second computer, Brainstorm and Fieldtrip should be installed in the same location. On the MEG acquisition workstation, acq2ftx should be installed. Please see http://fieldtrip.fcdonders.nl/development/realtime for more information about the realtime FieldTrip buffer.

How to use:

  1. On the second computer, start Brainstorm
  2. Start Brainstorm Headtracking Program
    1. In the Matlab command window type bst_headtracking(<hostIP>,<TCPIP>) where <hostIP> is the IP address of the acquisition workstation and <TCPIP> is the TCP/IP port (typically 1972).

    2. When prompted, select the POS file (headshape points file) corresponding to the current subject
    3. The headpoints will be added, click OK
    4. Wait for the prompt: BST> Waiting for acquisition to start...

  3. Start ACQ Headtracking
    1. On the acquisition workstation, select a protocol that includes Continuous Head Localization or enable the functionality in the current protocol (Settings > Channel Settings > Localization > continuous)

    2. Start the ACQ Headtracking program from a terminal (see the FieldTrip documentation for more information about running this application).

ex: acq2ftx ‘10.0.0.2’:1972:RE:1:HLC0011,HLC0012,HLC0013,HLC0021,HLC0022,HLC0023,HLC0031,HLC0032,HLC0033 where 10.0.0.2 should be the IP address of the second computer.

  1. Wait for the program to start. The following is displayed in the terminal window when ready:
  2. Start the acquisition. Do not localize the head or begin recording during the head tracking.
  3. A Brainstorm figure will appear on the second computer. Adjust subject as needed.
  1. To Stop the ACQ Headtracking Program:
    1. Close the Brainstorm Figure (second computer)
    2. Abort data acquisition (ACQ workstation)
    3. Close the ACQ Headtracking terminal (ACQ workstation)

Tutorials/TutRealtime (last edited 2013-03-18 19:19:15 by wpa162133)