Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

sebastiaan

About

Username
sebastiaan
Joined
Visits
7,303
Last Active
Roles
Administrator

Comments

  • I would implement the flicker paradigm with the script I posted above. In principle, it is possible to use loops and sequences to do this, but it will end up being much more complicated. Basically the script is ready for use as is (although you can…
  • Hi Joe, Could you provide some more details, such as how you specify which video should be played. Please also include the full error message. Cheers, Sebastiaan
  • Closed as duplicate of #667.
  • (Quote) A flicker paradigm is probably best implemented with an inline_script, because it's fairly dynamic. Below you see an example that you can modify to fit your particular experiment. The basic idea is that you present one canvas, then poll the …
  • Could you please post the debug information from /sdcard/opensesame-debug.txt? See also: * http://osdoc.cogsci.nl/getting-opensesame/android/#debugging Cheers, Sebastiaan
  • That would be a great initiative! Feel free to post your ideas here on the forum once you get around to it, so that we can see whether there is a demand for this (I suspect so) and what a good implementation would look like.
  • Well, this is a bit of a spot-the-differences situation! You are using PyLink's doDriftCorrect(), whereas my example uses libeyelink's drift_correction(). This last function captures the Escape press. (Quote) No, that's hard-wired for the moment, a…
  • (Quote) This is indeed a known bug (issue). It has been fixed in the development release, so you could try the latest development snapshot of 2.8.0. * http://osdoc.cogsci.nl/getting-opensesame/development-snapshots/ Alternatively, if you prefer to…
  • (Quote) Good to hear! (Quote) I don't think anyone is actively working on this, but of course it would be a great resource to have. Are you asking because you are thinking about setting up something like that yourself? Cheers, Sebastiaan
  • Hi Martijn, You could catch the exception thrown by pylink.getEYELINK().doDriftCorrect() through a try ... except ... statement. However, the script I posted above already does this (thanks to @Wouter actually). so I would just use this libeyelink …
  • Hi Midas, system-default is kind of a dummy theme that adopts the native theme of your operating system (well, it will try anyway). If you select a different theme (via preferences, Ctrl+Shift+P), you should be able to edit the colors etc. Or simpl…
  • (Quote) Yes, that would be these: # get a list of all attached XID devicesdevices = pyxid.get_xid_devices()dev = devices[0] # get the first device to use (Quote) No the logic is slightly different. First it checks whether dev is even a response de…
  • This question has come up a few times already. The following discussions may help you get started: * http://forum.cogsci.nl/discussion/158 * http://forum.cogsci.nl/discussion/38 And, as Mark says, a video should work as well, of course. Cheers! S…
  • (Quote) Not necessarily, but it will avoid problems when you combine your inline scripts with other items that do follow the prepare-run strategy.
  • Hi Lee, You are first showing trial_display and then stripes. As I explained above, this will not cause the contents of both canvas objects to be combined, but will first cause (only) trial_display to be shown, followed by (only) stripes. In your …
  • Hi Mark, I suspect that you will be the first to do this. I looked up the Psi marginal method and I assume you are referring to Prins (2013, J Vis), right? That looks pretty complicated, at least at first glance. But assuming that you are familiar…
  • Ah right, yes. I figured that calling doDriftCorrect() would automatically result in a call to draw_cal_target(). But indeed it doesn't, which makes things a lot easier. As a small tip, note that doDriftCorrect() can fail, so ideally you would impl…
  • Hi Martijn, pylink, and therefore also libeyelink which is built on top of it, uses a pretty complicated callback system for drawing things during drift correction, calibration, camera setup, etc. So an easy way? No not really I'm afraid. What you…
  • Hi Martijn, This is not part of libeyelink, but you should be able to do this through pylink, the official EyeLink Python library. The Pylink manual mentions a function called getButtonStates(), which suggests that you should be able to do somethin…
  • Hi Lee, A canvas object is not transparent, so you cannot combine the content of two canvas objects. What you can do, is first copy the canvas from a sketchpad and then draw extra things on it, like so: my_canvas = self.copy_sketchpad('sketchpad1'…
  • The problem, as you probably suspected, is that the form_text_render plug-in is missing or not properly installed. You can download this plug-in from the GitHub source code, and simply copy the form_text_render folder to your OpenSesame plugins fold…
  • Hi Wouter, I appreciate that you want to get started as soon as possible, but you will have familiarize yourself with the basics of Python to get this working: It's not simply a matter of copy-pasting the code in the right location. You will need t…
  • Hi, Could it be that the sampler simply plays back the marker sound through the speakers, and that the microphone records this sound? Because a microphone is (usually) mono, the marker sound (and the voice) will then be recorded on both channels (i…
  • Hi Martin, For me, your experiment works fine. You should see the mouse response in the following columns: * response and response_mouse_response * cursor_x * cursor_y * response_time and response_time_mouse_response The response should be 1, 2, …
  • Hi Wouter, Cedrus provides Python libraries, which you can use in OpenSesame. You should be able to download the Python library, copy the pyxid folder into your OpenSesame program folder, and simply use the library as illustrated in the readme.txt:…
  • Thank you for sharing!
  • Hi Noam, Sure, what you could do is add a variable to the block_loop called contingent and give this variable the values 'yes' and 'no', to indicate whether you want the duration of the red circle to be contingent on the response or not. Then you a…
  • You can add a short inline script to the start of your trial sequence to ensure non-slip timing: * http://forum.cogsci.nl/discussion/298 Basically, this script waits at the start of each trial until a fixed period since the start of the experiment…
  • Hi, Recording audio is not, as far as I can tell, possible using any of the modules included with the Pygame subset for Android (pgs4a), which OpenSesame is based on: * http://pygame.renpy.org/api.html It might be possible to record Audio using t…
  • Hi Gladys, (Quote) If I understand your problem correctly, there is a logical obstacle here: If you have only 10 trials, and you want every trial to be presented exactly once, then you cannot repeat any trials when the participants make errors, rig…