send event related signal to serial/parallel ports

253 views
Skip to first unread message

Estelle_Thought_Technology

unread,
May 28, 2010, 12:41:20 PM5/28/10
to E-Prime
Hi,
I am new to this group, and a new e-prime user too. I will be working
as an intern for the summer for a company named 'Thought Technology' .
They develop hardware and software for biofeedback use and they want
to make the interface between e-prime and their hardware possible so
that users can use their technology to acquire physiological data
during an e-prime protocol.

The first goal will be to send event-related signals from e-prime to a
port so it can be recieved and handled by a software that will be
developped for this use.

Reading the documentation, I realized that event-related signals are
usually sent through the parallel port. Is there a reason to use the
parallel port instead of the serial port ?

I saw that SerialDevice objects exist and that there is a method to
write to the serial port, but is it possible to notify external
equipment the exact time that an event occurs in E-Prime using the
serial port ? I know it coul be done with the parallel port using the
onset and offset signal properties of objects...I wonder if the same
could be done through the serail port since it is more commonly used
than the parallel port these days...

Thank you for your help, it will be really appreciated !

Estelle

David McFarlane

unread,
May 28, 2010, 9:24:35 PM5/28/10
to e-p...@googlegroups.com
Estelle,

> Reading the documentation, I realized that event-related signals are
> usually sent through the parallel port. Is there a reason to use the
> parallel port instead of the serial port ?

Yes, and if you consult any standard reference on parallel ports and
serial ports then the answer will become obvious. Or just use Google.
In fact, if you do a proper search of either this Google Group or the
PST Forum you should find where I have already discussed this at length.

-- David McFarlane, Professional Faultfinder

Estelle Breton

unread,
May 31, 2010, 9:23:44 AM5/31/10
to e-p...@googlegroups.com
Ok, thank you,
I understand the parallel port communication is faster than the serial port communication. I guess I will have to find a computer with a parallel port since mine only has serial.
 
Thanks again !



--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-p...@googlegroups.com.
To unsubscribe from this group, send email to e-prime+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.




--
Estelle

David McFarlane

unread,
Jun 1, 2010, 10:35:48 AM6/1/10
to e-p...@googlegroups.com
Estelle,

At 5/31/2010 09:23 AM Monday, you wrote:
>I understand the parallel port communication is faster than the
>serial port communication.

There is actually quite a bit more to it than that. I just checked
my earlier discussion at
http://support.pstnet.com/forum/Topic2496-8-1.aspx , and perhaps that
still does not quite answer your question, so I will attempt another
short explanation here: A serial port sends a sequence of brief
pulses over a single wire, using voltages of +12 or - 12. By
contrast, a parallel port sends each signal steadily over a separate
wire, using voltages of +5 or 0. As you can readily see, these are
vastly different mechanisms and cannot be easily interchanged. Else,
why would we even bother giving them separate names?

>I guess I will have to find a computer with a parallel port since
>mine only has serial.

Alternatively, note that in another recent thread here we have
discussed using a commercial USB device to provide digital
I/O. However, this would require considerably more code.

As usual, do not take my word for any of this, but look it up for
yourself. For those really interested, see the books "Parallel Port
Complete" and "Serial Port Complete" by Jan Axelson.

Estelle Breton

unread,
Jun 1, 2010, 1:40:25 PM6/1/10
to e-p...@googlegroups.com
Ok thank you !
 
I am starting to understand better how this all works, Thank you for your patience !
 
People I work with have developped a specific device that respond to the DTR pin (serial device). It basically reacts when this specific pin is turned on or off. I would like to toggle this pin using an inline object just before an event in my ePrime protocol.
 
Does anyone know if this is something possible ? How can I adress other pins than the receive or transmit pin with e-basic code ?
 
thanks for the support !

--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-p...@googlegroups.com.
To unsubscribe from this group, send email to e-prime+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.




--
Estelle
Reply all
Reply to author
Forward
0 new messages