sebastiaan
About
- Username
- sebastiaan
- Joined
- Visits
- 7,303
- Last Active
- Roles
- Administrator
Comments
-
Hi @Arno , The script in your experiment assumes that there is a variable called io that corresponds to the dlportio library. However, this variable needs to be created first, in a simple script. The procedure is explained on this page: https://os…
-
Hi @martina.pirruccio , In coroutines you need to indicate both when an item should start and when it should end (unless it's an item, such as a sketchpad, that only has an onset). If you look at, for example, coroutines_ctrl in your experiment, yo…
-
Hi @Megski , In OpenSesame, you can do much more in a Python inline_script than you can do in an inline_javascript . For example, in an inline_javascript there is no Canvas object, etc. You can find more information about that here. So the main i…
-
Hi @esraoguz , Forms are not supported in OSWeb. (You can see a list of supported functionality here.) But you can also collect multiple-character input with a combination of scripting and sketchpad items; not terribly elegant, but it works for sim…
-
Hi Maike, What happens exactly? Does the experiment start and then freeze, and if so, do you see a black screen or something else? Or do you get (as the title of the post suggests) a "Python has crashed" error message? Cheers, Sebastiaan
-
Hi Katharina, If you have no admin rights, then you can download the 'no installation required' package. That you can simply unzip and run from any location without requiring admin privileges. https://osdoc.cogsci.nl/3.3/download/ Cheers! Sebastiaan
-
Hi @Katharina , You can install pyxid2 through Anaconda in OpenSesame 3.3 by running the following in the console: %pip install pyxid2 I see in the screenshot that you're running 3.1.9. So this would be a good moment to upgrade :-) Cheers, Sebasti…
-
Hi @SushiSushi , The script excerpt doesn't contain any code related to sending triggers 😉 So yes, please provide the full experiment or at least a working example (i.e. something that I can open in OpenSesame) that illustrates the issue. Cheers! Se…
-
@eduard @maj_zmaj In JavaScript, there's no items object as there is in Python. However, the code that was posted at the start of the discussion doesn't seem to do anything that a regular run-if statement ([correct] = 0) couldn't do. Or is there a …
-
Hi @debz , In the Block loop, my Source is a csv-file with one column (header "sound") that lists all these wav-files the experiment needs. OSWeb currently doesn't supported using a file as a source for the loop table. So that's most like…
-
Right, this code requires that you run the experiment in a browser! The inline_javascript item works to some extent on the desktop, but not when you're really diving into the browser internals, like this script does.
-
It's just intuition, but seems to work, the lap between sound_onset is about 2025, but never perfectly 2000. Is the perfect 2000 achiavable? Yes that's possible, but it requires a little scripting to take into account the preparation time, which wil…
-
@Daniel Could you give this experiment a spin on Safari?
-
See my reply here. And please help us keep the forum clean by not asking the same question twice!
-
Hi Nikita, One way to do this is to take control of key-press events directly in JavaScript. You can do this by registering a function that receives keydown events and processes them. To make sure that this function doesn't interfere with the rest …
-
If you set the duration of the sound item to 0, then the sound will keep playing in the background while the experiment advances to thevoice_key_script .
-
Hi @Mira , You cannot reduce the preparation time (although it varies depending on the backend, so you could try another backend to see if that reduces it). But you can reduce the variability of the preparation time, so that you can better control h…
-
Hi @Ayelet1234 , The only way to do that would be by creating an online experiment and then passing a link to the participants. https://osdoc.cogsci.nl/3.3/manual/osweb/workflow/ Otherwise the participants will have to download OpenSesame! Cheers, S…
-
Hi Katharina, I don't have this device myself, so I'm blind-coding this. But I think something like the following should work. At the very start of the experiment, add the following code to the Prepare phase of an inline_script : import pyxid2 devi…
-
Hi @SushiSushi , Could you upload the experiment script here, or an example of how you implement this? Without seeing the actual experiment it's a bit difficult to tell where this problem might come from. Cheers! Sebastiaan
-
Hi @SushiSushi , Your trick of measuring preptime is a good one, because you can print this value out and see how much preparation time there actually is. If this is high (say approaching 1000 ms) then this is likely because stimulus preparation ta…
-
HI @NikitaAdhikari@nikitaadhikari1 , This is exactly the kind of scenario where coroutines are useful. coroutines allow you to run (certain) items in parallel while specifying their start and end times. This allows you for example to present a ser…
-
Hi Lily, The following browsers should be supported: https://osdoc.cogsci.nl/3.3/manual/osweb/osweb/#supported-browsers So both Safari and Internet Explorer should work. Could you post the error message from the Safari error console? Cheers! Sebasti…
-
Hi Christian, These dependency problems can be tricky to resolve. I think what may have happened is the following: You tried to install python3-opensesame-plugin-psychopy This resulted in an attempt to install python3-opensesame as a dependency (…
-
Hi @paulzerr , I've experienced this too a few times. It's a bug, clearly, but because it's rare and hard to reproduce I haven't been able to pinpoint and fix it. Does this happen often for you? And if you, do you have steps that reliably trigger th…
-
Hi Nikita, The easiest way to do this is using coroutines , which allow you to run multiple items in parallel. In your case, you could present the stimulus sketchpad at time 0, a blank sketchpad at time 1800, and then have a keyboard_response act…
-
Hi @vikramrao , coroutines are not currently supported by OSWeb. That being said, @Daniel has been working on implementing them, and you've been using this as-of-yet unfinished (and buggy) implementation. But maybe @Daniel would like to know more a…
-
Hi @Liat_Israeli_Ran , The legacy backend changes the resolution of the monitor, in your case to 1024 × 768. Therefore: X = 0 (left) as recorded by the eye tracker corresponds to X = (1920 - 1024) / 2 = 448 in video coordinates Y = 0 (top) as record…
-
Hi Mohamed, You've posted this question in the OpenSesame support forum. But it sounds like you're actually Matlab, and not OpenSesame? Is that correct? In that case, I'll move this discussion to the Miscellaneous category. Also, the way you phrased…
-
Hi @Jules_23 , I'm going to assume that you have a typical trial-block structure with a block_loop that is wrapped inside an experimental_loop. If so, you can simply add all 144 stimuli to the loop table of the block_loop, and then set the Repeat va…