Avatar

Howdy, Stranger!

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

Supported by

fladd

About

Username
fladd
Joined
Visits
77
Last Active
Roles
Member, Moderator
Thanked
12

Comments

  • Don't know. Best to ask in the OpenSesame forum. Or maybe @sebastiaan can chime in?
  • Here is a description of the plugin system in Expyriment: http://docs.expyriment.org/Plugins.html. You can use the MIDI input like this: import expyriment.io.extras midi_in = expyriment.io.extras.MidiIn(device, buffer_size=1024) To get a …
  • Hi Friedrich, there is no particular code for recording musical performances, but there is MIDI input and output available as a plugin (see http://stash.expyriment.org). I am not sure what the latencies will be like, though. Best, Florian
  • Mmh, this seems to be related to how Windows handles the Pygame window. If the calibrate method of the pygaze is blocking, then you could simply add a exp.screen.update() afterwards, to ensure a screen refresh in the Expyriment window. If the …
  • In your code, you never send any marker. Also, you do not need to create a marker object for each marker. Assuming, that you want to send a marker everytime a video is being presented, here is some code: import expyriment as xpy xpy.control.defa…
  • Glad to hear that it is resolved.
  • You only need one marker output object. On every call to its send method you can tell it what marker to send. Please also see: http://docs.expyriment.org/expyriment.io.MarkerOutput.html
  • I moved it to the OpenSesame section (assuming this is where it belongs).
  • Wrong forum. Moved.
  • Given your code, the presentation of the blank screen cannot be random. In fact, it is only presented a single time, in the beginning. Afterwards, it is not presented anymore. If you are still seeing it afterwards, it might be related to a potential…
  • Well, in your code above you only present the blank screen once at the beginning of the experiment.Not sure how your current code looks like.
  • Hi, Two things: * You forgot to add your trial to the block: for trial_repetition in range(100): trial = xpy.design.Trial() pattern = xpy.design.randomize.rand_element(patterns) trial.set_factor("Pattern", pattern) trial.…
  • Since the videos are played without hardware acceleration, 4K can indeed lead to dropped frames, I am not too surprised by this. It's a very high resolution. You might consider recoding to full HD (or try with a more powerful machine; i.e. with a mo…
  • What resolution are the videos in? On the machines I tested it on (Windows, Mac, Linux) I could play full HD videos without dropping any frames. How exactly are you showing the videos? Can you post your code?
  • Hi, easiest is to just download the zip (expyriment-master.zip) file. You install it then in the standard way to install Python packages: pip install expyriment-master.zip (assuming you are in the directory wherethat file is located).
  • Ah, now you ironically ran into another bug. This bug, however, is also fixed already, but not in the beta yet. We will release a new beta with the fix soon, but for now, you can install Expyriment directly from the repository. That should work.
  • The error is related to a bug. This has been fixed, but no official new version of Expyriment has been released yet. You can either use the development snapshot directly from the repository (github.com/expyriment/expyriment/) or you can install a…
  • Well, if you are not using the machine via remote desktop, then the problem probably is elsewhere. Maybe you can talk to the technicians at your university about this. It seems to be a machine specific issue (e.g. Windows settings, different drive…
  • Hi there, what exactly do you want to do? Since you mention MEG, it seems that you would like to send markers to the MEG system? If so, you can use the io.MarkerOutput to send markers at any point in time (e.g. right after presenting a stimulu…
  • Hi there, that is strange. One thing I noticed in your system info is that your video card is noted as "RDPDD Chained DD". I think RDPDD is usually reported when using remote desktop. Are you using remote desktop on those machines? Using remote d…
  • So from what I can see is that you are adding all 6 stimuli to the same canvas. From your description above this is not what you want... Simply creating a canvas stimulus in each trial, would solve this. #block1 block_one = expyriment.design.Blo…
  • Hi Tanto, from your post it is not clear weather this is an error in Expyriment, Trajtracker, or your code. Could you post a code example and the full traceback to the error?
  • Hi there, if you use USB triggers (keyboard emulation), then indeed you cannot use the TriggerInput, since this expects a serial or parallel port as interface. Getting all triggers without blocking the code is very tricky. You could do this in…
  • Dear tanto, the code you provided does not run. Can you post a running example?
  • Hi Randi, I thought is was solved. My code above does not work? Can you send me your code and the full traceback of the error?
  • Hi, You will need to set expyriment.control.defaults.audiosystem_sample_rate=16000 before the audio system is started (which by default is right when an experiment is initialized). Hence, put that line right after you imported Expyriment. Howe…
  • It indeed sounds like a mismatch in sampling rate between your sound file and the audio system. However, there is no such thing as "Backend Settings" or "Sampler" in Expyriment. There are two ways to fix this: * Change the sample rate of you…
  • Hi there, why don't you just call the keyboard wait method with the argument wait_for_keyup=False? Have a look at the documentation for more details: http://docs.expyriment.org/expyriment.io.Keyboard.html#expyriment.io.Keyboard.wait
  • Not sure if I understand you correctly, but wouldn't this work: def create_random_stim(): sequence = ["R"] * 27 + ["B"] expyriment.design.randomize.shuffle_list(sequence) return expyriment.stimuli.TextLine("".join(sequence)) stim1 = …
    in Prensent Stimuli Comment by fladd June 3
  • What I meant is, you put in the data manually into the data file object (usually by doing something like exp.data.add(my_data). So, since you already have the data, before you manually put it into the data file object, there is no way to get the dat…