Example Code

LabVIEW OpenBCI Toolkit

OpenBCI Toolkit

 

OpenBCI stands for open-source brain-computer interface (BCI). The OpenBCI Board V3 is a versatile and affordable analog-to-digital converter (Texas Instrument’s ADS1299) that can be used to sample electrical brain activity (EEG), muscle activity (EMG), heart rate (ECG), and more. It is compatible with any type of electrode and is supported by an ever-growing, open-source framework of signal processing applications. http://openbci.com/

 

Communication between the OpenBCI V3 board and the computer is wireless and is carried on by the OpenBCI DONGLE.

This toolkit implements the OpenBCI communication protocol in LabVIEW to write (configuration) and read (configuration, raw EEG data and acceleration data) from the OpenBCI board V3. There are two harware versions for the board: 8bit (based on ATmega328P) and 32 bits (based on PIC32MX250F128B); both versions possess 8 channels than can be extended to 16 channels using the OpenBCI Daisy Module. OpenBCI Hardware

 

Update:
This toolkit (v 1.1.2) has been tested in the 8bit and 32bit versions with 8 and 16 channels.

 

 

 

Thanks to Cervologix and J Frey for providing the OpenBCI V3 boards


Instructions.

 

1. Make sure your FTDI drivers are installed and up-to-date

2. Plug in your OpenBCI USB Dongle (Switch 1 should be in GPIO_6 position)

3. Plug in your 6V AA batter pack (with batteries)

4. Switch your OpenBCI board to PC

See this Tutorial for more details in the steps 1 - 4. OpenBCI Gettign Started

 

5. Download and install the LabvVIEW OpenBCI Toolkit (package below)

6. Open the example provided
<Labview>\examples\OpenBCI\Examples\simple_continous_read.vi

7. Select the COM port for your OpenBCI DONGLE

8. Select the number of channels in the board (8 or 16 with the OpenBCI Daisy Module)

9. Run the VI

 

The source files for this Toolkit are available on GitHub: https://github.com/rcassani/OpenBCI-Toolkit-LabVIEW

If you find any bug with another board or with the OpenBCI Daisy Module, write us: https://github.com/rcassani/OpenBCI-Toolkit-LabVIEW/issues

INSTALLATION

 

To install the OpenBCI Toolkit for LabVIEW, the VI Package Manager by JKI is needed.

  1. Download and install VI Package Manager
  2. Download and install the last VI package (.vip) for the OpenBCI Toolkit for LabVIEW from here

 

Raymundo Cassani

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
rcsofficial
Member
Member
on
Hello, I've tried using this but it provides no graph whatsoever. The console is too fast to read, although I was able to capture it saying "Board RFDuino buffer overflowed. Soft reset command sent to board." Any idea how to fix this?
Contributors