Preprint Article Version 1 Preserved in Portico This version is not peer-reviewed

MAGIC: a MATLAB Toolbox for External Control of Transcranial Magnetic Stimulation Devices

Version 1 : Received: 2 May 2018 / Approved: 3 May 2018 / Online: 3 May 2018 (08:45:50 CEST)

How to cite: Habibollahi Saatlou, F.; Rogasch, N.C.; McNair, N.A.; Biabani, M.; Pillen, S.D.; Marshall, T.R.; Bergmann, T.O. MAGIC: a MATLAB Toolbox for External Control of Transcranial Magnetic Stimulation Devices. Preprints 2018, 2018050057. https://doi.org/10.20944/preprints201805.0057.v1 Habibollahi Saatlou, F.; Rogasch, N.C.; McNair, N.A.; Biabani, M.; Pillen, S.D.; Marshall, T.R.; Bergmann, T.O. MAGIC: a MATLAB Toolbox for External Control of Transcranial Magnetic Stimulation Devices. Preprints 2018, 2018050057. https://doi.org/10.20944/preprints201805.0057.v1

Abstract

The capacity to externally control transcranial magnetic stimulation (TMS) devices is becoming increasingly important in brain stimulation research. Here we introduce MAGIC (MAGnetic stimulator Interface Controller), an open-source MATLAB toolbox for controlling Magstim and MagVenture stimulators. MAGIC includes a series of MATLAB functions which allow the user to arm/disarm the stimulator, send triggers, change stimulator settings such as amplitude, interpulse intervals, and frequency, and receive stimulator setting information via a serial port connection between a computer and the stimulator. By providing external control capability, MAGIC enables greater flexibility in designing research protocols which require trial-by-trial changes of device settings to realize a priori trial randomization or interactive ad hoc adjustment of parameters during an ongoing experiment. MAGIC thus helps to prevent experimental confounds related to the block-wise variation of parameters and facilitates the integration of TMS with cognitive/sensory tasks, and the development of more adaptive brain state-dependent brain stimulation protocols.

Supplementary and Associated Material

Keywords

TMS; remote control; serial port; MagVenture; MagStim

Subject

Social Sciences, Behavior Sciences

Comments (0)

We encourage comments and feedback from a broad range of readers. See criteria for comments and our Diversity statement.

Leave a public comment
Send a private comment to the author(s)
* All users must log in before leaving a comment
Views 0
Downloads 0
Comments 0
Metrics 0


×
Alerts
Notify me about updates to this article or when a peer-reviewed version is published.
We use cookies on our website to ensure you get the best experience.
Read more about our cookies here.