triggering TMS machine via serial port (com1)

B de Haan bianca.de-haan at klinikum.uni-tuebingen.de
Wed Jan 10 15:10:38 UTC 2007


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
<http://listserv.linguistlist.org/cgi-bin/wa?A2=ind0609E&L=EPRIME&P=R2&I=-3>
&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/167ed327/attachment.htm>


More information about the Eprime mailing list