parallel port won't initilize to 0
 
 
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



parallel port won't initilize to 0 Expand / Collapse
Author
Message
Posted 11/16/2007 12:47:58 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/6/2008 11:42:54 PM
Posts: 3, Visits: 2
Hi,

I'm using a BioPac system with Eprime triggering events through the
parallel port to digital channels D8-D15. Everything works great, but
channel D15 is always on (equals 1). The same is true for digital
channels D0-D7. I can't get 8 channels at one time to initialize to 0
so that I can get correct trigger numbers. Any ideas? Is this an
eprime problem?

This is the script I am using to initilize the port:

WritePort &H378, 0

Dim StartTime1 as Single
Dim TimerDuration1 as Single

TimerDuration1 = .005
StartTime1 = Timer

do
WritePort &H0378, 99
Loop Until Timer > StartTime1 + TimerDuration1

WritePort &H0378,0

And then to send the triggers:

WritePort &H378, 0
WritePort &H378, c.getattrib("Trigger")

Any help is much appreciated!

Taylor


A. Taylor Newton, MA
University of Denver
Frontier Hall 314
2155 S. Race St.
Denver, CO 80208
Post #881
Posted 11/20/2007 3:15:28 PM
Forum MVP

Forum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVPForum MVP

Group: Administrators
Last Login: Yesterday @ 5:00:06 PM
Posts: 569, Visits: 1,238
First thing is that for each WritePort call that you are setting a bit high, you need some sleep time before transitioning low.  By having WritePort calls in a loop or adjacent to each other the transitions will be too quick for external equipment to verify.  Consider a Sleep 10 or higher after each WritePort call.

You may need to configure your parallel port to ensure the ports on it are input or output respectively.  Please see the following topics for more info.

Sample: Parallel Port Configure
KB1320 - INFO: General Parallel Port Information
KB1318 - INFO: How do I notify external equipment at the exact time that an event occurs in E-Prime?

-Brandon

Post #912
Posted 1/23/2008 9:11:38 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/29/2008 3:52:07 AM
Posts: 2, Visits: 13
Hi,

I also have problem configuring the parallel port with e-prime (v2.0). I tried to use the ParallelPortConfigure.es sample and obtain an error while the program was attempting to open the device. Line 1068, error number: 10051.

Does someone know what to do?

Stephanie

Post #1154
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -5:00, Time now is 2:30am

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