[visionegg] parallel port: which pin?
- From: Christoph Lehmann <lehmann@xxxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Mon, 16 Dec 2002 17:00:07 +0100
ok. I now try to make stimulus presentation dependent on whether a
streched TTL pulse (ca. 30ms length) has arrived on the parallel port or
not:
see last while loop in the function:
so: WHICH PIN do I have to put the pulse to?
thanks, Christoph
-------------------------------------------------
def image_selector( t ):
global last_image, start_time, timestamp, last_timestamp,
first_stim_flag, log
time.sleep(0.0001) #purposefully yield the
processor, so that during max priority mode, mouse can be tracked
i = int(t/duration_per_image)
if first_stim_flag == 1:
start_time = VisionEgg.timing_func()
timestamp = start_time
log = (timestamp - start_time, photoX[i], -1, -1) #create next
new log
first_stim_flag = 0
elif i <> last_image:
log_list.append(log) #append last log
timestamp = VisionEgg.timing_func()
log = (timestamp - start_time, photoX[i], -1, -1) #create next
new log
last_image = i
# poll the LPT for the TTL trigger, sent by the MR scanner
input_value = 0
while (input_value <> 1):
input_value = raw_lpt_module.inp(0x379)
return [ preloaded_stimulus_list[i] ]
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- Follow-Ups:
- [visionegg] Re: parallel port: which pin?
- From: Andrew Straw
Other related posts:
- » [visionegg] parallel port: which pin?
- » [visionegg] Re: parallel port: which pin?
- » [visionegg] Re: parallel port: which pin?
- » [visionegg] Re: parallel port: which pin?
- [visionegg] Re: parallel port: which pin?
- From: Andrew Straw