triggering TMS machine via serial port (com1)

Marilyne Ziegler marilyne at psych.utoronto.ca
Wed Jan 10 17:14:04 UTC 2007


WritePort &H378, 0
Sleep 5
WritePort &H378, 255
Sleep 5
WritePort &H378, 0
c.setattrib "startscanner", Clock.ReadMillisec
We use this to start a MRI Scanner through the parallel port...seems to work... off on off...I guess. 
Marilyne ZieglerMarilyne Ziegler
Research Officer
Human Neuropsychology and 
         Cognitive Sciences Lab
Dept of Psychology
University of Toronto
100 St. George St. 
Toronto, Ontario
marilyne at psych.utoronto.ca
1-416-978-7029
  ----- Original Message ----- 
  From: B de Haan 
  To: eprime at mail.talkbank.org 
  Sent: Wednesday, January 10, 2007 10:10 AM
  Subject: triggering TMS machine via serial port (com1)


  Hi all,

   

  I would like to trigger a TMS machine (Magstim SuperRapid) in E-prime via the serial port and somehow nothing I try works. Is there anyone out there who has successfully managed this? 

   

  I have tried:

   

  1) Similarly to the logic when triggering the LPT1 port, adding a bit of inline script after the stimulus: 

  WritePort &H03F8, 255

  WritePort &H03F8, 255

  WritePort &H03F8, 255

  WritePort &H03F8, 0

  Adding the port as device never used to be necessary when I used the parallel port, but I tried it in all possible permutations of with/without adding a port device and with/without adding a serial device

   

  2) I tried the solution mentioned in the post on http://listserv.linguistlist.org/cgi-bin/wa?A2=ind0609E&L=EPRIME&P=R2&I=-3

   

  3) I tried using all the SerialWrite methods (Serial.WriteByte, Serial.WriteInteger, Serial.WriteLong, Serial.WriteString), although I must confess I was not always sure how to use these commands to set the serial port to HIGH. This again I tried with all possible permutations of with/without adding a port device and with/without adding a serial device.

   

  So, can anyone help me? I never had any problems with the Magstim Rapids, since they are triggered via the parallel port, but somehow I cannot manage to get a trigger through the serial port. Is there anyone out there using the new Magstim SuperRapids together with E-prime (or anyone else who might have an idea as to what I am doing wrong)?

   

  Any help would be greatly appreciated,

   

  Bianca de Haan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20070110/526fefb5/attachment.htm>


More information about the Eprime mailing list