Hi all,
I’m running the latest standalone version of Psychopy on a Windows 7 machine. We have two monitors connected that are mirrored. The primary display or screen 0 (ViewSonic touchscreen) is the one participants are using during the experiment. Outside of PsychoPy the touch screen works as expected, meaning that finger pressed are interpreted as single mouse (left button) clicks as expected.
I’ve pre-tested my experiment using an ordinary mouse - the script uses the functions mouse.getPressed( ) and mouse.isPressedIn( ) during two different routines - and everything works fine.
With the touchscreen, however, a single finger press/touch is not recognized as a single left-button click. I figured out that I need to touch the screen in one position then move it and release it in a different position - so more of a swiping motion than a click.
What makes this even stranger is that in the logfile the single finger presses are registered exactly as one would expect from a single mouse click.
Here are some parts from the beginning of the experiment. The instructions are being shown and the participant is asked to touch the screen to carry on. The first few logged responses are single finger presses that fail to end that routine.
9.8566 EXP instr: autoDraw = True
11.4736 DATA Mouse: Left button down, pos=(1263,334)
11.4736 DATA Mouse: Left button up, pos=(1263,334)
16.7396 DATA Mouse: Left button down, pos=(1437,308)
16.7397 DATA Mouse: Left button up, pos=(1437,308)
20.3412 DATA Mouse: Left button down, pos=(1423,384)
20.3413 DATA Mouse: Left button up, pos=(1423,384)
20.4728 DATA Mouse: Left button down, pos=(1423,384)
20.4729 DATA Mouse: Left button up, pos=(1423,384)
25.0736 DATA Mouse: Left button down, pos=(1204,663)
25.0737 DATA Mouse: Left button up, pos=(1204,663)
27.8057 DATA Mouse: Left button down, pos=(1218,371)
27.8057 DATA Mouse: Left button up, pos=(1218,371)
29.8221 DATA Mouse: Left button down, pos=(984,287)
29.8346 EXP Imported lists/test_list.csv as conditions, 16 conditions, 31 params
29.8351 EXP Created sequence: sequential, trialTypes=16, nReps=1, seed=None
29.8362 EXP New trial (rep=0, index=0): {'R_item': u'R_T_spec_4', 'br': u'Sperber', 'item': 4, 'bl': u'Geier', 'confusion': u'Falken', 'cond_code': 120, 'item_code': 4, 'rel_code': 160, 'cond': u'spec_sym', 'distractor1': u'Geier', 'distractor2': u'Sperber', 'L_item': u'L_T_spec_4', 'conf_loc': u'topright', 'R_sentence': u'Karin bestaunte morgens zw\xf6lf Falken', 'sem_cue': u'Raubv\xf6gel', 'correct_loc': u'topleft', 'stim': u'audio_training/T_spec_4.wav', 'probed_code': 181, 'fixdur1': 138, 'L_sentence': u'Thomas zeichnete mittags drei Adler', 'fixdur2': 95, 'tr': u'Falken', 'presented2': u'Falken', 'presented1': u'Adler', 'tl': u'Adler', 'L_final': u'Adler', 'rel_cue': u'pics/20_80.png', 'sem_code': 130, 'R_final': u'Falken', 'correct': u'Adler', 'probed': u'L'}
29.8551 EXP instr: autoDraw = False
29.8551 EXP fix1: autoDraw = True
30.1058 DATA Mouse: Left button up, pos=(1088,284)
32.1466 EXP Set sound=audio_training/T_spec_4.wav
32.1550 EXP fix1: autoDraw = False
Using the mouse instead of touch screen:
9.5666 EXP instr: autoDraw = True
10.3668 DATA Mouse: Left button down, pos=(772,647)
10.3784 EXP Imported lists/test_list.csv as conditions, 16 conditions, 31 params
10.3789 EXP Created sequence: sequential, trialTypes=16, nReps=1, seed=None
10.3798 EXP New trial (rep=0, index=0): {'R_item': u'R_T_spec_4', 'br': u'Sperber', 'item': 4, 'bl': u'Geier', 'confusion': u'Falken', 'cond_code': 120, 'item_code': 4, 'rel_code': 160, 'cond': u'spec_sym', 'distractor1': u'Geier', 'distractor2': u'Sperber', 'L_item': u'L_T_spec_4', 'conf_loc': u'topright', 'R_sentence': u'Karin bestaunte morgens zw\xf6lf Falken', 'sem_cue': u'Raubv\xf6gel', 'correct_loc': u'topleft', 'stim': u'audio_training/T_spec_4.wav', 'probed_code': 181, 'fixdur1': 138, 'L_sentence': u'Thomas zeichnete mittags drei Adler', 'fixdur2': 95, 'tr': u'Falken', 'presented2': u'Falken', 'presented1': u'Adler', 'tl': u'Adler', 'L_final': u'Adler', 'rel_cue': u'pics/20_80.png', 'sem_code': 130, 'R_final': u'Falken', 'correct': u'Adler', 'probed': u'L'}
10.3999 EXP instr: autoDraw = False
10.3999 EXP fix1: autoDraw = True
10.5001 DATA Mouse: Left button up, pos=(772,647)
12.6919 EXP Set sound=audio_training/T_spec_4.wav
12.6919 EXP window1: recordFrameIntervals = False
12.6998 EXP fix1: autoDraw = False
Is this a timing issue? Is seems that the button down and button up responses are logged all most at the same time for the touch screen. I’ve already tried holding my finger down on the screen a bit longer but it seems that moving it to a different location is the only solution for now.
Any ideas on how to solve this problem? I’m working with older participants who sometimes have trouble using a mouse, so I would like to avoid asking them to swipe instead of touch/click on the screen.
Thanks,
Sarah