Jump to content

Exercise:Logging Devices

From BCI2000 Wiki
Revision as of 23:18, 14 May 2011 by Jhill (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  1. Copy one of the existing batch files and use it as a template to write your own batch file.
  2. In your new batch file, open the Operator, SignalGenerator, DummySignalProcessing and DummyApplication.
  3. Launch BCI2000 using your new batch file.
  4. In the Operator, open the View menu and select States.
  5. Note down the names of the state variables, then quit BCI2000 again.
  6. Edit your batch file such that the source module (in this case SignalGenerator) is started with the User_Reference:Module_Command_Line_Options command-line option --LogMouse=1
  7. Relaunch BCI2000 using the updated batch file, and check the States again. Note that there are now additional state variables, in accordance to what the User_Reference:Logging_Input documentation on the mouse and joystick loggers tells us to expect.
  8. TODO: Work out a way to visualize one's chosen state (ExpressionFilter + visualizations, Matlab, Python, ...)

The following devices are supported on the workshop installations. You can log as many devices simultaneously as the CPU and number of available USB ports will allow (just keep appending the flags). For whichever device(s) you choose, check to see which states are added.

  • To use the mouse or trackpad, use --LogMouse=1
  • To use the joystick, use --LogJoystick=1
  • To use the 5DT Data Glove Ultra, use --LogDataGlove=1
  • To use the Nintendo Wiimote (support for which is currently still unofficial but will be released soon):
    1. Ensure that a Bluetooth dongle is attached.
    2. Press the (1) and (2) buttons simultaneously on the Wiimote. Lights will flash for several seconds, during which the Wiimote is receptive to pairing.
    3. Launch ConnectWiimotes.exe
    4. Wait for the program to find the Wiimote and pair with it.
    5. Since the Windows XP Bluetooth implementation is flaky, verify that the device is connected using the Start menu -> Control Panel -> Bluetooth Devices. You should see an entry for the Wiimote there: if it says "connected" underneath, connection has succeeded. If the word "connected" is absent, it has failed: close the control panel, re-run ConnectWiimote.exe, and re-open the control panel to verify. Repeat until it works.
    6. The Wiimote will now stay connected across multiple BCI2000 sessions, but there will be a constant drain on the batteries. Therefore, please disconnect it as soon as you are no longer using it (go to the control panel again, highlight the Wiimote and click "Remove").
    7. The flag you need when starting your source module is --LogWiimote=1

Support for the Tobii eyetracker will also be released soon.