Jump to content

Contributions:LiveAmpADC

From BCI2000 Wiki
Revision as of 11:45, 17 January 2017 by Ratko (talk | contribs)

LiveAmpADC

Function

The LiveAmpADC filter acquires data from a LiveAmp wireless (Bluetooth) amplifier. The LiveAmp is an amplifier/digitizer combination from Brain Products. Support for this device in BCI2000 consists of a BCI2000-compatible Source Module (LiveAmpSource.exe).

LiveAmp Hardware

Either up to 32 referential EEG/ExG channels (with either passive or active electrodes) or up to 24 EEG/ExG referential channels plus up to 8 bipolar ExG channels (with passive electrodes only).\\ 8 AUX channel can be attached to AUX input, using AUXbox. Tehre si one Trigger channel and 8 Digital I/=. There are built-in 3-axis acceleration sensor with 3 separate channels (x, y, z).\\ More on hardware can be found at: LiveAmp Technical details.

Installation

The BlueTooth dongle UBT21 must be installed first. The driver comes with the LiveAmp.

Parameters:LiveAmpADC

Parameters common to all source modules are described under User Reference:DataIOFilter. In addition, the LiveAmpADC provides the following parameters:

SerialNumber

Each LiveAmp has the serial number. The serial number can be found on the back of the amplifier. This number must be set as a parameter (without letters "LA-"). It is necessary for the Bluetooth connection

SourceCh

The total number of channels: EEG + AUX + Acc + Triggers.

SampleBlockSize

Samples per channel per digitized block. Together with the sampling rate, this parameter determines how often per second data are collected, processed, and feedback is updated. For example, at 500 Hz sampling and a SampleBlockSize of 20, the system (e.g., source signal display, signal processing, and stimulus presentation) will be updated 25 times per second.

SamplingRate

The sample rate of the system. All data is either acquired at 250, 500 or 1000Hz In case you are experiencing problems by higher sampling rates (e.g., data loss, jerky display, etc.), increase the SampleBlockSize so that you are updating the system less frequently (usually, updating the system 20-30 times per second is sufficient for most applications), and increase Visualize->VisualizeSourceDecimation. This parameter will decrease the number of samples per second that are actually drawn in the Source display.

SourceChGain

Gain for each channel.

SourceChOffset

Offset for each channel.

ChannelNames

Names of each channel.

AcquisitionMode

Data acquisition mode, it can be: inactive, analog signal acquisition and test signal.

Parameters:LiveAmp

EegChList

List of indexes of EEG channels used.

SourceChList

The list of channels that should be acquired from the vAmp device. The total number of channels listed should correspond to SourceCh. The order of channels does not matter; i.e., '1 2 3 4' is the same as '2 3 1 4'. The channels are always in ascending order. Channels may not be listed twice; e.g., entering '1 2 3 4 5 6 7 1' if SourceCh = '8' will result in an error. If this parameter is left blank (the default), then all channels are acquired. For the V-Amp 16, channels 1-16 are EEG channels, 17-18 are Auxiliary channels, and 19 are the 8 digital channels stored in bits. For the V-Amp 8, channels 1-8 are EEG channels, 9-10 are Auxiliary channels and 11 is the digital channel.

AcquisitionMode

  • If set to analog signal acquisition, the V-Amp records analog signal voltages (default).
  • If set to high-speed acquisition, the V-Amp records analog signals at 20 kHz instead of 2000 Hz.
  • If set to Calibration, the signal output is a square wave test signal generated by the V-Amp (which can be used to verify correct system calibration).
  • If set to Impedance, impedance data is recorded instead of the signal. The impedance values are showm in the V-Amp display. Values are currently updated 3 times per second.
  • If set to high-speed calibration, a square wave is generated at 20 kHz.

Additional Information

Data Storage

  • The signal is originally recorded from the V-Amp as 32-bit integers, and converted into μV.
  • The auxiliary input units are in volts.
  • (SourceChOffset is assumed (and required) to be zero for all channels.)

BCI2000 Signal Processing or any offline analysis routine can derive, as with any other BCI2000 source module, sample values in μV by subtracting, from each stored sample, SourceChOffset (i.e., zero), and multiplying it with SourceChGain for each channel. If SignalType is set to float32, data samples are stored in units of μV. In this case, SourceChGain should be a list of 1's (because the conversion factor between data samples into μV is 1.0 for each channel). Still, when values other than 0 and 1 are specified, a consistent data file will be produced, i.e. values will be transformed before they are written to the file, such that applying SourceChOffset and SourceChGain will reproduce the original values in μV.

V-Amp Service Troubleshooting

Please note that when BrainVision Recorder was running on the computer before you are using BCI2000 there is a daemon service called "VAmpService.exe" running in background on the computer. This service must be stopped before using V-Amp amplifier.


In order to stop the “VAmpService.exe”, the following steps need to be done:

1. Open Windows Start menu by clicking on icon in left-bottom corner.

2. In Windows Start menu type Services, and click on „Services“ when it appears in the menu.


3. Service window opens, showing the list of services running on your PC.

4. Search for the „VAmpService“ in the list.

5. Right-click on „VAmpService“ and the drop-down menu will appear.

6. From the drop-down menu select “Stop”. This action stops the service.

Now you can use V-Amp device.


A more convenient way to solve this problem is to edit the *.bat-file for your experiment like described below, especially if you are using BCI2000 and BrainVision Recorder alternately. This avoids problems with BrainVision Recorder that you might encounter when killing the "VampService.exe" process.

start C:\Vision\Recorder\VAmpService.exe -Uninstall
cd ..\prog
start vAmpSource.exe 127.0.0.1
start ARSignalProcessing 127.0.0.1
start CursorTask.exe 127.0.0.1
operator.exe
start C:\Vision\Recorder\VAmpService.exe -Install
cd ..

Make sure that the path to "VAmpService.exe" is correct on your system. Please keep in mind that you have to customize the *.bat-file shown above regarding your experiment. For using the V-Amp in the way described, the highlightened parts are important. Please note that the commandline-window will stay open during the usage of BCI2000 (unlike when using the other *.bat-files) because of the operator.exe is started without the "start"-parameter. This is necessary to make sure that the VAmpService.exe process is started again just when BCI2000 is closed.

See also

User Reference:Filters, Contributions:ADCs