Open hungshao opened 7 months ago
Hi!
thank you for contacting us. Can you please let us know about the Matlab version you are using? If there's any warning or error - a screenshot will also help.
The sequence of events also helps, first you should connect, then arm, then set amplitude, then fire.
The fire will only work if your remote control settings on the magstim are active, so perhaps check those too!
Best, Umair
Thanks so much for the speeded reply. Sorry, I should have provided more info. The Matlab version is 2022a
Here is my code:
When I look at the output from line 9 ([status, out] = magstimObject.fire();
), status is 0 and out is an empty [].
Only one warning showed up after running the connect code and it said "serial will be removed in a future release, Use serialport instead".
How do I check whether the remote control settings are active?
Okay, this serialport is a known issue, can you please use a 2017 ir 2018 matlab version and let us know if this script worked there? this will be a huge help!
Hi, I just tested this code using Matlab 2018b and it still does not trigger the pulse. The serialport warning is gone though.
Okay, so the problem is probably caused by something else. I tried that, and everything works on my end, therefore the problem is most likely in the peripheral. I can join you online to look into this together.
Thank you so much. I will send you an email.
Hi team, Thank you so much for creating this MAGIC. I am trying to connect a computer (Dell PC) with MagStim 200 TMS device. I am able to arm and disarm the TMS device as well as setting the amplitudes by using the code you provided. However, after I execute
magstimObject.fire()
, the TMS did not deliver the pulse. Instead, I have to manually click the button on the TMS coil to fire.Given that I can arm/disarm and adjust the amplitude using code, I am not sure if the issue is on the hardware cable setup or is on the code part. Greatly appreciate any suggestions/pointers on how to fix this issue.