Digital I/O between EPrime and Biopac

David McFarlane mcfarla9 at msu.edu
Tue Oct 28 19:08:29 UTC 2008


Cate,

>I am trying to use the ReadPort function to receive a TTL pulse
>transmitted via a Biopac MP system.  I am using the Biopac STP100C
>Digital Interface that connects to the PC running Eprime via a
>parallel port.  In the product specifications, it specifies the pins
>over which TTL pulses can be sent to/from EPrime.
>
>Parallel Port interface (uses standard PC printer port with DSUB 25
>connector)
>Output from E-Prime: (pins 2-9) connect to MP System Digital I/O lines
>8-15
>Input to E-Prime: (pins 13-10) connect to MP System Digital I/O lines
>4-7
>
>Using the ReadPort(889) or ReadPort(&H379) commands yields the value
>120 regardless of whether a TTL pulse is being sent to any or all of
>the EPrime input pins.  Similarly, using WritePort(888,x) yields no
>recognized input on the receiving machine regardless of the value of
>x.
>
>Any suggestions, especially from anyone who has successfully used this
>hardware setup, would be appreciated.
>
>Thanks in advance,

I have never used a BioPac, but here are a few general thoughts on 
the use of a parallel port for I/O in EP.

First, make sure your parallel port really appears at base address 
&H378.  A few computers put the port at a different base address, 
like &H278.  You might find the lpt port base address using the 
Windows Device Manager.

Second, make sure that the parallel port is configured for the proper 
mode and direction.  The BIOS in some computers allows you to 
configure the parallel port as an old, standard ("legacy") parallel 
port, as well as newer bidirectional modes (ECP & EPP?).  If you use 
a bidirectional mode then you must also set the data direction using script.

I ran a search at the PST Forum using the term "parallel port" and 
found the following post which may give you some ideas:

http://support.pstnet.com/forum/Topic1164-8-1.aspx

-- David McFarlane, Professional Faultfinder


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



More information about the Eprime mailing list