Пример #1
0
def showStimulus(screen, text, colour):
    word, viewport = printWord(screen, text, 200, colour)
    p = Presentation(go_duration=(0.5, 'seconds'), viewports=[viewport])
    p.go()
    start = time.clock()
    exit = 0
    while not exit:
        data = raw_lpt_module.inp(0x379) & 0x20
        if not data:
            RT = time.clock()
            p.parameters.go_duration = (0.032, 'seconds')
            #dataList.append ([text, colour, start, RT])
            exit = 1
        else:
            pass
Пример #2
0
def showStimulus(screen, text, colour):
	word, viewport = printWord(screen, text, 200, colour)
	p = Presentation(go_duration=(0.5,'seconds'),viewports=[viewport])
	p.go()
	start = time.clock()
	exit = 0
	while not exit:
		data = raw_lpt_module.inp(0x379) & 0x20
		if not data:
			RT = time.clock()
			p.parameters.go_duration = (0.032, 'seconds')
			#dataList.append ([text, colour, start, RT])
			exit = 1
		else:
			pass
Пример #3
0
def showStimulus(screen, text, colour, useLPT=True):
	word, viewport = printWord(screen, text, 200, colour)
	p = Presentation(go_duration=(stroopDuration,'seconds'),viewports=[viewport])
	
	if useLPT:
		p.go()
		start = time.clock()
		exit = 0
		while not exit:
			data = raw_lpt_module.inp(0x379) & 0x20		
			#print data
			if not data:
				#print "hello"
				RT = time.clock()
				p.parameters.go_duration = (blank, 'seconds')
				subject.inputData(trial, "text", text)
				subject.inputData(trial, "colour", colour)
				subject.inputData(trial, "RT", RT)
				exit = 1
			else:
				pass
Пример #4
0
from VisionEgg.DaqLPT import raw_lpt_module
import time

LPT1 = 0x378  # address of parallel port -- make sure your computer agrees

# turn all pins on
data = 0xFF  # values to output on parallel port
raw_lpt_module.out(LPT1, data)

#time.sleep(5.0) # wait 1 second

for i in range(5000):
    input_value = raw_lpt_module.inp(0x378) & 0x10
    print input_value
    time.sleep(0.001)

# turn all pins off
#data = 0x00
#raw_lpt_module.out(LPT1,data)
Пример #5
0
import VisionEgg
from VisionEgg.DaqLPT import raw_lpt_module
import time

LPT1 = VisionEgg.DaqLPT.LPTDevice(
    0x379)  # address of parallel port -- make sure your computer agrees

#print LPT1

#time.sleep(1.0) # wait % second

# turn all pins on
#data = 0xFF # values to output on parallel port
#raw_lpt_module.out(LPT1,data)

for i in range(5000):
    input_value = raw_lpt_module.inp(0x379) & 0x20
    print input_value
    print int(input_value)
    time.sleep(0.001)

#print data

# turn all pins on

#data = raw_lpt_module.inp(LPT1)

#print data
Пример #6
0
from VisionEgg.DaqLPT import raw_lpt_module
import time


LPT1 = VisionEgg.DaqLPT.LPTDevice(0x379) # address of parallel port -- make sure your computer agrees

#print LPT1

#time.sleep(1.0) # wait % second

# turn all pins on
#data = 0xFF # values to output on parallel port
#raw_lpt_module.out(LPT1,data)

for i in range(5000):
	input_value = raw_lpt_module.inp(0x379) & 0x20
	print input_value
	print int(input_value)
	time.sleep(0.001)


#print data

# turn all pins on

#data = raw_lpt_module.inp(LPT1)



#print data
Пример #7
0
from VisionEgg.DaqLPT import raw_lpt_module
import time


LPT1 = 0x378  # address of parallel port -- make sure your computer agrees

# turn all pins on
data = 0xFF  # values to output on parallel port
raw_lpt_module.out(LPT1, data)


# time.sleep(5.0) # wait 1 second

for i in range(5000):
    input_value = raw_lpt_module.inp(0x378) & 0x10
    print input_value
    time.sleep(0.001)

# turn all pins off
# data = 0x00
# raw_lpt_module.out(LPT1,data)