Skip to content

.cfg file

aortega255 edited this page Jul 28, 2020 · 3 revisions

The .cfg files are used to store pre-defined information about the hardware configuration. Their main purpose is to have several configurations ready in case there are multiple fNIRS devices connected to the host computer. It is always necessary to load a .cfg file to run ninjaGUI, as the file will determine several aspects of the GUI.

.cfg files are binary files in the Matlab format. Thus, they can easily be loaded in Matlab with the 'load' command. They simply contain a structure called devinfo. The structure devinfo contains the following twelve fields:

  • devID
  • commPort
  • auxList
  • nSrcs
  • nDets
  • LaserPowerControl
  • AdjustableGain
  • AdustableRate
  • Rate
  • nLambda
  • Wavelengths
  • nAux