Edwin
About
- Username
- Edwin
- Joined
- Visits
- 95
- Last Active
- Roles
- Member, Moderator
Comments
-
If the first script doesn't run, this could be due to some unexpected indent. The correct syntax is as follows: try: from ctypes import windll global io io = windll.dlportio # requires dlportio.dll !!!except: print 'The parallel port co…
-
Thanks for sharing! Is there any type of feedback in particular that you're looking for? Does the experiment not work as it should? Or are you asking in general? In any way: good to see people share their experiments! :)
-
The error most likely comes from this line: dx, dy = movement As a lot of joysticks will have an output of three axes, the following line should fix this: dx, dy, dz = movement Alternatively, you could simply use the second axis without botherin…
-
Hi Dan, I'm not quite sure which of the options below you were looking for, so I'll give them both: Log running order of random sequences To log the current cycle number, it's easiest to use a variable that is auto-created by OpenSesame. Let's sa…
-
A .gif is a collection of images, of which usually only the first is recognized by OpenSesame's back-ends. It might be useful to check the documentation on video playback if you want to present moving stimuli.
-
Hi Francois, The experiment you describe is easily implemented with a bit of knowledge of how OpenSesame works. I'd suggest reading up and getting to know the program by doing one (or more) of the tutorials. In general: you can use a sketchpad to …
-
I don't know if there's a set way of doing this using forms, but you could always use the following code. It's a DIY text input: # import the relevant librariesfrom openexp.canvas import canvasfrom openexp.keyboard import keyboard# define the timeo…
-
Sorry, sort of forgot this. Finally fixed the plug-in: https://github.com/esdalmaijer/opensesame_serial_port_trigger
-
Ah, yes, this is something that often produces a bit of confusion. The notation with square brackets, [variable] van be used within OpenSesame's interface, as well as in OpenSesame syntax (which you see when you press the 'Edit script' button of an …
-
Oh, sorry, silly mistake of me. It's autodetecting, but the autodetect code is flawed (runs even if you don't specify it). I'll fix it when I'm near a computer again. In the meantime you could opt for the inline scripting option I explain above.
-
Well, to log it, you should either set the logger to "automatically log all variables", of you should explicitly indicate that you want to log that variable by checking it in the logger's list of variables. Do I understand correctly that …
-
Seems perfectly fine. And you have the latest version from here? I'll ask the main developer if maybe he can shed some light on this. Also, @sebastiaan, any tips?
-
Hi Johannes, The small issue you mention is simply a warning that no local version of pyparallel could be found. To compensate for this, the onboard version will automatically be used. The bigger issue is quite an interesting one, that I can't qui…
-
Yes, I did. Was quite a hassle to actually read it, as you saved it as a RTF. Next time, could you simply send the experiment script in its original file type? (That's .opensesame) After getting it to open, I couldn't reproduce the error. The scrip…
-
ITA
-
Hi Kevin, Thanks, this is exactly what I meant! Regrettably, yours is a very generic error, indicating a very hard crash. From your screenshot, I can infer that you're using a university PC (although I didn't know Utrecht switched to Google Chrome?…
-
Excellent, very good to hear that you've fixed the conditional statements. Concerning the keyboard_response and the parallel_port_plugin: The timeout of the former should be the response timeout that you wish to use, and the Duration of the latter …
-
Hi Johannes, You were almost there: use [correct] = 0 instead. If you use the correct variable, this will indeed be a binary approach. However, you could also employ the same approach, but with a different variable. You could use the response vari…
-
By typing in just that, actually ;) [correct_arrow_response] = 0 and [response_time] > [avg_rt] Also, you might wanna read this page, and in general it might be a good idea to search for answers on the documentation website before posting a que…
-
UPDATE! If you do want to do things via the GUI, you could try using the plug-in that I've just put together. It hasn't been tested, as I do not have a PC with a serial port nearby, but it is very straightforward and should work. To download, go to…
-
Hi, I'm afraid that up until now, there's no plug-in for sending triggers via the serial port yet, which means that you will not be able to do this solely via the graphical interface (GUI). This needn't be a big problem, though, as the little bits …
-
Hi Kevin, Good to hear that you've managed to get something going. On your crash: it could be anything. From a polar bear sitting on your PC, to a problem with the placement of your script, or a silly little typo. I don't mean to be rude, but what …
-
Hi Hannes, That's excellent, very good to hear that you've got things running and that you're happy with us! I'll mark the issue as solved, and I wish you the best of luck with your experiment. Cheers! Edwin
-
Hi Hannes, You've actually done a really good job, there's simply a single detail you might have overlooked: a sketchpad is constructed in the Prepare Phase. Since your inline_script is run only in the Run Phase the variables used in your sketchpad…
-
The timestamps would actually be very useful for what you want to do. Suppose you have a sequence of three items: X, Y, and Z. The timestamp of Y minus the timestamp of X will give you the duration of X. So, in your case, you could add a blank sket…
-
Hi Rotem, As I explain in this post, the % operator gives you the remainder of a divison. Think of it as having 5 apples and dividing them equally over 4 children: this would leave you with 1 extra apple, hence 5%4 = 1 in Python. The count_sequenc…
-
That's possible with a tiny bit of inline scripting. Add the following to either phase of an inline_script at the start of your experiment, somewhere before your loop: # define the starting valueexp.set("my_var", 0) Then, in your loop, m…
-
Excellent, so now everything runs as it should? You're right, it's a bit odd that some structs (the accuracy one isn't the only one) are missing from the Python bindings. Luckily, it's an easy problem to solve. I have a feeling that the engineers a…
-
This is generally not something you can do with a keyboard response (unless you put two of them directly after eachother, but I have the feeling this is not what you would want). You can do two things: 1) Use the form_text_input plugin, which allow…
-
Ah, good that you mention this! Earlier testing was done on a single PC-setup and a setup that did in fact use the same IP for sending and receiving. In fact, I wonder what your setup looks like... Are you receiving data from the SMI on one PC, and …