Edwin
About
- Username
- Edwin
- Joined
- Visits
- 95
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi Boo, That's a clever solution, but you still can't be sure of the timing: the benchmark Sebastiaan is referring to shows a latency of max. 20 ms, with a jitter of about 5 ms. So you still wouldn't be able to control the onset of your 'silent ton…
-
Hi Jákub! from openexp.canvas import canvasimport randomc1 = self.copy_sketchpad("welcome") # copy stimuli sketchpadstart=[-250, -150, -100, 100, 250, 500] # starting offset range for x and yx = random.choice(start) + c1.xcenter() …
-
Lol, I should've spotted that!
-
Hi Michel! You could do this as follows: NOTE: edited in line with Lotje's comment below: if self.get("Context") == Whole: p = '1'elif self.get("Context") == Half: p = '2'else: p = '3'if self.get("Lateralization&…
-
Hi Wouter! Normally, OpenSesame allows you to work with lower case letters as well. It's probably best to either post your code here, or to ask me or one of my colleagues tomorrow (or Tuesday or Wednesday, whenever your practical is). I do appreci…
-
For future reference: I'm working on a module that will be able to do this, but I'm still testing it. I'm planning to launch it somewhere in December, though.
-
Just last week, I have encountered this problem too. The problem lies with PyGame. On some systems, a different setup is used (where or how: I haven't the foggiest, but I'm guessing MichelQ has found a promising direction). If you run from source: i…
-
Sorry, my bad, should've read a bit better. I was confused by the name [resp_counter_none] :p Anyhow, it's great that it works!
-
Regarding the division by 0: I do not think you have to worry about that with the code you have now: First, you up the counter by one. self.experiment.set("resp_counter_none",exp.get("resp_counter_none")+1) So now (if it start…
-
Hi! You could use an inline_script instead of a keyboard_response: from openexp.keyboard import keyboard# timeout in millisecondsmaxtime = 3000# list of allowed keysallowedkeys = ['return', 'space', 'k', ';', '9', 'right']# create keyboard objectm…
-
On this note: I've noticed that OpenSesame usually crashes when an experiment that uses an excessive amount of pre-prepared canvasses is run in succession. When you run it for the first time, no problem occurs. Run it twice and a runtime error occur…
-
Hi Sarah! You're very close! You can set your text_display item's duration to 0. After this, put in an inline_script to which - in the run phase - you add the following: from openexp.keyboard import keyboard# timeout in millisecondsmaxtime = 3000#…
-
Hi all! The problem might arise from the fact that the runif variable is called 'run'. I've tested it on OpenSesame Portable 0.26 (should be the same as running 0.26 from source on Windows) and using a variable called run just skips all of the elem…
-
Also available as a portable version as from now. See here or click (version pre30) to download.
-
Now available: OpenSesame Portable 0.26.4 This version uses the no-SDL version of PyLink. This means there will be no more troubles with playing sounds. Although we tested furiously, we appreciate feedback if you do experience any problems. OpenS…
-
Woops, my bad! I thought it was a global one. Should've checked first. Thanks for the addition!
-
There is a variable for the allowed keys, which you can access within an inline_script. It's called allowed_responses. You could use an inline_script like the following: # load allowed responsesallowed = self.get("allowed_responses")# sp…
-
If I understand correctly, you basically want to log the responses for every item and access them later on? I'm going to assume you're going to present your questionnaire first and present items later on (based on a participant's responses on the qu…
-
Hi Daniel! The standard font is (as you probably know) 'mono'. So you could just use the following: my_canvas.set_font('mono', size) # change size to any integer you'd like Otherwise, but this is a solution that's pretty much the same amount of t…
-
Hi Anthony, It is possible to only run one random cycle within a loop by using the 'Repeat' option. For example, if you were to run a loop with 5 cycles, you could set the order to random and the number of repeats to 0.20. In this case one random c…
-
Woops, my bad! To recalculate the coordinates to the cenre one shouldn't add half of the screen size, but deduct it in stead. I had just disected a human brain, so I was a bit distracted... Sorry!
-
Hi Kyle! If I understand correctly, you want to register a mouse click position with regards to your picture. Is that correct? In that case, you might want to remove the mouse_response and replace it with an inline_script. In the run phase, you ca…
-
Hi Johannes! If you are using the following notation within an inline_script... trigger = '[trig1]' ...I suggest you try the following: trigger = self.get("trig1") The '[varname]' notation can be used within OpenSesame's items, but no…
-
Hi Jarik, Sebastiaan mentioned it, so I'm already working on it (I was quite surprised as well, since I'm working with the older version without experiencing any troubles). Thanks for the heads-up! It's great to know that you're using the portable…
-
For future reference: the plugin can be found here: https://github.com/smathot/OpenSesame/tree/playground/plugins/joystick An example experiment here: https://github.com/smathot/OpenSesame/blob/playground/examples/joystick_demonstration.opensesame
-
Don't have the time to set up github again now, so it's in your mailbox! I redid the whole joystick-plugin (the joystick.py part, that is), to improve it's similarity to the rest of OpenSesame (it resembles the srbox-plugin to a great extent). Than…
-
Oh, silly me, I renamed it 'joystick' instead of 'libjoystick'... Now it works like a charm! I'll set up a new githubthingy and try to get it to you.
-
And, of course, they do: It all goes to bits on this line: self.experiment.joystick = _joystick.libjoystick(self.experiment, self.__joystick) Reporting the following: AttributeError: 'module' object has no attribute 'libjoystick' I'm kind of lo…
-
Thanks for the feedback! I do agree with you on the point of a joystick being a non-standard input device and I can relate to your point of trying to keep OpenSesame's core as simple as possible. So, what basically needs to be done is: * rename 'o…
-
Hi all! I tried the plugin and it didn't quite work with my Logitech Attack 3 (that is: the response isn't logged). So I did some coding myself (allowing for input from axes, hats and trackballs as well), but than a bit different. I think it would …