Avatar

Howdy, Stranger!

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

Supported by

eduard

About

Username
eduard
Joined
Visits
1,402
Last Active
Roles
Member, Moderator

Comments

  • Hi, I think what you meant to write is this: for i in range(12): self.experiment.images [i] = exp.get_file(u'uni%s.png' %i) The "%" within the string is used to specify the datatype that you will feed in later. In your case no valid typ…
  • One more thing. I just saw that the media_vlc_player is rather outdated. There is a better video plugin available. So, you could think about using the media_player_gst video plugin in future, as was suggested here.
  • Hi Jessi, I had a look at your experiment and I encountered the same issues you have (at least I think so). There were some issues in the media_player_vlc.py file. I could fix them to the end that the programs runs without crashing. However, since …
  • Hi, If a "self-paced reading task" boils down to presenting screens with text many times after each other in the pace of the participant pressing a button or a key, you can simple you use text_form_display items. Write your text into thes…
  • Hi Anna, Welcome to the Forum. Do I understand right, one of your trials has only these 2 elements: 1) Empty (black) screen of 10 seconds 2) Text presentation? And the response time you want to have is the time that participants needed to read t…
  • Hi Ram, If you ask, whether Opensesame is able to record the time between stimulus presentation and response, the answer is "Yes!". Moreover, it does this pretty much by default (providing that you included some response collection item) …
  • Hi Finiarel, I suppose you're using the canvas.circle function? If so you can simply call it as many times as you need it, before you show the canvas to the participant. I recommend looping over each pair of monitor coordinates, which you have rand…
  • Hi, You're right exp.get_file works only for single files. However, if you have your filenames in a list, you can simply loop over the list, read the current file, do with it whatever you want, and proceed then to the next file. Of course this req…
  • Hi RitaMary, You can calculate the duration of every trial before you actually start a block and collect them in a list, until their total duration exceeds the time you want them to do the distractor task. Something like: time = 0trial_list = []wh…
  • Hi Paolo, I think, you will find this discussion here quite interesting: * http://forum.cogsci.nl/index.php?p=/discussion/1215/solved-log-time-and-duration-of-simultaneous-key-presses#Item_3 It is not entirely identical with your question, but st…
  • Hi Helen, I suggest you draw your images directly to a canvas in an inline_script. It's not much more difficult than using a sketchpad, but gives you more freedom and control over it. I give you an example of the basic idea. Probably, you'll have…
  • Hi, (Quote) I can't say whether this is correct or not, I know too little about your experiment to judge this. But why don't you test it? Do a few test trials, in which you control the avg response time (more or less) and see whether the experiment…
  • How about you count the number your block_sequence is executed and prevent the "brake" message to show up for certain blocks. Each item in Opensesame has the count_[item_name] attribute. So what you can do is something like that: Run if …
  • Hi, (Quote) What you can do is adding more conditions, e.g. "[count_speed_sequence]%50=49 and [count_speed_sequence]%150!=0", or whatever your criteria are (sorry, I haven't completely understood them). (Quote) In the end of this block y…
  • Hello Federica, You can build this experiment in different ways. I suggest following: 1) Creating the sequence of the circle jumping in circles. * Add a loop element to your experiment, in which you include an inline_script and a logger - item. *…
  • Hi Rotem, I can't see which error you mean, because before I bump into them, Opensesame complains about the images that are missing (Your instructions and stuff). Maybe you can upload the *.opensesame.tar.gz file? Thanks, Eduard
  • Hi Soksan, Welcome to the Forum. Yes, Opensesame does allow creating experiments with different SOAs. The are several ways to do it. Usually the easiest is to introduce each SOA as variable in a loop item. I suggest you have a look on the step-by…
  • This is weird, because it works just fine for me. Can you maybe give some more detail on the error that is shown to you? You can inspect it yourself in the Debug window. Mostly, I am curious in which inline script and which line the error occurs. W…
  • Did you also add the part, where you fill the list all_items? Can you also post the part where you use the pop function? If I try the code in my first response, I don't get an error, so I guess this part has to be changed a bit.
  • No worries. That's what this forum is there for. Good luck with your experiment.
  • Hi Elena, I don't know whether this is the issue, but you should be careful to what you refer, if you use self. If you use self._functions in an inline_script, self refers to the inline_script-object. If you want to refer to the experiment-object, …
  • Hi, Alright, if your items consist of two images each, you don't have to change much. It requires though, that your pictures are labelled according to the same scheme. For example: Picture_1a, Picture_1b, ... For each picture that belongs to one i…
  • Hi, The reason why your code doesn't work is that the experiment_set function is not applicable if you want to set complex data types. That is, you can only set "simple" data, like integers, floats, ... with it. When you're trying to set …
  • Hello, 1) Pairing distractors with targets How about you define a dictionary with the distractors as keys and the targets as values in the beginning of your experiment? This makes it easy to retrieve the target that belongs to a certain distractor…
  • Hi, If you want to have the filler item at every 5th position, you can do following. What you need is an inline_scriptbefore the trial loop and one inline_scriptwithin the loop (and of course all other stuff you might need for your experiment). F…
  • Hi Elena, Welcome to the Forum! If you set the duration of your audiofile to "0", the experiment will proceed with the next items in the sequence, while the audiofile is playing. Now you can put as many parallel port trigger items in th…
  • Nice! Good luck with it. Eduard
  • The error tells you that the element you're popping from is not a list, but an integer. So something went wrong there. Did you make sure, that you create a list in define_amount? Maybe you can post the code you used. Btw. you're right, you have to…
  • Does it work if you use "exp.amount" instead of [amount] ?
  • Exactly, that sums it up very well. I don't see a reason why it shouldn't work now, but why don't you just try it out? Eduard