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 Andrea, Sorry for not having responded earlier. Your problem sounds, that you haven't defined a break criterion. Would you mind sharing your experiment with us, or at least your settings for the repeat_cycle plugin? Without more information it'…
  • Hi Francisco, If you bump into errors, it is always wise to post the error message together with your question. This makes our life a lot easier to find out what went wrong. In case you copied Josh's code as he wrote it above, your problem is that…
  • Hi Francisco, You can access a timer by calling self.time(). This will give you the current system time. If you sample it twice and take its difference, you will get a duration of the interval between the 2 samples: t0 = self.time()self.sleep(100…
  • In this case, the strategy which I described (using the variable wizard) will make sure that every condition is presented equally often. So let's consider following: You specify a 2 variables. First is delay (400,600,800) and the second is congruen…
  • Hi Andrea, Every information that you need to show your stimuli. This can be anything, but boils down to What, How, When and Where. What your goal is in the second loop (the one in which you repeat the conditions that haven't 100% correct, is to sh…
  • Hi Andrea, (Quote) This makes things a bit more complicated, but it still is doable. Here a (very general) way of doing it (sorry for the lack of detail). 1) First you ran your initial loop and sequence in a rather basic way (all 21 one trials ran…
  • Hi Eliza, Your trick doesn't work in the way you expect it to (at least I think so). The problem is, that you can't change the rate of monitor refreshes, the only thing you can do, is bringing the presentation duration close to one of the multiples…
  • Hi Agnes, Just to be clear, is it essential that the ordering of trials is done in the way your vba suggests, that is, first are congruent trials sampled until there have been 10 and only after that incongruent trials are added, also up to 10. Or d…
  • Hi Andrea, Is your experiment random on trial level or only on condition level? I mean, are the 3 trials of one conditions always presented after each other, or are all 21 trials presented in a mixed fashion in the initial round? If they are block…
  • Hi Agnès, The experiment you are describing sounds like a perfect case for the variable wizard. Check out step 3 of this tutorial to get a comprehensive explanation of how it works. Basically, what you need to do is clicking on variable wizardin a …
  • Good to hear, you figured it out yourself! Eduard
  • Hey Helen, Unfortunately, I have myself not much experience which joysticks. So, I can give you only some very general advice. First of all, in case you haven't seen it yet, here you can find some information how to deal with joysticks in an inline…
  • Hi, This sounds like the PC's in your lab don't have the plugins installed. Here you can find a explanation how it works. Good luck, Eduard
  • Hi Tslil, Would you mind providing a bit more detail on where the problem lies in particular? Is your experiment not working at all, or only the inline_script with the voice-key code? As far as I understand is a naming task a rather standard parad…
  • Hi Johannes, Nice to hear that it works now. But just for sakes of completeness here the things that I know: (Quote) Yes. I haven't work much with forms yet. So, I just copied your code a bit to check things out. (Quote) Right. I chose a value of…
  • Hi Tali, If the strategy with using the built-in counters doesn't work, you can always create your own counters and make sure that they do work. So, in the beginning of your experiment (or in the outer loop), you set a trial_counter to 0. Later, wh…
  • Hi Katerina, Could you please elaborate a bit more on the specific issues you have encountered? What exactly is wrong with the drag'n'drop functionality? Thanks, Eduard
  • Hi, (Quote) Seems fine to me. Maybe there are better ways, but then , I'd need a bit more specific information on your strategy. If not too much trouble, you could paste your code, or upload the experiment somewhere and post it here. Best, Eduard
  • Hi Johannes, What happens, if you put following script in an inline_script after Sketchpad 5 (whose duration is set to keypress)? from openexp.keyboard import keyboardkeyb = keyboard(exp)while True: resp,time = keyb.get_key() if resp == exp.…
  • Hi, The basic strategy (and pythonic wording) to update the total reward is following: if correct_response: total_reward += current_reward This you do on every trial (so within the trial_loop). Additionally, you have to initialize the total re…
  • Hi Johannes, I can't tell you why your script isn't working, because OpenSesame doesn't allow me to import it for some strange reasons, but I suspect the reason could be related to the prepare-run phases. In any way, here is a small example of a s…
  • Hi, I think the reason why it isn't working is that you wrote count =+1 and not count += 1. Therefore, the while loop is running forever and popping all the letters from alpha, until it's empty. Can you check whether this solves the issue? Eduard
  • Mh, I'm not sure about the exact sequence, in which these variables are written. I suppose if this happens in the end of an iteration, the first loop is 0th trial, so, the next trial will start, too. Now, the counter reaches 1, corresponding to the …
  • Hi, Yes it worked and I think I can see what is happening here. You need to include another logger in the experimental/practice loop, with which you save the actual reaction times and responses. I don't really know, why the output looks like it doe…
  • and I responded to the other one and will close this one. Closed as duplicate of #1440.
  • Hi Tali, every loop item has a break ifargument. There you can add something like: [count_nested_loop] >0. OpenSesame has built in variables that count how often each item was called. If I remember right, the general shape is "count_NameOf…
  • HI, I don't understand why this works on one version, but not on the other. Anyway, I suppose the error arises, if the inner while loop is not entered, because slider_fill is only defined there. A solution can be initializing slider_fillearlier one…
  • Hi, The easiest way is to use add a variable name in your main experimental loop (or whichever is relevant for you) that contains the names of the videos. In this way, you can chose a generic label for the video file to be played in the media_playe…
  • Hi Michael, If you're running OpenSesame on Windows, you have to put the plugins also in the OpenSesame folder under documents (not only in the installation directory under C). See this link. Does this clear things up, or has the issue another rea…
  • Hi Anthony, I tried Sebastiaan's suggestions myself and it seems to work. Under this link here you can find a minimal example, that might be enough for you, to get an idea, what is going wrong. Please let us know, if it doesn't help. Good luck, …