Using an ERTS response pad - is it possible??
 
 
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Using an ERTS response pad - is it possible??... Expand / Collapse
Author
Message
Posted 10/17/2007 7:09:25 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2/29/2008 11:43:41 AM
Posts: 18, Visits: 68
Hi,

Sorry to be a nuisance again but I am struggling big time with this.  My experiment is working fine with the SRbox, but I would rather use a response pad that came with the Experimental Run Time System (ERTS) package.  I have connected it to the parallel port in my PC and have added the Port device in the "experiment object properties" and set up the address as &H378. 

I have also added it as an input device for my stimulus object with {ANY} key as an allowable response.  However, I can't get E-Prime to detect the pad when I press the buttons.  I have looked at the samples on the support website (ParallelPortConfigure.es), and it suggests that I need to use some script to enable E-Prime to read input from my parallel Port.  I have tried writing "ConfigurePortForInput (&H378) and Readport (&H378) but I get an error saying "ConfigurePortforInput is not a variable".

I'm not sure what to do from here.  Do I need to have some sort of windows driver installed or should E-Prime be able to detect the button pad simply by plugging it into the parallel port? 

Any suggestions would be greatly appreciated, cheers!

Post #705
Posted 10/17/2007 11:14:50 AM
Forum MVP

Forum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVP

Group: Administrators
Last Login: Yesterday @ 3:05:40 PM
Posts: 569, Visits: 1,237
When using ConfigurePortForInput, make sure you are passing an integer and only using parens when necessary as it does not return a value.  The following are examples of how to specify with decimal and hex address.

ConfigurePortForInput 888
ConfigurePortForInput CLng("&H378")

Dim x As Long
x = ReadPort(888)
x = ReadPort(CLng("&H378"))

You would need to describe what the ERTS is sending to the parallel port and what pins it is doing so for intergration with E-Prime.

-Brandon

Post #707
Posted 10/18/2007 9:20:10 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2/29/2008 11:43:41 AM
Posts: 18, Visits: 68
Thanks Brandon.  Where do I actually write this code?  Do I create an inLine object just before my target stimulus is displayed?

Also how do I tell E-Prime which pins to detect the input from my response pad?

Post #712
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -5:00, Time now is 1:12am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 11 queries. Compression Disabled.