EEGDEV-OPEN-OPTIONS(5)

πŸ’– EEGDEV-OPEN-OPTIONS πŸ’–

okay bestie, welcome to the EEGDDEV library manual entry for eegdev-open-options β€” it's giving "how do I even tell this thing what to open??" energy, and I'm here to explain it all. no cap. 🫢


✨ NAME ✨

eegdev-open-options β€” Device configuration format specification 🌸


πŸŽ€ DESCRIPTION πŸŽ€

πŸ¦‹ Syntax of the configuration string

bestie, your device configuration string needs to follow this exact syntax, okay?

device[[|option1|value1]...[|optionN|valueN]]

so here's the tea β˜• β€” if the device you specified does not support a certain pair of option|value, this will be silently ignored by the opening function. like, no drama, no error, it just moves on. πŸ’…

and device should be the name of a eegdev plugin, or any. in that later case, it will try to open one of the devices supported by the installed plugins. so any is the main character that works with everybody ✨

🌈 Syntax of the configuration files

configuration files are made of statements β€” at most one per line β€” following this syntax (whitespace are ignored):

option = value

and comments are preceded by the # character, iykyk:

# comment line 1
# comment line 2
option = value #comment2

πŸ“ FILES πŸ“

  • /etc/eegdev/eegdev.conf β€” Shared configuration file. πŸ’–
  • /etc/eegdev/<plugin>.conf β€” Configuration file loaded when the plugin <plugin> is used. The settings specified here overrides the settings in the shared configuration file. (yes bestie, this one wins the argument πŸ‘‘)

⭐ EXAMPLES ⭐

🧚 Configuration string examples

Device sourcing its data from the GDF file located at "/home/user/data.gdf":

datafile|path|/home/user/data.gdf

Biosemi device configured to use 32 electrodes:

biosemi|numch|32

gTec system consisting in a chain of 2 systems (the first 2 available) with a notch filter at 60Hz without lowpass or highpass sampling at 512Hz (default sampling rate):

gtec|notch|60|lowpass|none|highpass|none|deviceid|any+any

Any supported type of device but should have the serial number UB-2009.10.06 if it is a gTec system:

any|deviceid|UB-2009.10.06

πŸ’€ Configuration file example

# gTec configuration examples
notch  = 60 # Notch value for USA
lowpass =none
highpass=none

 # Specify a coupled system by default
deviceid = any+any

πŸ”₯ SEE ALSO πŸ”₯

egd_open(3) β€” go read it, bestie, it's the whole reason you're configuring anything at all 😭


and that's the whole vibe check, fr fr. every flag, every path, every #, all accounted for. ✨

this page was brought to you by EPFL, circa 2011, and it's still iconic.** πŸ’œπŸ’