<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE>@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 70.85pt 2.0cm 70.85pt; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.E-MailFormatvorlage17 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
page: Section1
}
OL {
MARGIN-BOTTOM: 0cm
}
UL {
MARGIN-BOTTOM: 0cm
}
</STYLE>
</HEAD>
<BODY lang=DE vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT face=Arial size=2>WritePort &H378, 0<BR>Sleep 5<BR>WritePort
&H378, 255<BR>Sleep 5<BR>WritePort &H378, 0<BR>c.setattrib
"startscanner", Clock.ReadMillisec<BR>We use this to start a MRI Scanner through
the parallel port...seems to work... off on off...I guess. </FONT></DIV>
<DIV><FONT face=Arial size=2>Marilyne ZieglerMarilyne Ziegler<BR>Research
Officer<BR>Human Neuropsychology and
<BR> Cognitive Sciences
Lab<BR>Dept of Psychology<BR>University of Toronto<BR>100 St. George St.
<BR>Toronto, Ontario<BR><A
href="mailto:marilyne@psych.utoronto.ca">marilyne@psych.utoronto.ca</A><BR>1-416-978-7029</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=bianca.de-haan@klinikum.uni-tuebingen.de
href="mailto:bianca.de-haan@klinikum.uni-tuebingen.de">B de Haan</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=eprime@mail.talkbank.org
href="mailto:eprime@mail.talkbank.org">eprime@mail.talkbank.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, January 10, 2007 10:10
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> triggering TMS machine via
serial port (com1)</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi
all,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">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? <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have
tried:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">1) Similarly to the logic when
triggering the LPT1 port, adding a bit of inline script after the stimulus:
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 35.4pt"><FONT face=Arial size=2><SPAN
lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">WritePort &H03F8,
255<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 35.4pt"><FONT face=Arial size=2><SPAN
lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">WritePort &H03F8,
255<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 35.4pt"><FONT face=Arial size=2><SPAN
lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">WritePort &H03F8,
255<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 35.4pt"><FONT face=Arial size=2><SPAN
lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">WritePort &H03F8,
0<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">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<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">2) I tried the solution mentioned
in the post on <A
href="http://listserv.linguistlist.org/cgi-bin/wa?A2=ind0609E&L=EPRIME&P=R2&I=-3">http://listserv.linguistlist.org/cgi-bin/wa?A2=ind0609E&L=EPRIME&P=R2&I=-3</A><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">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.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">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)?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Any help would be greatly
appreciated,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Bianca de
Haan<o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>