sebastiaan
About
- Username
- sebastiaan
- Joined
- Visits
- 7,303
- Last Active
- Roles
- Administrator
Comments
-
You can pass these as keywords to the constructor, like so: import serialserial_port = serial.Serial('COM1', baudrate=115200, bytesize=serial.EIGHTBITS) baudrate is a keyword, and you can find a full list of keywords here: * http://pyserial.sourc…
-
Hi Daniel, The following code ... # Open connectionimport serialexp.serial_port = serial.Serial('COM1') # Can also be COM2, COM3, etc.# Send byteexp.serial_port.write(chr(1)) # Send the byte 1 as a character# Close connectionexp.serial_port.close(…
-
You're welcome and good luck with your study! :-bd
-
(Quote) That's quite annoying, I know. Basically the sketchpad controls are too large. One of the things that I want to do for 0.28 (eventually) is redesign some of those quirks of the interface (feel free to draft a suggestion in Qt Designer!). For…
-
Good luck! And just out of curiosity: What does the plug-in do exactly?
-
Hi guys, I have done some more work to improve support on systems with non-Latin characters. The latest pre-release (0.27.3~pre2) should address many of the issues described above. But, as always, let me know if your experience is otherwise. When r…
-
(Quote) And also: Come on, surely you could have found out that the addresses are http://pastebin.com and http://gist.github.com.
-
Bienvenue! (Quote) In principle yes, you could set your variables through an inline_script item (link). However, the easiest way is simply to use a loop of 1 cycle to define your variables. (Quote) Probably, your form_base plug-ins store responses…
-
(Quote) Yes, if you specify only a file name, it is interpreted as a relative path. In fact, this works just fine on my system, but it could be an operating-system specific quirk of the QtWebKit component that is used for the browser. (Quote) No, t…
-
Ah, I see. In principle your code is fine. One thing that you could do to optimize the code is create the canvas object in an inline_script (i.e. not use a sketchpad) and send the trigger immediately after (not before!) the display is shown. my_can…
-
Hi Daniel, (Quote) Indeed it should. (Quote) The Python code is correct, but there could be a lot of different reasons for why you don't see the trigger in the BioTrace. The most obvious one is that the code, although valid, is not actually execut…
-
(Quote) In principle, yes. However, this particular piece of code was written so that you can insert it into an inline_script item. As you noticed yourself, a slight modification is required for this to work in the code of libeyelink itself. But it …
-
Hi Neon, You may want to take a look at this discussion: * http://forum.cogsci.nl/index.php?p=/discussion/338/solved-create-a-non-interactive-form-and-show-it-until-keypress/p1 Except, of course, that in your case you will need to use an srbox pl…
-
Hi Theo, The newline issue should be resolved in the 0.27.2 Mac OS package (but not 0.27.1). There's only a 32 bit build available at the moment, but it might be worth trying out. If you encounter similar problems with the latest build, please let …
-
This looks like a big improvement. Thanks!
-
(Quote) Probably, yes. There's also a chance that you can simply copy the Tobii SDK from the python Lib\site-packages folder to the opensesame folder. Whether this will work depends on how the SDK works internally, but it's worth a try. (Quote) For…
-
Hi Margaret, The fact that pressing Tab defocuses a widget is built-in to the forms. The easiest way to nevertheless get the behavior that you need is probably to take control of the form widgets more directly. The script below implements the form …
-
Sorry for the wait, I'll get back to you soon. ITA
-
Ok, well you're getting into messy character-encoding territory here ... I don't have a full grasp on it myself (otherwise I would've have fixed it in OpenSesame), but I can give you some tips for this specific case. The first thing is to realize t…
-
Hi Daniel, Tobii devices should be supported in principle, because Tobii provides Python bindings. However, you may have to do some figuring out on your own, as I don't know of anyone using OpenSesame with a Tobii at the moment. This forum post may…
-
Hi Richard, Refuzee's example shows how to randomize the order of widgets as they appear on a form. A useful tip for sure, but somewhat different from what you need in this particular situation. The order of sequence items cannot be randomized. On…
-
Hi, 'cv' is the OpenCV Python module, which is used by the video_player plug-in to decode video. It needs to be part of the Python environment included with OpenSesame, which apparently isn't the case with the package that you are using. (You can f…
-
Indeed, with the psycho back-end, forms ignore the background variable (issue #183). Basically, the background stays the way it was before. The workaround would be to change the background color (the actual color on the screen, not the background va…
-
Hi, In principle, you should be able to use Cyrillic text without any problems, because (unlike Farsi, which is a whole different story) Cyrillic is part of most standard fonts. However, I noticed that under Windows 7 you see only question marks. I…
-
Hi guys, Thanks for the feedback! Some Unicode bugs are clearly still in there, but I'm confident we're getting close to the point that OpenSesame will run smoothly on all locales. One request though: Could you please also post the stacktrace (in …
-
Ah, I see. Basically, you will want to maintain a variable, let's called it [prob], that specifies the probability that an event occurs. Each time that you determine (randomly) whether the event actually occurs, [prob] decreases when it does, and in…
-
Hi Andrew, Great to see that you're working on a plug-in. In your case, it may be convenient to implement a custom edit_widget() method. This method is called every time that a control is changed, and you can use it to implement all kinds of intera…
-
(Quote) Have you set the duration to a very low value? You can set the duration to 'keypress', to play the video until you press a key, or to a value in milliseconds. Cheers, Sebastiaan
-
Hi Neon, I know this problem, from back when I also used an SR Box. Basically, I added a pause long enough for participants to release the button. But this is awkward, and perhaps not always feasible. (Quote) If you would like to improve the SR Bo…
-
Hi Henrik, Sure, with a bit of scripting this type of thing can be implemented quite easily. However, it seems that you're describing two different scenarios: * The probability of an event is contingent on whether the event occurred before. (First…