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,306
Last Active
Roles
Administrator

Comments

  • Thanks!, I'll merge it into the playground branch, which contains the experimental stuff, and then we can go from there (but see my comments on the pull request). Erwin, do you also have a GitHub account by any chance?
  • Hi Anabel, I appreciate it's difficult to get started with OpenSesame, but I would strongly recommend walking through the step by step tutorial before starting your own experiment: http://osdoc.cogsci.nl/usage/step-by-step-tutorial. If you have tro…
  • Right, the script now assumes that the class inside libjoystick.py is called libjoystick. It's probably still called legacy, right? So just make sure that the class name (_joystick.[class name]) matches the actual class. And yep, I would add it to …
  • Yep, that's about it. Until the bug reports start coming in, of course ;)
  • Btw, Edwin, so openexp._joystick.legacy.py is perfect (or at least it appears to be, I can't test it because I have no joystick), but I would add it as a libjoystick module to the plug-in in the way described above. Functionality-wise that doesn't a…
  • Hi Edwin and Erwin, Good to see that work is being done on the Joystick! It would be very nice to have simple Joystick functionality in OpenSesame by default. I'm not sure it should be implemented as a back-end though, in the same way as the keybo…
  • Well, what you could do is insert an inline_script at the start of the trial sequence to show a display already in the prepare phase (inline_scripts have different tabs for both phases). This is unconventional, because the prepare phase is usually t…
  • Hi Markku, The import statements shouldn't slow things down in any noticeable way, except the first time. I suspect that the trial_sequence contains some things that need to be prepared, such as sketchpads, synthesizers, etc. The way it works is th…
  • If changing the trial sequence has an effect in your experiment, that must be because of the custom structure that you use to set the loop variables. Does this involve an inline_script that uses the counter? There is no very simple way to break out…
  • Hi Zzzgarca, Sure, you may want to take a look at these discussions: * http://forum.cogsci.nl/index.php?p=/discussion/107/solved-recording-speech-response * http://forum.cogsci.nl/index.php?p=/discussion/6 Cheers, Sebastiaan
  • Right, changing the counter doesn't affect the actual trial progression, only the counter itself. So that might be convenient if you want the counter to start at 0 with each new block (for example to facilitate analysis) but you cannot use the count…
  • Btw, you could take a look at, and possible hack on, the implementation of the loop, of course. As you can see, the code is fairly simple (the runtime anyway, the GUI is a bit messy): * Runtime: https://github.com/smathot/OpenSesame/blob/master/lib…
  • Do call 'prepare' and 'run' on 'trial_sequence' or on all items within 'trial_sequence'? (relevant because several items within 'trial_sequence' have their own 'run if' conditions that I do not want to be overruled) I'm assuming it's on 'trial_seque…
  • Hi Wouter, The easiest way to do is probably using a small inline_script, like so: #Uncomment for 0.25 or earlier#exp = self.experimentwhile self.get('response_time') > 1000: exp.items['trial_sequence'].prepare() exp.items['trial_sequence…
  • Hi Frank, If you want to reset the counter of an item, please see this discussion: http://forum.cogsci.nl/index.php?p=/discussion/147/solved-resetting-counters But I'm guessing that this is not actually what you want to do? Are you still trying to…
  • Great man! The included howto's are a nice addition.
  • Hi Paul, You're right, I tested it with some mathematical operators and such. This worked, but real Greek is not accepted. If you're still interested you could try the following script, which should accept non-western alphabets. It works pretty muc…
  • Hi Paul, I'm a bit embarrassed, but it doesn't immediately come to mind where we met. Was it at a conference? With respect to your question. The text_input item does indeed not support non-latin alphabets (unfortunately), but the questionnaire plu…
  • Great! I don't have a joystick myself to really test it, but as far I can tell it should work fine (at least it shows up in OpenSesame for me, and you used it in an actual experiment, right?). I uploaded the plug-in here, I'm sure it will be useful …
  • Right no, the script works much simpler than that. It simply replaces the keyboard_response and sampler. So you simply insert the script after each sketchpad (make sure that the src_sketchpad variable matches and that the sketchpad duration is set t…
  • Really? The exp.items dictionary is the place were all the items are stored. Are you sure you didn't accidentally modify exp.items? Or is there a typo (it's case sensitive)? You can check what's in the items dictionary with a script like this: for …
  • If you have an item named pic3 than there is definitely a variable named time_pic3. Make sure that the inline_script is included in the run phase and is executed after the pic3 sketchpad has been shown. Does that fix it?
  • I should have been a bit clearer: The idea is that you change the line that says src_sketchpad = 'my_sketchpad' to match the name of the sketchpad that precedes the script. So my_sketchpad might become target_display or something. Cheers!
  • Thanks for the reply. I tried it, but it returns a KeyError. So how do I add it to the dictionary? Or maybe its something else... Did you use the correct item name? For example, if the sequence is called trial_sequence you would use the following s…
  • I see, that's a shame. You may want to take a look at this discussion, which has a bit of code and info on playing videos using PsychoPy: http://forum.cogsci.nl/index.php?p=/discussion/137/open-simultaneous-image-video-and-sound-presentation#Item_4…
  • Hi SillyNapalm, The items maintain their own counter, which needs to be explicitly reset. Otherwise, as you have experienced, it will simply keep overwriting the count_[item_name] variable. The following should do the trick: # Uncomment for 0.25 a…
  • Ah, I see now. So you want to collect a response while the sketchpad is visible, for 5 seconds, and display the last response on top of the sketchpad, right? The script below should do approximately what you need. Please see the Python inline code d…
  • Hi Kevin, I see, that's unfortunate. This type of hard crash points towards a crash somewhere in the underlying libraries. Like you, I suspect that the problem lies with the media_player plug-in, which uses a set of libraries that are not always as…
  • Hi Henrik, Good to hear that your first experiment worked smoothly. Hopefully you'll get some nice data! How can i just play a sound in a sequence any time a key is pressed? (Under the conditition that there is no right or wrong answer and it shal…
  • Hi Andrea, Right, if you set a loop to random, it will only randomize the order of the loop. The order of the items in a sequence is always fixed. Still, you can mimic a random sequence quite easily with a simple inline_script. See below, some inst…