C++#
These examples are not commented. If anything is unclear, have a look at this section where the code is explained in more detail.
In order to run these examples, they must be compiled with a Makefile and run in
conjunction with a Python setup script, all located within the
*/maxlab_lib/
folder created by unpacking ~/MaxLab/share/libmaxlab-*.zip
.
The raw C++ code for the following examples can be found in */maxlab_lib/examples
.
To compile the examples, call make
in the */maxlab_lib/
folder. The examples
will be compiled in */maxlab_lib/build
.
To run each example, first run the compiled executable corresponding to the example
you wish to run. Then, run */maxlab_lib/examples/closeLoopSetup.py
, which will load the electrode
configuration, create all necessary closed-loop stimulation sequences and deliver a
trigger sequence.
Run */maxlab_lib/examples/closeLoopSetup.py
alone to identify the detection channel to pass into the C++
executable.
Triggering of stimulation based on raw amplitude data using a fixed threshold.
Triggering of stimulation based on prefiltered, spikes-only, data.