Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

WouterW

About

Username
WouterW
Joined
Visits
84
Last Active
Roles
Member
Thanked
0

Comments

  • Hmm, it seems to be something that has to do with the computers in the lab. The program works fine on my PC at home and in my room at the department. So we're figuring out if we can use a different computer in the same room. I guess it's something…
  • What kind of routines are PsychoPy based? I've got an exp.get("Condition") command in the first half of the experiment, and in the second half of the experiment (which is a different file) I have response boxes with quite extensive python codi…
  • Euhm, that could be it I suppose, I'm using the legacy back-end. I'm not sure which PyGame function interferes (I'm using both mouse and response box based response collection). Are there PyGame functions in there? And would it help to choose a …
  • I think I actually got it to work. Thanks a lot for your help!
  • Yep, that kind of seemed to work (although now it forces a response, but I suppose that's not necessarily a bad thing). So the next trick is, I need to import a second response box. Would this be the way to go? or do I need a more sophisticated im…
  • I already did something like that (by just printing response1), and using your command gives this output (which I sort of suspected): response1["pressed"] == True () response1["pressed"] == False () response1["pressed"] == True () response1["p…
  • I think I've partly figured out what the problem is by using print response1. So if we have this output (which what I posted before): responsekey 4 4 1 1 0 responseport 0 0 0 0 0 responsetime 1802 1906 1773 1885 1764 responseyn yes no ye…
  • Well, I already tried that, but it doesnt matter for the data collection. It's giving the same output as with the break indented a level earlier. Also, the only reason I get the response times around 1800 ms is because I put an inline script befo…
  • Ok, so it seems that it sort of works now, but it doesnt save the data correctly: this is the code I've been using for a loop of 5 cycles (I put the inline script after the stimulus). if dev.is_response_device(): dev.reset_base_timer() …
  • Well, the problem is a bit that when I run the code, Opensesame becomes unresponsive, and I have to shut it down. (that's what I meant by 'crashed'). So even if I print something, I wont be able to see the result in the debug window because Opensesa…
  • Ok, so I'm working on it now. I placed the following code at the beginning of the experiment, in the prepare phase: import pyxid # get a list of all attached XID devices devices = pyxid.get_xid_devices() dev = devices[0] # get the first devi…
  • Hi Sebastiaan, thanks for the honest advice. :-) I''m working my way through a codecademy python introduction course (which so far has proven to be worthwile), but I thought that I might verify how my current (improved) understanding of python h…
  • After importing the pyxid library the python code is the code underneath. So I have three questions: * Where should I place this code in my experiment? * "The response is a python dict with the following keys:" So what is a python dict? a…
  • They will be RB Series response pads: http://cedrus.com/responsepads/
  • Ok, so the final decision was to use two response boxes (rather than joysticks). Do these work with a similar python script? or do I need to go about this differently? Cheers
  • I had just had them replace my entire computer. Problem Solved. Thanks!
  • Ok, so I tried running it with PsychoPy, and got the following error: glActiveTexture is not exported by the available OpenGL driver. VERSION_1_3 is required for this functionality.
  • Ah, yes, I didn't know they were already differentiated. So I should fill either 1 and 3 at the correct response section whenever I want participants to click respectively either left or right?
  • I'm using the latest opensesame version. I'll try reinstall Psychopy
  • Ok, so this is what I got: Python 2.7.5 Type "help()", "copyright()", "credits()" or "license()" for more information. Type "modules()" for details about installed modules and version information. Use the "print [msg]" statement in inline_script …
  • Ah, how do you run stuff in the debug window? I just wrote it down there, but it didn't do anything when I entered, and I couldn't find a 'run' button anywhere...
  • Nope, I already checked the resolution. When I run your code in an inline script, the debug window shows: *Warning: OpenGL does not support window mode. OpenGL will be deactivated! Traceback (most recent call last): File "dist\libqtopensesa…
  • Great! thanks! So would I need a specific Python script to allow me to record the response times of both joysticks to the same stimuli? Or can I somehow do that through a Opensesame button?
  • Or for example 2 joysticks?
  • And would for example 2 response boxes, or 1 response box and one mouse work?
  • Well, key-presses are not really ideal because of latency issues. I would be able to get response buttons (which would delay the experiment a bit), but I would really prefer that or a mouse.
  • "In what sense are they blank? Is the script gone when you open the experiment in OpenSesame? Or does the experiment look fine in GUI but the forms don't appear when you actually try to run the experiment?" They are completely blank in the flowli…
  • This is the script within one of the items. set allow_multiple "no" set description "A simple multiple choice item" __question__ Neem je het aanbod van W. van den Berg aan? Als je dit niet doet krijgen jullie beiden aan het eind van het experime…
  • Yes, now it works. Thanks a lot for your feedback! Best Wouter
  • Hey Lotje, Thanks, that seems to be what is going on. The only problem now is that the games (which would be l1 and l2 in your screen) consist out of multiple screens including sketchpads, tekst forms, and feedback items. This is necessary becau…