Eprime + Port presses/releases

Brandon Cernicky brandon_cernicky at yahoo.com
Wed Jan 14 18:54:11 UTC 2004


ANAND,

At this time, the port device is directed at reading
and writing from memory registers such as a parallel
port, game port, digital i/o card, etc.

The use of a serial device connected to a serial port
must be used via the E-Prime SerialDevice object.
Access to serial device is not available via the
Duration/Input property page.  This object requires
all input and output access to be gained via InLine
script calls.

If you are using a PST Serial Response Box, then use
of the E-Prime SRBOX device object would provide the
ability to gain access to the box via the
Duration/Input property page tab per each object.

If you are using your own custom response pad/box,
then connecting to the serial port would require use
of the SerialDevice.

In general, press means a high or state 1.  A release
would mean a low or state zero on the memory register.
 The PortDevice does have the option to invert
(reverse) the values presented to it in the event of
active low devices.

Since the data in a serial port comes in a serial
manner, the use of the PortDevice behavior would be
undefined depending on the protocol the data is using.
 In theory, the last bit passed to/from the serial
port may/not be latched and you could get some
consistency, but viewing exact data as mentioned may
not be defined.

For any custom devices, I would encourage using the
PortDevice connected to the parallel port for easy
input and output access.  If your device does require
standard COM serial port access, then use of the
script SerialDevice would be required.

Please feel free to view the "Sample: Serial Port
Communications Example" sample on the E-Prime web
support site, contact PST representatives on the PST
Web Support site (www.pstnet.com/e-prime/support), or
continue further inquiry on the E-Prime mailing list.

-Brandon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Brandon S. Cernicky
Senior Software Engineer
Psychology Software Tools

**** Views expressed here are not necessarily that of
Psychology Software Tools


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus



More information about the Eprime mailing list