Trigger Timing Issues
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Trigger Timing Issues Expand / Collapse
Author
Message
Posted 12/10/2010 5:03:53 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/14/2011 2:55:59 PM
Posts: 1, Visits: 10
Hello.

In order to test the time delay between trigger & stimulus, I'm using a simple photodiode taped to monitor --> recording system + trigger sent from Eprime to recording setup.

I'm getting not getting a fixed time delay. Rather, I'm getting 2 fixed time delays that are ~16ms apart (refresh rate=60Hz). So it seems like some triggers are sent one frame early (or late).

I'm using the following inline code to send triggers:

StimlusR.OnsetSignalEnabled = True
StimlusR.OnsetSignalPort = &H378
StimlusR.OnsetSignalData = 255

StimlusR.OffsetSignalEnabled = True
StimlusR.OffsetSignalPort = &H378
StimlusR.OffsetSignalData = 0

I also used writeport and got similar time delays:
WritePort &H378, 0
WritePort &H378, 255
Sleep 50
WritePort &H378, 0

Should I be using something else?

Thanks!
Post #5098
Posted 1/4/2011 5:21:49 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 12/8/2011 1:01:58 PM
Posts: 19, Visits: 200
I think the trigger code looks fine. Could it be that you have set to pre-release your stimulus? If so, I think the pre-release might be affecting your InLine. See link to post:

http://support.pstnet.com/forum/Topic1983-9-1.aspx?Highlight=pre-release

Evelina

Post #5142
Posted 2/19/2011 6:30:46 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/29/2011 5:03:04 PM
Posts: 5, Visits: 14
Did you see this delays in the e-prime output, or on the O-scope? Make sure the refresh rate is really 60Hz but not 59.6 or so. What is the duration of the Stimuli?

And do you think sending 255 versus 0 may cause small timing difference in the preparation of these triggers? Is there a test showing delays in parallel port send?


Post #5225
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -5:00, Time now is 11:31pm

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.109. 9 queries. Compression Disabled.
 
Privacy | Terms of Use | Terms and Conditions | Legal Trademarks | Authorized Use | Quality Policy
Copyright 2012 Psychology Software Tools, Inc. All Rights Reserved
Email: Info@pstnet.com | Telephone: 412.449.0078 | Fax: 412.449.0079