Fig. 7

Experimental workflow. An experiment is performed by a script executing a loop on the control PC. The dark gray boxes represent flexible code blocks, allowing the user to implement their own algorithms and methods. During the experiment, the mTMS device waits for instructions from the PC while maintaining clock synchronization with the EMG/EEG device