Jump to content

User Reference:BCI2000Certification

From BCI2000 Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Introduction

BCI2000 includes a certification procedure that can determine whether a computer system is capable of running all or some BCI2000 applications. Because BCI2000 does not have a standardized hardware configuration, i.e., it can run on potentially any PC, this testing procedure is capable of running on any PC with BCI2000, with the results reporting which standard BCI2000 applications meet the minimum timing requirements. Different configurations are included in the certification procedure to test a range of likely setups for a given application, in which timing characteristics such as the sampling rate, inter-stimulus intervals, and stimulus duration, and other parameters, such as the number and size of the stimuli, are changed for each configuration.

This document serves as the instruction manual for using the certification procedure, and describes how the procedure works to determine the timing characteristics of the BCI2000 system. The primary use for the certification procedure is to determine if the PC configuration used with BCI2000 is capable of running the core BCI2000 system, which is comprised of:

  • Support for various biosignal amplifiers, including the g.USBamp, EGI GTEN 200, Nihon Kohden JE120-A, and many more on the ADCs page.
  • The AR, P3, FFT, and Matlab signal processing modules.
  • The CursorTask, P3Speller, and StimulusPresentation application modules.

Additionally, due to the extensibility of BCI2000, researchers who develop custom algorithms and applications can use the certification procedure to determine whether their custom modules are capable of running on a particular PC configuration.

The certification procedure works by comparing the differences in time of when BCI2000 expects an event to occur to when that event actually occurred. These events include a change in the display, an audio output through the system speakers, or an EEG sample being stored in the amplifier buffer. The times at which such events occur are recorded with the amplifier and stored in a data file. Changes in the display are found using an optical sensor and a triggering device. The documentation provided throughout this page uses the g.tec g.TRIGbox, although any device which can provide a digital or analog trigger to the amplifier can be used. The g.TRIGbox is a signal conditioner that generates trigger pulses for various sensors or input signals. When the sensor exceeds a threshold, the g.TRIGbox outputs a digital or analog signal which is recorded on the amplifier. A similar procedure is used for audio detection: the sound output from the PC is input to the g.TRIGbox, and when the volume exceeds threshold, a digital or analog signal is output and recorded by the amplifier. This information can be used because BCI2000 stores a time-stamp for every event during an experiment. The difference between a time-stamp value and the time that the recorded event changes values are compared to find the latency for that particular event.

These latencies can be affected by many external influences, including hardware deficiencies (such as low RAM, slow CPU speed, or a video card of low quality), and other software running in the background while the experiment is being run.

This document serves as the BCI2000Certification manual. As an example, this page will describe the certification procedure for the g.USBamp with visual and auditory stimuli triggered with the g.TRIGbox. At the end of the page, the certification results for using BCI2000 with three biosignal amplifiers (the g.USBamp, EGI GTEN 200, and Nihon Kohden JE120-A) are provided. A discussion and derivation of the specific system latencies are found here.

Video Demonstration

Compiling the BCI2000Certification Programs

The BCI2000Certification procedure actually consists of two separate programs, including a graphical user interface that simplifies the task of selecting and starting tests, and a program that performs the data analysis and returns results. These programs are compiled automatically with the other BCI2000 programs. Compilation is only supported in BCI2000 v3.0 with the Visual Studio or MinGW compilers. Instructions can be found at Programming_Howto:Building_BCI2000. At the point where you start CMake, be sure to check BUILD TOOLS in the BUILD menu.

Check the BUILD TOOLS box to build the certification tester and analysis tool.

Using the BCI2000Certification Procedure

Starting the Tester User Interface

  1. The compiled programs can be found in BCI2000/tools/BCI2000Certification.
  2. Navigate to this folder, and double-click the BCI2000CertificationTester.exe file.
  3. The certification tool opens, as below.

This program shows a list of all of the procedures to be tested for the loaded configuration. Detailed instructions for using the interface follow.

The BCI2000Certification user interface.
The BCI2000Certification user interface.

Loading Configuration Files

The BCI2000 certification procedure uses a configuration file and different combinations of BCI2000 parameter fragments to control the tests. The configuration file (stored as an *.ini file) describes all of the certification tests. The parameter fragments store information about the amplifier and application module applied in each test. More detail about the contents of the configuration file can be found below. While it is possible to edit these by hand, in most circumstances it is simpler to use the graphical user interface provided.

  1. In the BCI2000Certification tool, select File->Open *.ini
  2. Navigate to the folder BCI2000/tools/BCI2000Certification.
  3. Load the file named BCI2000Certification_16ch_100ms.ini if using a 16-channel system. (This tutorial assumes a 16-channel system).
  4. If using more than 16 channels, then the amplifier parameter files must be modified.
    1. Navigate to BCI2000/tools/BCI2000Certification/parms/, and open the file Certification_gUSBamp_24.prm in Notepad.
    2. Find the parameter titled DeviceIDMaster, and replace the existing device ID (e.g., UA-2007.04.12 with the ID of your master device.
    3. Next, find the parameter titled DeviceIDs, and replace the IDs with the IDs of your amplifiers. The first in the list should be identical to the DeviceIDMaster value. For example, you might enter: DeviceIDs= 2 UA-2007.04.12 UA-2006.10.13 (the \#2 corresponds to the number of devices being used).
    4. Repeat these steps for the file Certification_gUSBamp_32.prm.
    5. Note that these steps are not necessary if only one g.USBamp is being used.
  5. All 100 tests in this configuration are loaded into the GUI.

User Interface Components

This section describes each user interface component, referring to the figure below.

The BCI2000Certification user interface components.

1. Configuration: Task List

The task list shows all tasks that have been loaded from the configuration file or created within the GUI. To run a specific test, it should have a checkmark next to it. In order to select or deselect all tasks, press the Select All check box at the bottom of the list.

It is possible to create new tasks, remove tasks, and copy tasks within the interface as well. To create a new task, press the + button. A new task is created at the bottom of the list; the task details must be filled in (described next). It is often easier to copy a similar task than to create a new one from scratch. To do so, select the desired task, and press Copy. The new task should be renamed appropriately. To remove a task, select a task and press the - button.

Creating Custom Tests

With the BCI2000Certification tool, you can test performance on a wide range of different parameters and applications. You can create a custom .ini file that will contain the name of each test, the desired signal processing module, sampling rate, block size, application, and parameter files. You will need to first create a parameter file for the test you wish to run. If you want to be able to edit the block size and sampling rate from the Certification tester GUI or its .ini file, you must omit those variables from your parameter files as they will overwrite any variables you set in the Certification Tester. For example, if you wanted to test an application that you have developed for BCI2000 using several sampling rates and block sizes you would first need to create the two parameter files for the application, and source with no sampling rate or block size specified, then export them to the /BCI2000Certification/parms/ folder. Once you have the two parameter files, you may link to them in a new .ini file located under the /BCI2000Certification/ directory and run them as described below.

2. Configuration: Task Details

The right side of the GUI displays the details of the currently selected task. Each option is described here.

Task Name
The name of the task. This must not contain any spaces, and must be unique.
Signal Source
The amplifier that should be used, if different from the amplifier set in the global options. Generally, this should not need to be used, since all tasks should use the same amplifier.
Signal Processing
The signal processing module that should be started and used for the given task. This should usually be either ARSignalProcessing, P3SignalProcessing, or DummySignalProcessing, depending on the specific application.
Application
The application that is run for the task. This will typically be CursorTask, P3Speller, or StimulusPresentation
Parameters
A list of the parameter fragments that should be used for this task. Typically, at least two parameter files are required. The first should be the amplifier-specific fragment that configures the amplifier for the correct number of channels. The second should be the application-specific fragment that configures how the application appears on the screen. Parameter files can be added and removed with the + and - buttons, respectively. All files should be placed in the BCI2000/tools/BCI2000Certification/parms folder.
Sample Rate
The sampling rate that should be used for this task. Note that it must be supported by the amplifier used.
Sample Block Size
The sample block size (in samples). In the provided parameter files, the sample block size is always equal to 100ms, regardless of the sampling rate.
Amp Channel
This is the analog channel that records the amplifier digital output (i.e., the digital output recorded back in on an analog channel). This signifies the onset of acquisition of a block. This value should be between 1 and the number of channels.
Amp Stream
This is the digital channel that records the amplifier digital output (i.e., the digital output recorded back in on a digital input channel).
Video Channel
The recorded analog channel containing video event markers.
Video Stream
The recorded digital input channel containing video event markers.
Video State
The BCI2000 state that contains the event markers for the video event, e.g., TargetCode or StimulusCode.
Video State Values
A list of state change values that should be detected by the analysis. For example, if values 4 11 are used, then the analysis tool will examine when the StimulusCode state changes to either 4 or 11, and then examine when the Video Channel changes.
Audio Channel
The recorded analog channel containing audio event markers.
Audio Stream

The recorded digital input channel containing audio event markers.

Audio State
The BCI2000 state that contains the event markers for the audio event, e.g., TargetCode or StimulusCode.
Audio State Values
A list of state change values that should be detected by the analysis. For example, if values 4 11 are used, then the analysis tool will examine when the StimulusCode state changes to either 4 or 11, and then examine when the Video Channel changes.

3. Control: Global Settings

The BCI2000Certification user interface.

As the name suggests, the options under Global Settings are applied to all tasks, and are described here.

Window Left, Top
The position of the left and top sides of the application window. If using multiple monitors, this position should take this into account. For example, if the application window is to the right of the main monitor, and the main monitor has a resolution of 1280x1024 pixels, then Window Left should be set to 1280, and Window Top to 0.
Window Width, Height
The width and height of the application window.
Global Signal Source
The executable that should be used by all applications. This value is overwritten by the Signal Source value set for individual tasks.
Data Output Directory
The directory where all of the data should be saved during the task. This will appear relative to BCI2000/tools/BCI2000Certification/, or at a given absolute path. NOTE that if data already exists in this directory, additional data will be saved to it! To avoid combining new data with earlier results, the existing directory with the same name should be renamed or deleted.
BCI2000 Directory
This is the directory containing the BCI2000 program files, e.g., C:\BCI2000\prog
Additional Application Module command line arguments
Additional arguments to add to the command line when starting the application module.
Shell execute before
Execute command in the shell before running the experiment (e.g., taskkill /IM explorer to terminate the explorer shell and taskbar).
Shell execute after
Execute command in the shell after the experiment has finished.

4. Control: Controls

This panel handles starting and stopping the procedure, and running the analysis.

Auto Set Config
Automatically press Set Config upon starting BCI2000. This is required for complete automation of the procedure. When unchecked, BCI2000 will pause after loading parameters, and you will be able to inspect parameters for debugging purposes. You will have to press Set Config manually to proceed.
Auto Start
Automatically start the test after Set Config is pressed. This is required for complete automation of the procedure.
Auto Quit
Automatically quit BCI2000 after each task. This is required for complete automation of the procedure.
Start
Starts the selected tasks.
Analyze
Starts the analysis tool. This uses the directory entered in the Data Output Directory setting. See the documentation for the analysis tool for more information on the analysis procedure.
Progress
While running, a progress bar appears and text provides information about the current running task, and how many tasks remain. The progress bar window includes a Cancel button, which will stop the procedure after the current task finishes.

Setting Up and Running the Certification Procedure

  1. Load the appropriate configuration file, based on the number of amplifiers that you will be using and as described above.
  2. Plug-in and turn on the amplifier(s).
  3. Configure the multi-monitor system, if applicable.
  4. Enter the appropriate screen dimensions under Window Width, etc.
  5. Prepare to place the optical detector on the monitor by using a ring of double-sided tape. The exact placement on the monitor will depend on the tasks used, and will be determined shortly. Plug the detector into the Optical Input A on the g.TRIGbox.
  6. Using a 1/8th in. cable, connect the headphone output on the PC to the Low Level input D of the g.TRIGbox.
  7. Connect the g.TRIGbox Trigger Out (D-Sub connector) to digital I/O 1 port of the g.USBamp using a standard cable provided by g.tec.
  8. Specify the Video Stream as DigitalInput1 and the Audio Stream as DigitalInput4 in the Events Configuration tab.
  9. Alternately, the audio and video event markers can be sampled by the analog channels. In this case you will need to specify the Video Channel and Audio Channel in the Events Configuration tab. In this case, leave the Video Stream and Audio Stream fields empty.
  10. In addition to measuring the latency of visual and auditory stimuli, you can also evaluate the delay of the analog-to-digital converter (ADC). This is done by connecting DigitalOutput1 of the Digital I/O 1 port of the amplifier to the amplifier's digital input or analog input. This requires a custom cable. For details, see the Assembling Required Cables section below. For the g.USBamp, specify the Amp Stream as DigitalInput0 or the Amp Channel as the input channel accordingly.
  11. Next, the location to place the optical detector will be determined. The first task will be run, showing the location on the screen to place the connector.
  12. Press the Start button. BCI2000 will start shortly, and the application window will appear. In this test, the P300 Speller application is shown first.
  13. Place the detector over the "X" on the screen.
  14. Adjust the threshold on the g.TRIGbox for connector A so that it blinks on and off with the appearance of the "X". It may be necessary to turn off the lights in the room so that ambient light does not interfere with the optical detector.
  15. When finished placing the detector and setting the threshold, press Cancel in the BCI2000Certification GUI, and then Quit BCI2000. Navigate to the location of the Data folder (e.g., BCI2000/tools/BCI2000Certification/) and delete the data folder.
  16. Make sure that the computer volume is turned all the way up, and not muted.To set the audio threshold, set audio volume on the computer to maximum. On Windows, to make this process easier in the future, go to the Start menu, click the Control Panel, and go to Sounds. In the Sound window, click the box that puts the volume icon in the task bar. A small speaker should now appear in the bottom-right of the screen in the task bar. Click this icon, and slide the volume up to the max; when you click on this slider, Windows emits a short beep to give an idea of the volume level, which can be used to set the threshold. To do so, make sure that the stereo audio cable is plugged into the g.TRIGbox, and click the slider to emit a sound, checking that the green LED is flashing when you click the slider. If it is not, turn the threshold knob for channel B counter-clockwise, and click the slider again. If it is still not working after several tries, unplug the audio cable from the computer, and check that you can hear the beep through the speakers. If you cannot, make sure that the sound is not muted, and that the sound drivers are properly installed. If you can hear it, plug the audio cable back into the computer audio output (NOT the microphone input), and make sure the g.TRIGbox has power; the light next to the power switch should flash momentarily if the battery levels are OK. You can also use a wall power source (see the g.TRIGbox manual for more information). The threshold is set correctly when the channel B LED is off at rest, and is on when a sound is played.
Connectors schematic.


  1. You are now ready to run all of the tests. To do so, press the Start button on the GUI.
  2. While testing, some tasks may not complete correctly, either because they are too computationally intensive for the selected computer system, or some other mistake or artifact occurred during the test. In this case, BCI2000 can be Quit manually, and the remaining tasks will be run. At the end of all tasks, you can then de-select all tasks, and re-check just the ones that need to be completed. It is necessary to delete data files in the data folder from unusable runs prior to running them again, so that the bad data is not included in the analysis.
  3. When all tasks are complete, press the Analyze button to analyze the collected data. This procedure is detailed later in this document.

Analyzing Data

The BCI2000 analysis tool.

Simply pressing the Analyze button in the Tester will start the Analysis program. It is also possible to run the program in the BCI2000Certification directory by starting BCI2000CertificationAnalysis.exe.

  1. The BCI2000CertificationTester program stores information about how to interpret a session in the session data file itself. From there, it is picked up by the analysis program. You don't have to provide BCI2000CertificationTester .ini files to the analysis program.
  2. The analysis program will open in a new GUI window. When you clicked "analyze" in the tester program, the analyzer's file list is already populated. Otherwise, appropriate folders and files must be entered for this session:
    1. Press the "+" button to select the folder containing your data files. When you select the folder, all data files contained within its subfolders are added automatically.
  3. Finally, set the directory for the output file. Typically, this should be the same folder that contains all of the data files.
  4. When the parameters have been correctly configured, press "Run" to start the analysis, which can take several minutes. Note that debug builds run very slowly, so you should always use a release build for analysis.
  5. When finished, the analysis tool will display results at several levels of detail. On top, a summary is displayed, then a list of requirements is shown, with a global result for each requirement. Further down, results are shown for individual files.
  6. To store results for documentation, you may press Save and Open... to save results to a text file, which can be found in the folder choosen at the bottom left, defaulting to the data folder. The file name will have the format results_(date)_(time).txt. Additionally, this contents of this file will be opened automatically at the end of the process in a new window.

Interpreting Analysis Results

The certification analysis results are shown as the overall result at the top of the analysis tool. In the example below, 33/60 tasks passed, while 27 tasks did not meet the success criteria. Additionally, 48 tasks are missing data, as they do not include auditory stimuli (this is by design). In more detail, the results are segregated into three sections, with overlapping information contained in each section. These sections are Requirements, Performance Statistics, and Individual Tasks. The Requirements section provides details about the global performance of the various certification tests. The success criteria are somewhat arbitrary and are based on our experience measuring response latency in various setups. The Performance Statistics section contains very similar information, with the statistics reported at the top level for easy viewing. Finally, the Individual Tasks section organizes the certification results by task.

The BCI2000 analysis results. Results are described in three sections: Requirements, Performance Statistics, and Individual Tasks.

Navigating into the sub-menu structure provides details about the various tests run, including the stimulus source, the method used to determine the event latency, and the event latency and variance across trials.

The BCI2000 analysis results. Individual Tasks.

The results text file contains detailed results for all tasks. A sample output for a single task is shown here:

The BCI2000 analysis results. The top of the file includes details about the global results.
The BCI2000 analysis results. Throughout the file there are details about each task.


A Note on "Pass/Fail"

The values that determine whether or not a task passes or fails are determined somewhat arbitrarily. For example, we determined that an audio output latency of more than 65 ms is unacceptable for psychophysical research, e.g., BCIs. In the example shown, the audio output latency was ~62 ms for all tasks with audio, and thus these tasks registered as a "pass." However, it is ultimately up to the researcher to determine what is acceptable system timing; this method provides a method of quantifying the system latency values to simplify the process of making these decisions.

You may move the slider near the top of the window in order to display the original GUI elements you saw before clicking "Run". When clicking the checkbox close to "Override requirements", a small editor window appears, containing code for all requirements applied to the data. You may modify requirements there, as you see fit.

Visualizing Certification Test Results using GNUPlot

If you have GNUPlot installed, you can also visualize the distribution of latencies. Simply right-click on the field and select plot.


GNU Plot.

Assembling Required Cables

Depending on what hardware and the latencies of interest are, you may or may not need to assemble custom cables. If you are interested in measuring the audio and visual latency with the gTRIGbox and an amplifier manufactured by a company other than g.tec, you will need to assemble a custom cable going from the output of the gTRIGbox to the digital inputs or analog inputs of your amplifier. It is also possible measure the audio and visual latency without the gTRIGbox, but this will require another trigger onset detection method. If you have a g.tec g.USBamp and want to measure the system latency and the ADC latency, you can follow the following guide.

In the following sections, we provide examples on how to build this cable if you’re using the gTRIGbox and a gUSBamp with a UB serial number (see the gUSBamp digital input page for more information regarding the difference pin assignments between serial numbers). There are two versions of the gTRIGbox, an older legacy version with four 3.5 mm audio connector outputs, and a newer one that has a 15 pin D-sub type connector. We describe the process of building cables for both of these devices.

Legacy gTRIGbox

Connectors schematic.

Amplifier Input

Parts List:

  • 3 Male Mono Audio Connectors
  • 6 12in+ Safety Connector Wires (to USB amplifier input), different colors
  • Soldering Iron and Solder

This section describes how to assemble cables that connect the output of the g.TRIGbox to the amplifier input channels.

  1. Strip the free ends of the 6 safety connector wires (~1/4 in)
  2. Take one wire, and solder the wire to the "signal" pad of one of the mono audio connectors.
  3. Solder another wire to the "ground" pad of the same connector.
  4. If necessary, pass the wires through end of the connector that screws in to cover the connection (see below, in the g.USBamp Amplifier Plug).
g.USBamp Amplifier Plug

Each connector now has a signal and ground wire that can be connector to the g.USBamp inputs, or any amplifier that accepts the standard EEG connector.

Digital I/O Cable

Parts List:

  • 3 Colored Electrical Wires
  • 7-Pin Digital Connector from g.tec
  • Soldering Iron and Solder
  • Silicone or electrical tape for insulation
  • 1 Female Mono Audio Plug

In order to access the digital I/O pins on the g.USBamp, a connector needs to be assembled. The 7-pin digital I/O connector should be ordered through g.TEC, the manufacturer of the g.USBamp.

At least three wires are needed for the circuit, which connect to the digital output 1 pin, the digital input 0 pin, and the ground pin.

g.USBamp Digital I/O Pins
g.USBamp Digital I/O Pins
  1. Strip the ends of the 3 wires (~1/4 in)
  2. Take one wire, and solder the wire to the "signal" pad of the female mono audio connectors.
  3. Solder another wire to the "ground" pad of the same connector.
  4. If necessary, pass the wires through end of the connector that screws in to cover the connection (see below, in the g.USBamp Amplifier Plug).
  5. Solder the ground wire to the center ground pin on the digital I/O connector.
  6. Locate the top of the connector by locating the small plastic notch, and locate pins 3 and 4 relative to the notch.
  7. Solder the signal wire from the mono connector to pin 3 (digital out 1)
  8. Finally, solder the remaining wire (it has not been connected to anything yet) between pin 3 and pin 4. This connects the digital output directly to the digital input.
  9. It may be helpful to insulate the wires from the casing using either a piece of black electrical tape, or an insulating gel, like silicone. If a gel is used, be sure to let it set for several hours or overnight. It is also probably a good idea to check the electrical connection with a multimeter prior to insulating.
  10. Next, attach the rubber sleeve over the end of the part with the female threads, as shown in the panel.
  11. Slide the smaller metal sleeve over the wires, then slide the larger rubber sleeve over the wires.
g.USBamp Digital Wire Plug
  1. For the next step, attach the two metallic pieces that surround the cables, shown laying to the sides in the figure below.
  2. One of the metal pieces has a small groove in it, which should be placed over the notch on the connector; the other metal piece fits on the opposite side of the connector.
  3. Push the small metal sleeve up to the side piece with the groove, and rotate the sleeve until the notch fits in the groove.
  4. Place the end piece over the connector, with the red dot on top and aligned with the connector notch.
  5. Finally, slide the rubber sleeve over the connector, and screw the sleeve into the end piece.
g.USBamp Digital I/O Cable

The plug is assembled next, similar to the. Solder the signal wire from Pin 3 (Digital Out 1) on the digital I/O connector to the signal connector on the female mono plug, and solder the ground wire to the outer ground connector on the plug. The below figure shows this; in this figure, the red wire is the signal wire, and the brown wire is the ground.

Latest gTRIGbox

There are two ways to connect the output of the gTRIGbox to the g.USBamp, “Analog” or “Digital”, as indicated in the figure below. Pins connected by a orange dotted line denote connections that are necessary to measure the amplifier latency.

Connectors schematic.
gTrigBox output schematic.

Digital Configuration

The digital configuration uses digital I/O 1 on the back of the g.tec amplifier. It requires a specific 7 pin g.tec connector that can be ordered from g.tec, the manufacturer of the g.USBamp. Parts list for digital cable:

  1. One 15 pin D-Sub Type Female Connector
  2. One 7 pin Digital Pin Connector from g.tec
  3. Electrical Wire
  4. Soldering Iron and Solder

The D-Sub Type connector can be purchased such that you only need to strip the electrical wires and then insert them to receptacles that tighten with a screwdriver, thus reducing the need for any soldering. This makes the process of assembling the cable easier. In example of this type of connector is shown below:

15 Pin D-Sub Connector with Breakout Board.

In the gUSB Digital Out cables we have seen, here is the coloring of the wires:

DIGITAL I/O CABLE
gTRIGbox Wire Color g.USBamp Digital I/O 1
Blue 7
White 1
Brown 2
Green 3
Yellow 4
Pink 5 or 6
Grey 5 or 6


Procedure for Assembling Cable
  1. Cut 3 pieces of wire, each the same length (about 3 ft should be sufficient).
  2. Strip the ends of these pieces of wire, leaving about a quarter-inch of wire exposed.
  3. Start with the D-Sub connector. Connect each of the pins in gTRIGbox Output column of the table above to its own piece of wire.
  4. Solder the other ends of each of these wires to its appropriate location, as defined in the table above, on the g.USBamp digital I/O connector.
  5. If you also want to measure amplifier latency, strip and solder a piece of wire between pins 1 and 5 on the g.USBamp digital I/O connector.
  6. When assembling the digital I/O connector, it may be helpful to insulate the wires from the casing using either a piece of black electrical tape or an insulating gel, like silicone. If a gel is used, be sure to let it set for several hours or overnight. It is also probably a good idea to check the electrical connection with a multimeter prior to insulating.
  7. Next, attach the rubber sleeve over the end of the part with the female threads, as shown in the panel.
  8. Slide the smaller metal sleeve over the wires, then slide the larger rubber sleeve over the wires.

Analog Configuration

The analog configuration uses the analog inputs on the front on the amplifier to measure latency. To also measure the amplifier latency you will need a specific g.tec connector. Parts list to make analog cable to measure system latency:

  1. One 15 pin D-Sub Type Female Connector
  2. Five Safety Connector Wires (to USB amplifier input)

If you also want to measure amplifier latency, you will also need:

  1. One 7 pin Digital Pin Connector from g.tec
  2. One Additional Safety Connector Wire (to USB amplifier input)
  3. Two resistors for Voltage Divider
  4. Soldering Iron and Solder

If you use the D-Sub connector with a breakout board and do not want to measure amplifier latency, you will not need to do any soldering, making assembly quite easy. Below is a table of what pin connections must be made. The wiring diagram above provides a guide for what pins need to be connected.

Procedure for Assembling Cable
  1. Strip the ends of five wires with safety connectors at one end, leaving a quarter-inch exposed (if you want to measure amplifier latency, strip one additional wire).
  2. Start with the D-Sub connector. Connect each of the pins as shown in the connector schematic to its own piece of safety connector wire.
  3. If you also want to measure amplifier latency, a voltage divider is necessary to bring the 5V output at the gUSBamp's digital output at pin 5 down to a voltage less than 250mV (the max input range on the gUSBamp's analog inputs). Selecting a R1 and R2 such that the following equation is satisfied would result in a 100mV signal at the analog inputs:

0.02=R2R1+R2

  1. Assemble this voltage divider by soldering the resistors, pin 5 on the digital I/O, and additional safety connector together as detailed in the connectors schematic. You can also use a bread board to avoid soldering.
  2. When assembling the digital I/O connector, it may be helpful to insulate the wires from the casing using either a piece of black electrical tape or an insulating gel, like silicone. If a gel is used, be sure to let it set for several hours or overnight. It is also probably a good idea to check the electrical connection with a multimeter prior to insulating.
  3. Next, attach the rubber sleeve over the end of the part with the female threads, as shown in the panel.
  4. Slide the smaller metal sleeve over the wires, then slide the larger rubber sleeve over the wires.

Troubleshooting

Things to watch out for:

  • Parameter files for gUSBamp with channels greater than 16 have pre-defined amplifier IDs. Please set these to your amplifier IDs.
  • BCI2000Certification runs BCI2000 applications from the working directory: C:\BCI2000\tools\BCI2000Certification. The images folder there doesn't contain all required images for CursorTask or a sounds folder for "StimulusPresentation". If necessary, paste the images and sounds folder from the BCI2000/prog directory into the BCI2000/tools/BCI2000Certification directory - overwriting what is currently in that directory.

See also

User Reference:Module Command Line Options, User Reference:Operator Module