|
|
|
Forum 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
|
|
|
|
|
Junior 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
|
|
|
|
|
Forum 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...
|
|
|
|