sebastiaan
About
- Username
- sebastiaan
- Joined
- Visits
- 7,303
- Last Active
- Roles
- Administrator
Comments
-
Hi Martin, That's pretty cool. I just created a page for standard tasks (see discussion below). I also added yours, basically so that the page doesn't start empty. But feel free to remove it or add a big 'under development' disclaimer if you feel t…
-
Hi Chris, A small update. I have added a documentation page to provide an overview of standard tasks. I added yours as well, but feel free to edit the description, etc. * http://www.cogsci.nl/forum/index.php?p=/discussion/823/ Cheers, Sebastiaan
-
Hi Kevin, Quite a few people have recently inquired whether certain standard tasks have been implemented, so I have just opened a forum discussion for this kind of thing. Please see: * http://www.cogsci.nl/forum/index.php?p=/discussion/823/ Cheer…
-
Hi Dario, Because quite a few people have recently inquired whether certain standard tasks (such as the Stroop) have been implemented, I have opened a forum discussion for this kind of thing. Please see: * http://www.cogsci.nl/forum/index.php?p=/d…
-
Hi Zalian, Do I understand correctly that you want to log the timestamps of the mouse clicks that you're collecting in the inline_script? To do so, you have to save timestamp explicitly as an experimental variables using exp.set() (just like you di…
-
Hi, The error message is not very informative, but basically he problem here is that your trying to do arithmetic in OpenSesame script, which is not supported. Basically, you can refer to variables, like so ... draw textline [x] [y] "this w…
-
Hi Martin, Yes, that seems like a fine solution. But just to avoid confusion about this, which plug-in are you using exactly? Not the form_text_input plug-in right (as I initially assumed)? Cheers! Sebastiaan
-
This is actually due to an outdated version of pyflakes, the module that is used by QProgEdit to validate Python code. See also: * https://github.com/smathot/OpenSesame/issues/225 The solution would simply be to update pyflakes. At any rate, it's …
-
Hi Marios, That's an interesting question. Could you give a concrete example of when a nested list is necessary/ really convenient? It might be interesting to implement something similar for OpenSesame. At any rate, there is no direct analogue of …
-
Hi Jay, You have to indicate that vid_file is a variable, and not literally the name of the video file, by enclosing it in square brackets, like so: [vid_file]. See also: * http://osdoc.cogsci.nl/usage/variables-and-conditional-statements/#using-…
-
Hi, In principle, there is no ambiguity here. The response variable (i.e. the variable indicated in the 'Response variable' field of the form_text_input plugin-in or the one specified using the var keyword in a custom form) will always be set to wh…
-
The key point to note here is that OpenSesame works purely serially. So what you've done is tell OpenSesame to present a sketchpad for 600 ms, and then (after these 600 ms have passed) start collecting a keyboard response with a timeout of 2000 ms. …
-
Hi, Your script is fine and should pop up the virtual keyboard. What exactly happens? Can you see the form on the screen, or does the experiment hang before showing anything? In the latter case, there's probably some problem in the prepare phase o…
-
Hi Daniel, Thanks for spotting this one. This behavior is of course incorrect and I opened an issue for it: * https://github.com/smathot/OpenSesame/issues/235 Cheers! Sebastiaan
-
Hi Hiro, In principle, yes, sending the trigger in an inline_script prior to starting movie playback should be fine. But of course movie playback is complicated and not designed for millisecond accuracy. So if timing is crucial for your experiment,…
-
Hi Asma, Could you paste the exact (line of) script and the error message that is triggered? In general (and in recent versions of OpenSesame), variables that are defined one inline_script also available in other inline_scripts. So the fact you're …
-
Hi, (Quote) The form_text_input plug-in is not flexible enough to do all of this. It simply collects a multicharacter response until the participant presses enter or tab, and that's pretty much it. If you want to have more control over user input,…
-
Hi Bentley, These scripts are so complicated that they inspire me, or probably anyone else, with very little desire to try to understand them! I think if you want to modify them, you're better off asking the technician who wrote them initially. Al…
-
Hi Hiro, If you are using the Windows packages of OpenSesame, pyserial is already included. So you don't need to do anything extra! Cheers, Sebastiaan
-
Good to hear you got it working, and thanks for sharing the script!
-
Hi Zalian, You cannot mix and match tab-based indentation and space-based indentation in Python. If you do, for example by pasting a script from a webpage, you'll get a syntax error like the one you're seeing. This is inherent to Python and not a …
-
Hi Dan, I'm afraid that I don't really see a solution. When the experiment starts, the pygame mixer is automatically initialized, because all back-ends use pygame for sound playback. Maybe contact a system administrator to see if they can do someth…
-
Hi Benjamin, The error is a bit ugly, because it's not properly caught by OpenSesame, but essentially it looks like you're trying to use a non-numeric value as the scale of an image element in a sketchpad. For example, this will trigger the error: …
-
I think you are confusing the name of the experimental variable, i.e. Word5 with its value. If you do this ... Wordvar = 'Word5'exp.set(Wordvar, 'some_word') You will set the experimental variable Word5 to the value 'some_word'. Note that there ar…
-
(Quote) One way is to add the your three sequences to a 'container' sequence and loop, like so: (Image) Then you define a variable sequence_nr in container_loop and give it the values 1, 2, and 3 (so three cycles). Finally, you use this variable …
-
Hi Robert, I don't think that you will receive much help by asking such a broad question, without having made any (visible) effort first. If you are new to OpenSesame, I would recommend walking through the tutorials, and see how far these get you. …
-
Hi Asma, Currently, no, there is not. Although it would be a very useful addition! Cheers, Sebastiaan
-
Hi JB, You mention quite a few things there, but it strikes me that the problematic part is really this: You want to remember on which trials an incorrect response was given, and present these again later on. Right? One way to do this is as follow…
-
Hi Raquel, One (probably the) thing that goes wrong is the division. Let's take a look at this: a = 2*pi*(i+offset_inner) / (n_dist/6) What you are doing is dividing by the division of two ints: (n_dist/6). The problem here is that int divisions…
-
Hi Asma, It's a bit uninituitive, I know, but mouse clicks are reported relative to the top-left, and not relative to the display center. So your error calculation ... err = sqrt((xvar-cursor_x)**2+(yvar-cursor_y)**2) ... goes wrong, because it a…