Josh
About
- Username
- Josh
- Joined
- Visits
- 255
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi Cumhur, Generally, the inline_script item should be a sufficient medium to run any python code. I take it you do know how to work with inline_scripts? In any case, I'm not familiar with the LSL package, but there's certainly ways to send out EEG…
-
Hi Nynke, Yes, all the variables you create in a loop item (so not an inline_script) are logged as is. Hence, you would log the exact value pic_left_0, rather than what pic_left_0 is supposed to refer to. Logged variables from the loop thus reflect…
-
Hi Anouk, In order to log a variable, it has to be 'set', by means of exp.set('picture', imagename) where imagename is the name of your image, be it either a string or a number. You have to make sure that imagename represents exactly what you …
-
Hi Helene, Well, reading is my field of research, and I intensively worked with an eye tracker (EyeLink) and OpenSesame throughout the last year, so I can reassure you that OpenSesame is a suited program and also that it's not difficult :) Yes, of…
-
Hi Frouke, Although this may be a Linux-related problem that I'm not aware of (I don't have Linux), would you mind sharing how you plan to initiate a sound in your experiment? We have to make sure that you initiate and use the sampler correctly of …
-
Hi Sachinthana, How did you construct (i.e. place the squares on) your canvases? At first glance it seems to me that something went wrong there. You could try to present your canvases in a simplified manner, like this: canvas1.show() self.sle…
-
Hi Jasmin, I don't know if you have an actual inline_script aversion, but even if you do, I'm still going to suggest a very simple and minimalistic inline_script implementation. 1) Right before the response form, you insert one of those bad boys, …
-
Hi Anne, Great that you worked out a solution; and yes, I would've gone for inline_scripts as well. Although coding may be a pain in the behind at times, in the end it grants you nearly endless freedom! Cheers, Josh
-
Hi Helene, Perhaps the best thing to do first would be to get acquainted with OpenSesame with an easy tutorial: http://osdoc.cogsci.nl/tutorials/attentional-blink/ Here, make sure you understand the mechanics of the inline_script item; this is whe…
-
Hi, I have no experience in using the parallel plug-in myself (and I've also heard that it is a bit unstable), but I do think this is achievable without the parallel plug-in in the first place. How well it works depends on the desired frequencies t…
-
Hi, This may be due to the settings of your pygaze_init item. When using the "simple dummy" or "advanced dummy", the drift correction item doesn't work because it doesn't have eye postion coordinates to work with. Cheers, Josh
-
Hi, Tons of ideas - but we'd first need to know how experienced you are in OpenSesame. Did you ever use it before? If not, why not start with a tutorial: http://osdoc.cogsci.nl/tutorials/ If you do have some experience with OpenSesame, then we'd al…
-
Hi, It may be best for you to look up some python instructions on the internet (google: "compare keyboard input to variable"). Python code is implemented through the inline_script item in OpenSesame. Here you can initiate the keyboard to…
-
Hi Agnès, I don't see the cursor when I try this out myself. Do you present the stimuli with a sketchpad? Greetings, Joshua
-
Hi Anouk, The resolution of the image is not high enough for me to be able to read the code. In any case, do you really need to use that .txt file, or could you just copy everything to python lists? You could put this in your inline script: left_p…
-
Hi Agnès, Normally you would have a loop item running a (trial-)sequence item, with all conditions appearing at random, meaning you'd have no guarantee of having all durations appear every 7 trials. To take control over this, you could place anothe…
-
Hi, You said you're using an inline_script to set the accuracy of a response. Do you mean the accuracy of a single response, e.g. the further away from a target, the lower the acc? If so, then the variable acc is only the last response per definiti…
-
Hi Masoud, yes that would be possible. Right now you have set space as correct response in the keyboard item. What you have to do, is go to the loop item, and create a new variable named correct_response. Then, you have to indicate the correct res…
-
Hi Masoud, good to hear that it works well. Everything that is created by the keyboard_response item should automatically be logged by the logger. Did you place the logger in the sequence? (for example right below to the keyboard response item). Ch…
-
Hi, You can keep track of time, while being in a loop. The way to do that, is to first indicate a start time right before you enter the loop, by means of start_time = self.time(). Of course you also need to know the duration of your sound stimulus…
-
Hi Masoud, you didn't copy what I said correctly. I said [correct] = 1, you used the line [correct = 1]. Can you see the difference? Cheers, Josh
-
Hi Masoud, make sure that all your commands are on seperate lines when you use code. That means: import random minimum = 1000 maximum = 2500 instead of: import random minimum = 1000 maximum = 2500 Also, I don't think you're using the varia…
-
Hi Masoud, This script should not give any problems. Do you get an error window? What does it say? And what are you trying to do? Where do you use ISI? Cheers, Josh
-
Hi Masoud, I answered this question in your previous post. Cheers, Josh
-
Hi Masoud, For the two feedback sketchpads, what run-if statement did you use? (When you click on the sequence item that they are in, you can see that items are run 'always' by default). In any case, the keyboard_response item automatically creates…
-
Hi Masoud, Based on the script you posted there, ISI would be a random number between 1000 and 2500. Note that you're doing nothing with the ISI_options variable, since the new value for ISI (random.choice(ISI_options)) isn't set with exp.set('ISI…
-
Hi Aysha, I don't really understand your problem. Did you know you can add multiple variables in one loop item? You won't need two loops for two variables. And your experiment idea is really straightforward: in a loop item you have a variable text …
-
Hi Lisa, The multiple choice form text should be displayed in the font you selected. Did you select the serif font by clicking the first item in the overview window (OpenSesame icon, called new experiment by default, reveals settings) and then font…
-
Hi Harold, So setting the form to run always does not run the form? Or do you mean that you can give an answer but it's not stored somewhere? (The latter would be solved by adding a logger to your sequence) Cheers Josh
-
Hi Lisa, So you're talking about a between-subject design? You could use the modulo ('%') for your if-statement. The idea of modulo is that it fits a number as often as possible in another number, e.g. in 10%3, 3 will fit three times in 10, and tha…