Skip to content
/ MagPy_UI Public

Remote Magstim device control UI over the serial based on magpy

License

Notifications You must be signed in to change notification settings

ruhid/MagPy_UI

Repository files navigation

MagPy_UI

This simple UI is created for our projects in Transcranial magnetic stimulation (TMS) laborotory, and used to control over the serial Magstim TMS device based on original work of MagPy by nicolasmcnair which helped a lot for saving time required for study time.

Installation

Installation requires PyQt and MagPy with it dependecies

git clone https://github.com/ruhid/MagPy_UI
python -m pip install './MagPy_UI'

If some error happens, installation of pyserial and PyQt5 for your system will be enough

Tested on Windows, Linux and MacOS Monterey(Installing PyQt5 on apple silicon can be a bit tricky, but possible. Follow online instructions).

Using

Run run_magremote.py file, choose serial port for magstim devices, wait cuple of seconds for connection.

Screenshot
Screenshot

  • ARM: arms coils
  • FIRE: fires TMS stimulus. It is for control purposes only, but may be for simultaneous EMG recording trigger out of Magstim devices can be used. Needs to be tested.
  • SYNCRONISE: syncronises settings between device and program
  • SET: this button is redundant, al the parameters is setted on the go

LCD numbers show feedback from device Coil status.

Issues

  • Sometimes serial connection can drop and it freezes UI, may be it is related to my serial devices
  • Disconnection doesn't work properly

About

Remote Magstim device control UI over the serial based on magpy

Resources

License

Stars

Watchers

Forks

Packages

No packages published