Jove
Visualize
Contact Us
JoVE
x logofacebook logolinkedin logoyoutube logo
ABOUT JoVE
OverviewLeadershipBlogJoVE Help Center
AUTHORS
Publishing ProcessEditorial BoardScope & PoliciesPeer ReviewFAQSubmit
LIBRARIANS
TestimonialsSubscriptionsAccessResourcesLibrary Advisory BoardFAQ
RESEARCH
JoVE JournalMethods CollectionsJoVE Encyclopedia of ExperimentsArchive
EDUCATION
JoVE CoreJoVE BusinessJoVE Science EducationJoVE Lab ManualFaculty Resource CenterFaculty Site
Terms & Conditions of Use
Privacy Policy
Policies

Related Concept Videos

You might also read

Related Articles

Articles linked to this work by shared authors, journal, and citation graph.

Sort by
Same author

Prediction-based sensory attenuation is related to prediction-based motor attenuation.

Imaging neuroscience (Cambridge, Mass.)·2026
Same author

Stimulation of the right dorsolateral prefrontal cortex reduces conflict-induced forgetting.

Cerebral cortex (New York, N.Y. : 1991)·2025
Same author

More than a feeling? An expanded investigation of emotional responsiveness in young children with conduct problems and callous-unemotional traits.

Development and psychopathology·2022
Same author

In anticipation of pain: expectancy modulates corticospinal excitability, autonomic response, and pain perception.

Pain·2021
Same author

Expected TMS excites the motor system less effectively than unexpected stimulation.

NeuroImage·2020
Same author

Linking cortical and behavioural inhibition: Testing the parameter specificity of a transcranial magnetic stimulation protocol.

Brain stimulation·2020
Same journal

Corrigendum to "Human peripheral nerve xenografts and rat peripheral nerve allografts implanted to the striatum: Methodology and initial findings of cell-based therapy" [J. Neurosci. Methods 434 (2026) 110825].

Journal of neuroscience methods·2026
Same journal

Sombor-based graph-theoretic framework for the structural characterization of neuro-metabolic organic acids.

Journal of neuroscience methods·2026
Same journal

Pupil-DLC: an open-source deep learning pipeline for scalable, marker-less tracking of pupil dynamics across conscious and unconscious states.

Journal of neuroscience methods·2026
Same journal

Time as the language of Behavior: events, sequences, patterns and meanings.

Journal of neuroscience methods·2026
Same journal

Detection of cochlear microphonic for differential diagnosis between auditory neuropathy mice and noise-induced sensorineural hearing loss mice.

Journal of neuroscience methods·2026
Same journal

Assessment metrics for pain control in rats: A methodological commentary.

Journal of neuroscience methods·2026
See all related articles

Related Experiment Video

Updated: Mar 12, 2026

Stimulating the Lip Motor Cortex with Transcranial Magnetic Stimulation
12:09

Stimulating the Lip Motor Cortex with Transcranial Magnetic Stimulation

Published on: June 14, 2014

19.8K

MagPy: A Python toolbox for controlling Magstim transcranial magnetic stimulators.

Nicolas A McNair1

  • 1School of Psychology, University of Sydney, Australia.

Journal of Neuroscience Methods
|November 17, 2016
PubMed
Summary
This summary is machine-generated.

The MagPy toolbox offers precise, trial-by-trial control over Magstim stimulators for transcranial magnetic stimulation (TMS) experiments. This software, combined with a QuickFire cable, ensures high-temporal precision for advanced research, including TMS combined with fMRI or EEG.

Keywords:
MagstimPythonSerial communicationTMSTimingToolbox

More Related Videos

Non-Invasive Electrical Brain Stimulation Montages for Modulation of Human Motor Function
07:47

Non-Invasive Electrical Brain Stimulation Montages for Modulation of Human Motor Function

Published on: February 4, 2016

13.7K
Utilizing Transcranial Magnetic Stimulation to Study the Human Neuromuscular System
12:19

Utilizing Transcranial Magnetic Stimulation to Study the Human Neuromuscular System

Published on: January 20, 2012

27.6K

Related Experiment Videos

Last Updated: Mar 12, 2026

Stimulating the Lip Motor Cortex with Transcranial Magnetic Stimulation
12:09

Stimulating the Lip Motor Cortex with Transcranial Magnetic Stimulation

Published on: June 14, 2014

19.8K
Non-Invasive Electrical Brain Stimulation Montages for Modulation of Human Motor Function
07:47

Non-Invasive Electrical Brain Stimulation Montages for Modulation of Human Motor Function

Published on: February 4, 2016

13.7K
Utilizing Transcranial Magnetic Stimulation to Study the Human Neuromuscular System
12:19

Utilizing Transcranial Magnetic Stimulation to Study the Human Neuromuscular System

Published on: January 20, 2012

27.6K

Area of Science:

  • Neuroscience
  • Biomedical Engineering
  • Computational Neuroscience

Background:

  • Transcranial magnetic stimulation (TMS) studies often use blocked paradigms, limiting trial-by-trial parameter manipulation.
  • Controlling Magstim stimulators on a trial-by-trial basis is challenging due to command frequency requirements and potential interference with precise stimulus delivery.

Purpose of the Study:

  • Introduce the MagPy toolbox, a Python software package for comprehensive control of Magstim stimulators.
  • Enable precise, trial-by-trial manipulation of TMS parameters without compromising temporal accuracy.

Main Methods:

  • Developed MagPy, a Python software package for serial port control of Magstim stimulators.
  • Designed a "QuickFire" serial cable for low-latency TMS pulse triggering.
  • Validated MagPy's control and timing precision through experimental simulations.

Main Results:

  • MagPy maintained uninterrupted remote control over Magstim stimulators during all simulations.
  • Stimulus delivery timing remained unaffected by MagPy, with precise duration control.
  • The QuickFire cable enabled TMS pulse elicitation with sub-millisecond latencies.

Conclusions:

  • The MagPy toolbox and QuickFire cable provide effective, high-precision control of Magstim stimulators for advanced TMS experiments.
  • This solution facilitates experiments requiring trial-by-trial parameter adjustments and tight temporal synchronization, such as TMS-fMRI or TMS-EEG studies.