|
|
|
Junior 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!
|
|
|
|
|
Forum 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
|
|
|
|
|
Junior 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?
|
|
|
|