Parallel Port Signalling
 
PST User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Parallel Port Signalling Expand / Collapse
Author
Message
Posted 7/21/2009 5:21:18 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 1/4/2011 11:05:02 PM
Posts: 9, Visits: 40
Dear forum,
Using the following inline:
Stimulus.OnsetSignalEnabled = True
Stimulus.OnsetSignalPort = &H378
Stimulus.OnsetSignalData = c.GetAttrib("TrialCode")

I get a signal on the parallel port determined by specific attribute. This signal is on for the duration of the object 'Stimulus' set via the properties dialog. Is there any way to override this duration setting by inline code e.g. setting length of OnsetSignalData to an arbitrarily short duration?

Thanks in advance,
Kambiz


KT
tavabik@email.chop.edu
Post #3277
Posted 8/5/2009 6:07:01 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 2/8/2012 10:58:53 AM
Posts: 11, Visits: 33
nope ; as far as I know the duration of the port output will always be the same as the duration of the Stimulus object.

Most external devices don't care about longer pulses though, but if you really wan't shorter pulses you could change the duration of the stimulus object and add a wait object for the leftover time to keep the stimulus on screen. Not an elegant workaround, but it works in most cases. Things become more complicated if you also configured an input device for the stimulus object. Especially when the end action is set to Terminate.... In that case I would probably consider using another object just before the actual stimulus to generate a short pulse.

cheers
Paul Groot
Post #3317
Posted 7/21/2010 9:22:45 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 3/22/2012 9:57:06 AM
Posts: 43, Visits: 153
Can you not use ;

Stimulus.OffsetSignalEnabled = false

then when your required duration is reached, clear the port with;

WritePort &H378, 0

Hope this helps,

J


...I'm an immortal...so far...

Post #4593
« Prev Topic | Next Topic »


Permissions Expand / Collapse

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

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.125. 10 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