lvanderlinden
About
- Username
- lvanderlinden
- Joined
- Visits
- 1,620
- Last Active
- Roles
- Administrator
Comments
-
Hi, What Andrea meant is that you accidentally changed the 'l' in the for statement to '1'. And in your most recent post, you named the list '1' instead of 'l'. The code should be as follows. For the sake of clarity, I renamed the list to 'sequenc…
-
Hi Noam, You're welcome! I don't completely understand what you mean by 'a variable that counts the responses within a trial'. Is the participant giving multiple responses in one trial? In general, all items in your experiment are automatically c…
-
Hi, Welcome to the forum! (Quote) No, a loop item can only be wrapped around one sequence item. And a sequence item can only run it's content in sequence. What you could do to run your four small sequence items in random rather than sequential or…
-
Hi Patrick, Herewith a couple of suggestions that could help you to log the rating-scale reponse: 1. The keyword 'var' indicates the header of the column in the output file that contains the answer of the participant on the rating scale. In your …
-
Hi Kiri, Does this happen when you run Wouter's experiment? Or your own script? Are you sure you set your variable (say, 'sentence') like so: exp.set("sentence', sentence) and then refer to it in your loop item like so: [sentence]? And did y…
-
Hi Kiri, What do you mean exactly by 'printed out'? In Wouter's example experiment, the in-the-loop-item defined variable 'bla' is printed out, isn't it? This is done by the line print exp.get('bla') which he placed in the Run phase of his secon…
-
Hi Jason, We forwarded your question to the developer of the media_player_vlc plugin. Best, Lotje
-
Hi Noam, I think it's a good idea to make a Python dictionary at the start of your experiment, containing the possible keyboard presses as keys, and the corresponding probabilities of sketchpad1 as values. For example: # Make a dictionary contain…
-
Hi Kiri, To keep your pasted code readible you could use Markdown syntax as described here: * http://www.cogsci.nl/forum/index.php?p=/discussion/2/tips-and-tricks-e-mail-alerts-formatting-account-settings#Item_1 When you write your collection of …
-
Great to hear! :)
-
Hi Andrea, You could determine the experiment folder by using the built-in Python module os: # Some important paths. On Windows, the working directory# is always the OpenSesame program folder, on other platforms# it may not be. import osprint 'Th…
-
Hi, The get_file() function first looks in the file pool and then looks in the folder of the current experiment. So path = exp.get_file("my_image.png") will return the full path of the image, even if it's not stored in the file pool but …
-
Hi Noam, You're welcome! Good luck with your experiment and don't hesitate to post more questions! Best, Lotje
-
Hi Noam, If I understand correctly, a given keyboard response should lead to the appearance of a 'desired' sketchpad in 70% of the cases, whereas it leads to a different sketchpad in the remaining 30% of the cases. Is that correct? The explanation …
-
Hi, Creating an IAT with OpenSesame is certainly possible. Perhaps you could start by familiarising yourself with OpenSesame, for example by following the step-by-step tutorial: * http://osdoc.cogsci.nl/usage/step-by-step-tutorial/ If you have an…
-
Hi Boris, Perhaps you could take a look at a previous thread on this topic: * http://forum.cogsci.nl/index.php?p=/discussion/comment/1054#Comment_1054 If this does not completely answer your question, feel free to post again! Best, Lotje
-
Hi Boris, The first line of your if-statement should end with a colon, like so: if exp.get('correct') == 1: For more info on conditional statements in Python, see: * http://docs.python.org/2/tutorial/controlflow.html#if-statements
-
Hi, Making variables global is only useful for future use within another inline_script item. For future use of a given variable in the interface (such as feedback items, but also, importantly, your logger item), you should set the variable like so:…
-
Hi Boris, In your second piece of OpenSesame code draw textline 0 -164 "Temps4: [response_time] you don't end the to-be-displayed string with double quotes. It should be: draw textline 0 -164 "Temps4: [response_time]" Could th…
-
Hi, Sure, that's possible! The easiest way to implement questionnaires is by using the form plug-ins. What kind of form(s) is/are optimal for your situation depends on what kind of questionnaire you want to build exactly. More information about fo…
-
Hi, In your experiment it's not surprising that participants cannot respond until 1000ms-since-sketchpad-onset have passed. Because a trial sequence is ran in sequential order, the keyboard item is simply not initiated by then. To collect response…
-
Hi Boris, Welcome to the forum! Such pseudorandomisation functionality is not (yet) implemented in OpenSesame. Perhaps you could try Mix (only for Windows, unfortunately), a program that allows you to generate trial orders according to a wide rang…
-
Hi, Perhaps you could ask your participants to just click on the object of their choice. How to implement clickable image buttons is described here: * http://osdoc.cogsci.nl/forms/imagebutton-functions/ The following script (which should be place…
-
I just want to add that if you don't want your code to be specific to only one screen resolution, you could also use the built-in variables exp.width and exp.height, like so: w, h = exp.width, exp.height
-
Hi Elizabeth, I think we figured it out! PsychoPy indeed uses the notation as described earlier, but for the sake of consistency between backends, the psycho backend in OpenSesame then converts this to coordinates with their origin at the top left.…
-
Hi, (Quote) To clear all pending output you should call the flush() function before the get_click() function. This is exactly how the mouse_response item works as well. So: my_mouse.flush() button, position, timestamp = my_mouse.get_click() If …
-
Hi, To allow mouse responses only in a certain area of the display you will need a little bit of inline coding. The following scripts should give you an idea of how to achieve this. Simply put the scripts in the Prepare phase and the Run phase tab …
-
Hi, With regard to your first question, I have assumed that your experiment should look as follows: * Participants are presented with a stream of slides. They perform a go-nogo task for which they have to make a mouse click if the slide is oriente…
-
Hi Wouter, I would like to refer you to this previous thread: * http://forum.cogsci.nl/index.php?p=/discussion/206/open-key-realease Hope this helps! Please let us know if you have any further questions! Best wishes, Lotje
-
ITA Hi, We will get back to you as soon as possible! Best, Lotje