sebastiaan
About
- Username
- sebastiaan
- Joined
- Visits
- 7,320
- Last Active
- Roles
- Administrator
Comments
-
This error is triggered when there is no room left for widgets in the form (i.e. they have zero-or-negative width or height). This happens when you have defined * a lot of rows * a lot of columns * a large spacing * large margin * a low display res…
-
(Quote) The logger always arranges columns alphabetically, independently of the order of the log statements in the script. But different variables will never be written to the same column: One variable = one column. So if you want to have a particul…
-
Hi Katherina, Sure, the dx and dy variables indicate respectively the horizontal and vertical deviation from the target center. So defining an acceptable square would be something like this: Update: Corrected script # Determine `correct` variable…
-
Hi Ben, The logger writes one row of data every time that it is executed. So you can never have data from two different loops, or more generally from two different calls to a logger, in the same row. But if you want you can write to the logfile usi…
-
Hi, These plug-ins will set up everything internally for video playback during the prepare phase (i.e. during preloading), but they will not pre-load the actual frames. Doing so would take too much memory, even for relatively short clips, and it's …
-
Hi Ahani, Looking at your script it seems like you want a continuously running countdown timer in your experiment, is that correct? I'm afraid that this is not possible, at least not without extensive inline scripting. What you can do, however, is…
-
Hi Zalian, Thanks for taking the time to explain your problem clearly and in detail! That's really helpful, for me as well as for other people who may be facing the same problem. Below you see a script that collects 5 mouse clicks, while checking …
-
Hi @Jarrod and @meldiwiny, As far as I can tell from your descriptions, I think that you have both set things up correctly. And as Jarrod pointed out, you can find a detailed discussion about sending triggers via the serial port here: * http://for…
-
Hi Katherine, Welcome to the forum! The variable maxClickErr in this script indicates the maximum distance in pixels that a touch can be from a specific target point, indicated by xTarget and yTarget. So the acceptable area is a circle around the …
-
Hi Marie, The tricky part in your case is to collect the joystick movement. Other than that, you probably won't need any inline coding. So let's get to the joystick part, and from there you'll probably be able to figure things out with help from th…
-
(Quote) Well, you can use get_key() to the keyboard by setting the timeout to 0, in which case it won't block the execution of the experiment. But it still won't do you much good, because you need to detect key releases, which the openexp module won…
-
Hi Ben, If you are not familiar with Python, there are a lot of good free tutorials to get you started. For most things, you won't need any deep Python knowledge, so don't worry. But some knowledge will be necessary if you want to do semi-complicat…
-
Hi Kevin, (Quote) Can you be a bit more specific? What exactly are you doing, and in what sense does the experiment crash (e.g. what's the output in the debug window)? Cheers, Sebastiaan
-
Hi Njord, A little bit down in the same discussion that you're referring to, you will find a little code snippet that you can use to stop recording when a key is pressed. It sounds like this is exactly what you're looking for: * http://forum.cogsc…
-
Hi Ben, To make this script work (as I already wrote above!), you need to use the legacy back-end, or the xpyriment back-end with 'Use OpenGL' set to 'no' under back-end settings. The reason is that this script uses certain PyGame functionality tha…
-
Ow right, I see. The script didn't specify which file should be read. Basically, this ... video = cv2.VideoCapture() ... should be ... video = cv2.VideoCapture(path)
-
(Quote) No, that's right. The openexp.keyboard module does not offer this functionality. (Quote) It depends on the back-end that you're using in OpenSesame. Both legacy and xpyriment use PyGame under the hood, so when you use these back-ends your c…
-
Hi Christophe, You'll probably want to take a look at forms, which allow you to present clickable images: * http://osdoc.cogsci.nl/forms/custom-forms/ If this is not what you have in mind, could you please be a bit more specific about what exactl…
-
Hi Johannes, Well, the most important thing is that you got it working for your experiment. But apparently the problem is not simply due to the short delay then. I'll pass this on to Bob, the developer of the parallel port plug-in, to see what he t…
-
Hi Pénélope, The advanced_delay plug-in is a plug-in item that you can drag from the item toolbar into your experiment. So it's not really what Edwin meant, but using a self.sleep() command is fine as well. One thing, perhaps to state the obvious,…
-
Hi Antimo, If you have used the EyeLink in MatLab before, then you could consider using pylink directly, instead of using the libeyelink wrapper. This way the API will be more-or-less the same as you're used to, except of course for the syntactic d…
-
@meldiwiny Final warning :-t Please resume with the discussion (one of many) that you have started yourself (here). If you continue to open new discussions and/ or randomly post in old discussions, your account will be suspended.
-
Hi Asma, Your script is a bit odd. Firstly, the question label spans two rows and therefore overlaps with the text_input on the second row. Also, what I assume should be a button is a text_input with the text 'Next' in it. Probably, you want to hav…
-
You have now posed the same question six times, in two emails and four posts on this forum. Please, limit yourself to one discussion. Closed as duplicate of #749.
-
Hi, Welcome to the forum. In the future, please do not open multiple discussions for the same problem! (Quote) That's no problem: You can use 32 bits software on your 64 bits computer. (Quote) I'm afraid that I don't understand this question. Cou…
-
Closed as duplicate of #749.
-
Hi Boris, With a small hack you can do this, yes. If you place the following script in the prepare phase of an inline_script at the beginning of your experiment, you will have a logfile with utf_8_sig encoding, which I believe corresponds to UTF8 w…
-
Hi Boris, Basically, the example is a bit outdated. It uses cv, whereas the current module (and the one supplied with OpenSesame) is cv2, for OpenCV 2. The script below shows how to show how to play back a video using cv2. As you can see, it's act…
-
(Quote) If you have not selected the psycho back-end, then it's just inline scripts that go from psychopy import [...]. So in your case that's probably not it. I'm afraid I can't really say much about your problem, except reiterating my suspicion t…
-
Hi Wouter, If you're not explicitly calling any PsychoPy routines from an inline script, then, no, that's not the problem. I really don't know what it can be then. I suspect it is triggered by some other process running in the background—even if yo…