|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 2/4/2009 4:13:31 PM
Posts: 3,
Visits: 15
|
|
Hi,
We have been running an imaging experiment in which our fMRI scanner triggers E-Prime to start and synchronize the stimulus presentation, and then E-Prime triggers a third computer running ASL Eye tracking to capture eye position while stimuli are on screen. This was all running correctly and without problems.
We then had to switch to a new stimulus computer running E-Prime and our other experiment on Presentation. After this switch, our E-Prime experiment was still running. However, we had issues with the Presentation experiment no longer triggering ASL via the parallel port, even though E-Prime was doing so.
We installed some new NBS Presentation drivers in an attempt to fix that problem (which it didn't). While no port settings were changed, we can no longer run our E-Prime experiment. We tried uninstalling the drivers, and that did not help.
When we try to start the experiment in E-Prime, the screen goes blank for a second as if it is starting, but then we receive the following error:
The following runtime error occurred:
An error occurred while attempting to open the device
Error: 0x00000001
Message: "
Line: 432
Error Number: 10051
Line 432 is "Port.Open PortPortDeviceInfo"
and the script around it is:
Set Port = New PortDevice
Port.Name = "Port"
Dim PortPortDeviceInfo As PortDeviceInfo
PortPortDeviceInfo.CollectionMode = ebPressesOnly
PortPortDeviceInfo.Address = 0
PortPortDeviceInfo.Size = 8
PortPortDeviceInfo.Invert = CLogical("No")
PortPortDeviceInfo.Mask = -1
'Load values from context if they exist
If c.AttribExists(Port.Name & ".CollectionMode") Then PortPortDeviceInfo.CollectionMode = CLng(c.GetAttrib(Port.Name & ".CollectionMode"))
If c.AttribExists(Port.Name & ".Address") Then PortPortDeviceInfo.Address = CLng(c.GetAttrib(Port.Name & ".Address"))
If c.AttribExists(Port.Name & ".Size") Then PortPortDeviceInfo.Size = CLng(c.GetAttrib(Port.Name & ".Size"))
If c.AttribExists(Port.Name & ".Invert") Then PortPortDeviceInfo.Invert = CLogical(c.GetAttrib(Port.Name & ".Invert"))
If c.AttribExists(Port.Name & ".Mask") Then PortPortDeviceInfo.Mask = CLng(c.GetAttrib(Port.Name & ".Mask"))
If c.AttribExists(Port.Name & ".EmulateDeviceName") Then PortPortDeviceInfo.EmulateDeviceName = c.GetAttrib(Port.Name & ".EmulateDeviceName")
'Open the device, unless the context values indicate otherwise
Dim PortOpen As Boolean
PortOpen = True
If c.AttribExists(Port.Name & ".Open") Then PortOpen = CLogical(c.GetAttrib("Port.Open"))
If PortOpen = True Then
Port.Open PortPortDeviceInfo
End If
Any ideas as to why we're suddenly getting this error? Is it that E-Prime (or the computer itself) are not able to recognize the LPT port as a viable port? We are using the WritePort &H378 command, and the LPT port address is still &H378. As far as I understand it, we only use the LPT1 port for E-Prime but both the LPT1 and LPT2 ports for Presentation, which is possibly where some of our problems are coming from.
We are hoping to get both experiments up and running ASAP because we have multiple participants scheduled in the upcoming weeks, so any thoughts or help that anyone can offer would be much appreciated. Thanks very much for your time.
-Garth
-Garth
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 2/4/2009 4:13:31 PM
Posts: 3,
Visits: 15
|
|
I attempted to run the ParallelPortConfig.es and received the same error as when running our experiment:
The following runtime error occurred:
An error occurred while attempting to open the device
Error: 0x00000001
Message: "
Line 977
Error Number: 10051
Line 977 is the same Port.Open PortPortDeviceInfo line as in our experiment.
Additionally, I double-checked the LPT port addresses and they are the following:
ECP Printer Port (LPT1)
I/O Range 0378 - 037F
I/O Range 0778 - 077F
IRQ 07
This appears to match our WritePort codes except that they are written to &H378, so I'm not sure if that would make a difference or not.
We also tried uninstalling Windows XP Service Pack 3 and updating the port drivers, but nothing changed.
If you need any more information, don't hesitate to contact me. We are hoping to resolve this problem ASAP as we have participants scheduled in a little over a week and we do not want to have to cancel them. Any help you can provide would be greatly appreciated. Thanks very much for your time.
-Garth
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 10/19/2009 6:47:22 PM
Posts: 1,
Visits: 5
|
|
Do you have a solution to this issue? I have tried the ParallelPortConfigure.ebs on two similarly specified modern PCs and get this error. So I cannot use the parallel port. When I run it on an old IBM laptop it runs without error after configuring the BIOS suitably.
I have tried ECP with interrupts and DMA. Various combinations plus EPP. I also did an e-prime repair installation and reinstalled the port driver after downloading PortDriverInstaller.exe from the E-Prime web site. Also tried E-Prime 1.1.4.4 and 1.2. The error message is the same if I uninstall the Port I/O driver so it does not seem to be getting loaded correctly?
Any ideas
Simon
|
|
|
|
|
Forum MVP
      
Group: Forum Members
Last Login: Today @ 3:37:18 PM
Posts: 713,
Visits: 2,756
|
|
Just so you know, the PST Web Support site is PST's primary means of support for E-Prime users and users are instructed to contact the support site first with any questions they may have, with a promise of 24-48 hour response times to all requests. You should post questions directly at http://support.pstnet.com/e%2Dprime/support/login.asp instead of here.
-- David McFarlane, Professional Faultfinder
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 5/12/2010 1:40:38 PM
Posts: 5,
Visits: 40
|
|
Hi there.
I had the exact same message. Error 10051. After 2 days of trouble shooting, I decided to download the most recent version of Eprime 2 as a last option to see if any changes had been made to the drivers . It worked. Try it and see if it resolves your issue. Good luck!
Mel
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 10/1/2010 4:42:18 PM
Posts: 1,
Visits: 4
|
|
We isolated two instances that replicable with the above error.
1. Windows XP/Vista/7 with Logitech software installed.
2. Windows Vista/7 with a HP printer installed on a WSD port.
Unfortunately, for both instances, remove the software/driver does NOT solve the problem. You have to restore the system to a previous restore point or backup image.
|
|
|
|