BrainAccess Viewer

The BrainAccess viewer application visualizes the readings from electrodes, accelerometer and digital input sources and also plots data from raw MNE structured .fif file format. Accompanying this application is a configuration file view.yml that holds the parameters of adjusting the execution of the viewer.

To let the viewer connect to the device, the hardware section in configuration file should be provided with the right port information, as per the operating system in use. The following is how view.yml requires it:

hardware:
    win_port: "COM3"
    linux_port: "/dev/rfcomm0"

Each of the functionalities and their parameters are described below in the following sections.

Stream

The streaming window plots stream of data from electrodes, accelerometer and digital input sources. Along with the stream, the streaming window also plots the power spectral density of the signals. By default the main source is data stream from electrodes, by pressing the Toggle Source button, the source can be switched to accelerometer and digital inputs. The power spectral density plot switches along with the source. Additionally the duration of the streaming data can be adjusted with the provided buttons.

The configuration file lets adjust the streaming functionality with the following parameters:

  • duration: Sets the duration to plot, ranging from 1 to 20 seconds.

  • save_stream: If set to True, saves the streamed data on closing the streaming window.

  • filter_on: Turns on signal filtering.

  • filter_low: Filter low frequency value.

  • filter_high: Filter high frequency value.

  • avg_ref: Setting to True sets the reference to average of all electrodes.

  • channel_labels: Each channel can be relabeled in the viewer by setting values in this section of the configuration file.

Plot Impedance

The impedance values from each electrode is plotted here in a new streaming window. All channels are plotted if no channels are specified in the channel_labels in the configuration file, but if one or more are specified, only the specified ones are plotted.

The configuration file lets setting of the following parameter:

  • save_imp: If set to True, streamed reading of impedance values is saved on closing the impedance window.

Plot File

Creates a plot of raw MNE file of the .fif format.