![]() ![]() If it would be helpful to you or the group, I can condense my test program, add comments to make it more readable, and make it available. ![]() The few times I went through this process the clock in the dual core duo iMac I tested did not differ significantly from the button box over a several minute period. From this they calculate a correction factor. The way they do this in Psyscope is to reset both clocks, wait for a long time and then read both clocks. What ends up happening, is instead of just moving around the screen small increments at a time, the polygon I’ve created as my joystick cursor moves all the way to the edge of the screen. Since the bbox clock and the computer's clock might run at slightly different speeds, you must synchronize the bbox clock with the computer's clock to measure response latencies accurately for stimuli presented on the screen. I plug my joystick in, and have everything set up as seen below. It also has an internal clock and can report to you the internal times when events occur. Add a code component to your Routine and in the Begin Experiment use: import pyxid2 as pyxid get a list of all attached XID devices devices pyxid.getxiddevices() dev devices0 get the first device to use. It has a sophisticated voice key built in, and can be used to send TTL pulses to external devices. If you want to detect both key presses and key lifts from your cedrus response box, at the moment you will need to use custom code. But i believe that if i made 4 buttons, one for each number (1, 2, 3 and 4) for the participant to click, it would be much better. It is sturdy, using pinball machine like buttons. Any of those answers will finish the routine, but only one is correct and is stored in a variable. Originally I had an issue where the experiment I was working on required a user to double tap a screen or to tap and hold the screen for the experiment to register the response. a textbox component (to display as a clickable thing), a mouse component (to click the textbox) and a code component (not essential, but for example to check if a clicked response was corre. I am here posting to discuss how I modified my experiment to respond to a single tap from a touch screen. The ioLab button box is very well designed. The nice thing about the button component is that you can allow mouse/touch responses with a single component instead of needing 3 separate components i.e. ![]() I have incorporated it (with one minor change) into a psyschopy program to test getting button responses and sending triggers to external devices, but I have not tried to test the timing accuracy/reliability. I need Psychopy to get the responses from each button that is connected to the serial port and for the program to recognize that responses from the serial port are the ones to be expected (and also record their reaction time and accuracy).Īlso note that I have tried to use this button box as an ioLab, cedrus, joy buttons and the buttons do not trigger any response.The folks who make the PsyscopeX button box ( ) provide a python library for accessing their button box. Now that I know the port is being recognized. Ser = serial.Serial('COM1', 19200, timeout=0, parity=serial.PARITY_EVEN, rtscts=0) Port type: serial / device: COM1 / Identifier: COM1 / Rate: 19200 / Data Bits: 8 /Stop Bits: 1.īy using the following code I learned that python is recognizing the port (as it prints ‘COM1’) : import serial The button box does work in Presentation software and from there I was able to learn this information about the device: To summarise, older touchscreens and mouse responses work fine, but the new touch screen does not. The button box has no manufacturer and we have little to no information about it. Were having a problem getting our new Ilyama ProLite T2452MTS to work with mouse click responses, when using PsychoPys mouse.isPressedIn method. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |