Fig. 5: DBScope internal structure.

The toolbox was designed using an object-oriented programming framework. Upon initialization, the class NCNPERCEPT_BATCH separates the loaded files in patients (each containing one or several files). Each file gives rise to a NCNPERCEPT_FILE object. These objects contain six classes, each with its own properties and methods. Each class is named after the type of recording that it can access. The WEARABLES_EXTERNAL class handles additional data that is not present within the neurostimulator files and needs to be loaded separately afterward. COMMON_METHODS is an auxiliary class that runs background methods.