McNair Nicolas A
School of Psychology, University of Sydney, Australia.
J Neurosci Methods. 2017 Jan 30;276:33-37. doi: 10.1016/j.jneumeth.2016.11.006. Epub 2016 Nov 13.
To date, transcranial magnetic stimulation (TMS) studies manipulating stimulation parameters have largely used blocked paradigms. However, altering these parameters on a trial-by-trial basis in Magstim stimulators is complicated by the need to send regular (1Hz) commands to the stimulator. Additionally, effecting such control interferes with the ability to send TMS pulses or simultaneously present stimuli with high-temporal precision.
This manuscript presents the MagPy toolbox, a Python software package that provides full control over Magstim stimulators via the serial port. It is able to maintain this control with no impact on concurrent processing, such as stimulus delivery. In addition, a specially-designed "QuickFire" serial cable is specified that allows MagPy to trigger TMS pulses with very low-latency.
In a series of experimental simulations, MagPy was able to maintain uninterrupted remote control over the connected Magstim stimulator across all testing sessions. In addition, having MagPy enabled had no effect on stimulus timing - all stimuli were presented for precisely the duration specified. Finally, using the QuickFire cable, MagPy was able to elicit TMS pulses with sub-millisecond latencies.
The MagPy toolbox allows for experiments that require manipulating stimulation parameters from trial to trial. Furthermore, it can achieve this in contexts that require tight control over timing, such as those seeking to combine TMS with fMRI or EEG.
Together, the MagPy toolbox and QuickFire serial cable provide an effective means for controlling Magstim stimulators during experiments while ensuring high-precision timing.
迄今为止,操纵刺激参数的经颅磁刺激(TMS)研究大多采用组块范式。然而,在Magstim刺激器中逐次试验地改变这些参数很复杂,因为需要向刺激器发送规则的(1Hz)命令。此外,实现这种控制会干扰发送TMS脉冲或同时以高时间精度呈现刺激的能力。
本文介绍了MagPy工具箱,这是一个Python软件包,可通过串口对Magstim刺激器进行全面控制。它能够保持这种控制,而不会对诸如刺激传递等并发处理产生影响。此外,还指定了一种专门设计的“快速触发”串口电缆,使MagPy能够以极低的延迟触发TMS脉冲。
在一系列实验模拟中,MagPy能够在所有测试环节中对连接的Magstim刺激器保持不间断的远程控制。此外,启用MagPy对刺激定时没有影响——所有刺激都精确地呈现指定的持续时间。最后,使用快速触发电缆,MagPy能够以亚毫秒级的延迟引发TMS脉冲。
MagPy工具箱允许进行需要逐次试验操纵刺激参数的实验。此外,它可以在需要严格控制时间的情况下实现这一点,例如那些试图将TMS与功能磁共振成像(fMRI)或脑电图(EEG)相结合的实验。
总之,MagPy工具箱和快速触发串口电缆为实验期间控制Magstim刺激器提供了一种有效的方法,同时确保了高精度的定时。