sebastiaan
About
- Username
- sebastiaan
- Joined
- Visits
- 7,306
- Last Active
- Roles
- Administrator
Comments
-
Right, no, sorry. You do not need to add a blank screen at all if you use this script. If you look at the code you will see that the blank canvas is already in there. So you just need the following sequence: * my_sketchpad (duration = 0ms) * inline…
-
That's because each trial starts with an empty screen during which participants are not allowed to respond, right? So yes, all responses that are given during this period are lost. If you remove the empty screen at the start of the trial (and possib…
-
You are right! I din't notice at first, because I did not have an empty screen before the sketchpad. The problem is that the keyboard is not flushed, so it responds also to pending keypresses (without proper timestamps). The following modification t…
-
I tested it again, and for me it works perfectly. The only thing is that timeout2 is the total timeout, so for you that would be 400+1750 = 2150. But that shouldn't be the reason why you get negative RTs. Could you maybe describe the structure of y…
-
a.) run an expernal script between each item presentation You mean that you want to alternate between presenting stimuli using the OpenSesame sketchpad and running Python code? Sure. Or in short: Can I export and import csv-data between each trail…
-
You can insert the code from this discussion as an inline_script where you would normally insert a keyboard_response, and it will behaved as described there. So you can just pick and choose, and use inline_scripts only where necessary. You certainly…
-
I tried using the pygame function mouse.set_pos([x,y]), but get the following error: That's because a mouse object is not the same as the PyGame mouse class, and doesn't have a set_pos() function. It is a layer on top of the selected back-end, whic…
-
I noticed that the feature request on github for this was depreciated? Right, yes. That's because a 'break if' statement has been added to the loop in the development snapshot. This effectively serves as a while loop, thus deprecating the feature r…
-
Hi Peter, Right, I can see why this would confuse you (it confused me too for a bit). The thing is that OpenSesame tries to prepare the trial_sequence, even though it will not be executed ('run if = never'). Because the preparation occurs before th…
-
I think something must have gone wrong with copy-pasting the code into OpenSesame's inline_script editor. Please make sure that all the indentation etc. is correct. If it doesn't work you can just copy the relevant bits by hand. The script itself sh…
-
Hi Peter, This is not trivial, as you have experienced, but I thought of a better and simpler way to do it. First, don't put trial_sequence in a loop, but at the start of the experiment with 'run_if = never' or in the 'unused items' bin (or anywhe…
-
Hi Seth, The duration of the sampler/ synth is perhaps a bit counter-intuitive. There is 'duration = sound' which means that the sampler/ synth will block the experiment until the sound is done playing. I imagine that this is what you have selecte…
-
I run the script and it gave a coherent M and SD, but it didn't print any .txt. Is there anything else I should check? Nope, that's all. Basically it checks the interval between two display presentations. This should be larger than 50ms, match the …
-
OpenSesame cannot by default run through a series of experiments. But since you can use the OpenSesame runtime as a Python module, you can write a simple script to do so. The following script might get you started: #!/usr/bin/env python#-*- coding:…
-
Sure, the following command in an inline_script will set a variable that is accessible throughout the experiment: # Uncomment for 0.25 and before#exp = self.experimentexp.set('my_variable', 'my_value') Alternatively you can edit the general script…
-
I see. So if I understand correctly, you don't have a different item for each single question (which is indeed not necessary), but you do have a different loop for each questionnaire? And because you have around 30 questionnaires, this adds up to lo…
-
That doesn't sound very good. A 30-60s delay after each click!? I'm not sure what could cause this. I imagine it will become a bit slower if you have lots of items, but nothing like this (although I've never built an experiment as large as yours). …
-
Ah, thanks for pointing that out! It's a bug in the way that the Unicode notation (U+1234) is parsed, but it should be easily fixed. Good to hear that the script is working for you.
-
I see. I took me a while to understand what was happening here, but the basic problem is that the i is not automatically put before the preceding character. The Unicode notation for the i sign is U+093F, so U+0915U+093F should become U+093FU+0915…
-
Hi Eamccullough, You've already managed to get further than I have! Could you explain in more detail the steps that you have taken so far to show the Hindi text (i.e. how are you showing the text? What font are you using?). Alternatively, a quick …
-
Regarding a better (restrained) way to get the response, I was thinking you could draw a straight line from the center in the direction of the cursor. So basically the participant controls the arm of a clock with his mouse. What do you think? Someth…
-
Hi Caiman, Your code looks pretty good (and works), but I take it you're not satisfied with it? I don't understand the following: I'm missing the method to introduce the percieved time of the two events. What exactly do you want to achieve that t…
-
Hi Dorgar, That's possible, but you'll need to use some inline code to do so. The script below shows how to loop through a number of responses, reducing the timeout with each response so that the total timeout is 60s. This should hopefully get you …
-
Hi Abeyko, Not really, at least not without inline script. If you want to present a background sketchpad, followed by a separate background+object sketchpad, you would need to add the background to both sketchpads. If drawing the background twice …
-
Hi Markku, Sure, with a bit of inline code you can maintain the feedback variables yourself, so that you can give feedback on saccade latencies (or anything) as you normally would for response times. This discussion should be useful (it includes a …
-
Hi Stoph, Sure, you can read the contents of a text file into a variable, and then show the variable using a text_display item. Let's assume that you have a text_display item that shows [my_text], i.e. a variable called my_text. You can then add th…
-
Hi Christerwi, You can change the stop criterion to anything you like. Above it was a fixed duration, but the code below shows how you can stop recording after a key has been pressed. This script is just a snippet that you need to combine with the …
-
Hi Waz, I just looked at your experiment, and I noticed that you are using the Psycho back-end. With OpenSesame 0.25 there were occasional problems with the clock in the Psycho back-end (see this discussion). These issues were very hard to reproduc…
-
Hi Theresia, after using OpenSesame 0.25 (Windows XP) for a while I'm really impressed how much faster 0.26 works!! Good to hear! Is there anything new/different in 0.26 in terms of the sketchpad? Are there only certain font-sizes allowed? I real…
-
Hi Waz, That is very strange! So you got negative (strange) RTs when running subjects, but if you now run the same experiment again you get different (normal) results? It's difficult for me to say how this happened and whether you will be able to r…