eduard
About
- Username
- eduard
- Joined
- Visits
- 1,402
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi Erwin. The mod function returns the residuals from a division. See here. So if you take the var.subject_nr and take the modulo with 4, you will always get values between 0 and 3. Then, you have to have a matching of condition to ID. So if you ha…
-
Hi, So you don't want to repeat a sequence but only a previous item in that sequence. Is that correct? Can you try to replace u'sequence_name with the item's that you want to run? Eduard
-
Hi Kezzo, I don't have much experience with video playback myself, so I'm just guessing here, but which video plugin do you use? Maybe if you switch to a different one, it will work better? Eduard
-
Great that you sorted it out!
-
Hi Patricia, I think I encountered this behaviour before. Can you try to click somewhere outside the prepare window, before you press save? The changes you type into the inline_scripts only take effect, once you leave the window, so technically, yo…
-
Hi Bob, That's a nice question. Later today or this week, I try to make a little example to show you how this could be implemented. Be patient (but remind me in case I forget). Eduard
-
Hi Kantartur, Try to set the duration of the sketchpad to 0 and add a keyboard_response_item after it. In that one, you set the allowed_response to the key that you want your kids to press. Does that make sense? Eduard
-
Hi Sil, First, I recommend you first get familiar with Opensesame in general and how to use the loop table to create your conditions. The step-by-step tutorial is a great way to get started. From the brief description you gave, it is ahrd to give …
-
Hi, Given your information, all backends would do fine. In fact, you can make your experiment and later decide which backend to use. Normally, experiments are completely transportable from backend to backend Eduard
-
Hi Masoud, Maybe, you could take then the time of the keypress on the target vs. the onset of the target, but I don't have much hope that this will do it. Even if it gave sort of reasonable values, it will most likely have quite a bit of variabilit…
-
Hi, You want to check out coroutines. Let me know if you need more help. Eduard
-
Hi Masoud, I don't know how accurate it is, but you can take the difference of the variables time_new_logger_X and the corresponding time_target_X. As you have different target sketchpads and loggers per block, you have to select the correct ones. …
-
Hi Masoud, Attached the updated experiment. The main problems were that you call each separate loop in the prepare phase of the inline_script and that you haven't use a keyboard_response item at all, to collect the responses for each trial. Furthe…
-
Hi Shradha, There are two ways: 1) A little crude, but you can make a simple loop with a sketchpad (for the cube with a duration of 0), a keyboard_response (duration keypress) and a logger. The trick is to set the number of repetitions of the loop…
-
Not particular reasons. If anything, then using a feedback item will be slower, as it is executed in the run-phase. So if you need precise timing and have heavy displays, feedback items shouldn't be used (or the timing should be tested, at least). …
-
Hi Paolo, Sketchpads are drawn in the prepare phase, that is everything that is included in making them, needs to available at the prepare phase. To use information that are only computed in a trial itself (like RT), you should use feedback items (…
-
Good question. I had a quick look, but couldn't find an upload functionality either. Maybe the owner has to give the permission rights to upload things? @labovich: Do you have an idea on how other people can upload their experiments to Opensesame4du…
-
Hi Sofie, You could use co-routines. Probably I would also use the sampler from within an inline_script instead of the samler item. That gives you a little more control. So your co-routine, would have the image that runs for 9000 seconds, an inli…
-
Hi Masoud, If you want to know whether anything is wrong with your experiment, you have to upload the file so that we can check (and give more info on how it is supposed to work), otherwise it is impossible for us to say what is wrong (in case some…
-
Hi Samoel, The trick is to set the duration of the keypress to 0 (zero), but add a keyboard_response item directly after it. There you can set which key you want participate to press. Good luck. Eduard
-
Hi, I guess it depends on how you open them? If you use f.open(file) to open them, try f.close(file) to close it again. Eduard
-
Hi Maxime, Check out forms. With them you can make simple multiple choice forms. based on a certain response, you can adjsut the run_if fields of upcoming sequences. Good luck, Eduard
-
Hi vatsal, Attached the updated experiment, something was weird with the run-if statements. The load 5 blocks intervened even I set them to never be executed. Don;t know why this was, but for sakes of testing the load 4 condition, I deleted all the…
-
Hi, (Quote) Change this line: text = "Adjust volume of sound %s. \n\n\nCurrent volume is %s"%(sIdx%no_sounds,samplers[sIdx%no_sounds].volume) to: text = "Adjust volume of sound %s. \n\n\nCurrent volume is %s"%((sIdx%no_sound…
-
Hi Sandra, First of all, (Quote) all_stimuli, because it has the stimuli in the right order in it. To better understand what the code does, you can also run it line by line To be able to use a variable in a sketchpad you have to store it as part …
-
Hey, Nope, your computer is fine. The problem is that Opensesame can't handle two keys being passed as correct_response. I don't think this is intended, right @sebastiaan? As far as I remember it did work in the past, though? At any rate, until th…
-
Hi Cagdas, I don't really get what you mean exactly. You start playing the samplers before the loop, so even if you have those intervals between them, they will overlap once the last sounds begins to play (unless you have very short samples). In th…
-
Hi Darby, (Quote) Why would that be? In a sequence you can specify all kinds of conditionals in the run_if field for a specific item. In your case it probably would be something like [response] = 'yes'. Have you tried that? Eduard
-
Hi vatsal, (Quote) No, because I randomize the letter list, before I pick the last item. Therefore, the target will be random. Using random.sample is a good option, but given your constraints, I'd probably use a different routine. letters = list(…
-
Hi Sandra, Try that here: import random#i'll implement it with letters for times sakestimuli = ['S']*24 # 24 Ss as targetsfillers = ['F']*72 # 72 Fs as fillerscombined = stimuli + fillersrandom.shuffle(combined) # randomizeall_stimuli = combined[0…