Edwin
About
- Username
- Edwin
- Joined
- Visits
- 95
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi Daan, Your approach is correct! Could it be that you have placed the code for the random number in the Run phase of an inline_script item? It should be in the Prepare phase, as this is when the sketchpad is constructed. For more info on the diff…
-
You could save yourself some work, by defining the questions in a variable in your loop item (e.g. quest), and then referring to this variable in a single slider item in the sequence item attached to your loop. Do this by using square brackets: [que…
-
Hi, If I understand correctly, you present a stimulus every 200 ms, but assume that participants can still respond to this 1500 ms after. This would mean you will have trouble assigning responses to stimuli afterwards. An example: stim1 occurs at …
-
Hi Mona, Actually, the parallel port plug-in works on Linux as well, using the parallel module (or an onboard modified version). This might just work on OS X, as the architecture is pretty similar. I don't have any experience on this, though (frank…
-
Hi Asma, The slider plug-in's response variable is response. Variables cannot be recoded in the way that you suggest. If you cannot see the response variable in your logger's variable selection, you can select "Add custom variable" and a…
-
Excellent! More information on the portable packages can be found here (for future reference).
-
Hi Antonie, You're using an older version of the portable package (0.27.1). If you download a newer version (see under WinPython, either 0.27.3 or 2.8.1), does the problem persist? Thanks, Edwin
-
Not sure which script you used, but I assume it's the simpler one (not PyGame specific). I've added two lines in there to call the get_key until all previous input is gone. Now the script should only collect the stuff typed while the second sketchpa…
-
That's curious! Could you post the code of the experiment online, or email me the experiment? We'll keep the discussion on the forum, but this would be the easiest way of checking your entire experiment (since, at the moment, the problem could be in…
-
Good to hear you've found the bug in your code. There are tons of ways to import stuff into your experiment. The best solution depends on what kind of information you need to add in there. input and raw_input might not prove to be optimal, as OpenS…
-
There's nothing wrong with your PC, just with your experiment's logic. 1) You're importing stuff twice, and in different inline_script items. Please note that the thread you link to in your opening post, speaks of placing the imports (and further s…
-
Although I haven't looked at your script, I can tell you where the error is likely to come from: a missing bracket somewhere before line 125. Even though it only crashes here, it probably does so because up to that point, the syntax has been interpr…
-
Hi Shilo, Do I understand correctly that you use a regular form_text_input, but that this does not register the first typed character? If so, could you post the script of your experiment, or a clearer description of what you're doing precisely? Ch…
-
You could add the same labels in all of the sketchpads that you use. If you're doing something else (e.g. using different items for stimulus presentation), please give us a clearer description of what you are doing, and how you are trying to do this.
-
Hi, You will not be able to do this using just the OpenSesame GUI, but you could use Python inline scripting to get the same result. So it will be a very good idea to learn some Python. A general approach could be the following: 1) Specify the fo…
-
Hi, Glad you solved this in the meantime. To answer your question on the setting of the mouse position: regrettably, this is not possible using the psycho back-end, due to the fact that PsychoPy's pyglet back-end does not support this. On the comm…
-
Hi! This is doable, but will require some inline (Python) scripting, as it will not be possible to do it using standard OpenSesame plug-ins. In general, what you will need to do, is to read the CSV output from the previous participants. This is qu…
-
Have you defined a variable name using only numerical values? E.g. "10". Also, why are you using self.log in the inline_script to log a timestamp? Wouldn't it make more sense to set the timestamp as on OpenSesame variable, so that it will…
-
The solution is a slightly silly one: there's a syntax/logic error. You forgot to add quotes around the OpenSesame variable name. It should be as follows: self.get("count_trials") Alternatively, so you see precisely what went wrong in yo…
-
Hi Federica, What kind of item is placed directly after the inline_scripts? If it is not a sketchpad (or feedback or any other visual item), the visual stimulus will remain on-screen for longer than the time you might have expected it to do. If yo…
-
Hi Merle, There is a plug-in to present a sinusoidally moving dot, for which the code can be found here. This basically already does what you want, but with a different kind of stimulus. You could try editing the code yourself, and of course: ask h…
-
Hi, What you are doing with the exp.set function is making a variable on the OpenSesame GUI level. This does not actually log the variable, nor it's value! What you probably want to do, is use the inline_script's self.log function. See here for it'…
-
Hi Isabella, You could end your experiment with the following structure: - multiple choice option- loop-- sequence 1 (*Run if* [response] == 'yes')--- sketchpad (ending screen)-- sequence 2 (*Run if* [response] == 'no')--- sketchpad (fixation)--- …
-
Hi Nick, On you first problem: there is nothing you ever have to do manually, if you know how to program well enough. The CSV output can indeed be analysed using a spreadsheet editor like Excel, which offers you functions like IF and SUMIF that see…
-
Code looks fine here! What back-end are you using in your experiment? You will no-doubt experience delay in the running of your loop, because you do a lot of online drawing. PyGame (in the legacy and xpyriment back-ends), however, should still catch…
-
Excellent! Glad you figured it out! I will mark this as solved :) (FYI: click Edit on the original post, then you can adjust the title to say [solved])
-
Hi, Although I am not quite sure what you mean, I think you want to explore inline scripting and the random module. A code snippet, as an example: # import the random module, so we can use itimport random# get response (from previous keyboard_resp…
-
This is why I wanted to know what the reason behind your question was. I issued a feature request for the customizable order :)
-
Excellent! Marking this as solved.
-
The logger always stores the variables alphabetically. See this response in an earlier thread. If you would want to have this in a different order, you will have to implement your own logger using inline scripting. This wouldn't necessarily be too …