Edwin
About
- Username
- Edwin
- Joined
- Visits
- 95
- Last Active
- Roles
- Member, Moderator
Comments
-
Hi guys, Terribly sorry, that's my mistake! The code below should work: # we will need to import the library that# we will use to play the soundimport pygame# first, we check if it is initialized; if it is# not, we initialize itif not pygame.mixer…
-
Hi Raquel, Usually, these kind of things are measured using an oscilloscope. You simply cannot do it just by code, the oscilloscope is there to measure when the sound is actually produced. Some oscilloscopes can be interfaced with using the serial …
-
Hi johannes, Seems like it's well documented! Simply follow the instructions on GitHub to install the library (i.e.: run the install.py script), and you should be able to import the library from OpenSesame if you're using Ubuntu. In theory, that me…
-
Have a look at this thread, it contains the code that should (in principle) be able to do it, as well as a link to a setup that would allow you to do audiovisual experiments with high timing accuracy. Good luck!
-
Hi guys, The solution is actually very simple, if you employ a bit of inline scripting. Add the following code to the Run phase of an inline_script item directly before "experimentloop1". EDIT 24 March 2014, 17:19 GMT: corrected a silly …
-
Hi Raquel, In general, audio timing is a bit more difficult than visual timing! For your visual timing: win.flip() blocks until the vertical refresh starts, so the timestamp time_viz gives you almost the exact moment of the start of the vertical re…
-
Hi Shira, You could add an inline_script item, in which you place the following code (in the Run Phase): # NOTE: change the item_to_run to the name of your sequence!item_to_repeat = 'trial_sequence'# re-run the trial sequence until the answer is c…
-
Hi, Two options: Fixed delay amounts Add a new variable to your loop, e.g. called "delay". Refer to this variable for the duration of your sketchpad, using square brackets: [delay]. Random delay There is a plug-in built into OpenSesam…
-
Dear Katerina, What are you using to run the batch file? The error looks like a Python error, whereas a batch file is Windows coding. That is: you can simply double-click it, and it should open a command prompt in which all the commands that are in…
-
An overview of the currently available tasks, as well as a place to request such a task, is listed here. If you can't find an existing task and decide to make one yourself, please consider sharing!
-
Excellent! I just included the script for the single button responses for future reference, it was by no means a comment on your design :) Good luck with testing!
-
Hi Sara, Depending on what you want to do, you seem to have come up with a very good solution. Keep in mind that with your script, the interaction continues to run after the first click. This means that participants can alter their choice after cli…
-
Works like a charm!
-
The advanced_delay simply halts your experiment, so there is no room for checking for keypresses while it is active. However, keypresses made during the delay will still be registered by the back-end. With a nifty trick, you can use this to your adv…
-
Hi Marwa, Quite frankly, I do not see what you mean. It appears you need photo's for your study? There is no option in OpenSesame to create photo's, so you'll have to go look for your own, and then show them via a sketchpad (as is explained in the …
-
Hi Sebastiaan, Thanks! Do you know, by any chance, which version of pyflakes is the most recent one? The "newest" version Ubuntu installs (0.5.0-1ubuntu1) doesn't work. I'm guessing that's why more people experience the problem. EDIT: Si…
-
Hi Marwa, To receive help, you will have to be a lot more specific than this. Please try to pinpoint where your problem is, then post a question directly related to this. Your current question is rather broad, and could be interpreted as "Plea…
-
Hi Asma, If you want to have three sliders running sequentially, you will have to make sure they do not run at the same time. The script below should run through three sliders, storing their filling percentage one by one. # import everything we ne…
-
Welcome to the forum! In general, the logfile contains a column for every single variable. Each row in the logfile is made on an occurrence of a logger object in your experiment. Usually, you use one logger per trial, resulting in a single line per…
-
Hi Katerina, Two stupid questions, to confirm that you've done what I think you've done: 1) Have you installed OpenSesame's source, or have you used the installer? 2) Is your batch file located in the OpenSesame directory, where the file opensesa…
-
In essence, your comment boils down to two things: (1) how to run multiple nested loops based on a value in the main loop, and (2) how to use nested loop functionality without having to do a lot of typing. (1) multiple nested loops You could nest …
-
Hi Noah, The following lines from your output tell you where in your inline script the errors come from: File "<string>", line 299, in <module>File "<string>", line 182, in runTrialFile "<string>&qu…
-
Wouldn't it be a solution to nest a loop in a way that does go with the OpenSesame interface: loop 1---- loop 2-------- trial_sequence Where loop 1 is the loop in which you define everything apart from the stimulus position. In loop 2, you add th…
-
Hi! Yes there is! Put the following inline_script somewhere at the beginning of your experiment: import serial# create a new serial device, under the exp dictexp.ser = serial.Serial("com8", 9600) Now use the following inline_script when…
-
Hi Sara, If you save your experiment as a .opensesame file, the contents of the file pool isn't saved. To solve this problem, save your experiment as a .opensesame.tar.gz file. To do so, go to File -> Save As -> change OpenSesame files to Ope…
-
Hi Sara, In general, the last item of a sequence might be visible slightly longer, as this is when the next cycle is prepared. Exactly how long this is, depends on what you do in that sequence (preparing 200 images will take longer that two circles…
-
Good that you got it working! :) The last actual research I did with EEG was using Matlab and an obscure setup, and it was years ago. I have done a lot of teaching on the basics of the subject, but I am certainly no expert in the methods. So I'm af…
-
Hi Marie, The error suggests that the joybuttonlist is not passed as a list (i.e. in square brackets: [1]), but rather as an integer (i.e. as a single number: 1). I've checked the source code of the plug-in, and I don't see any reason for why this…
-
I'm afraid I don't really understand the question. I think the problem boils down to this: Either use dlportio.dll for parallel port communication, or use the socket module for ethernet communication. Don't try to use dlportio.dll for ethernet commu…
-
Hi Marie, That's good news! You are in fact using the right code, so I wonder if you are using the correct variable name and if it is defined in the preceding loop. Example: * Define a variable called disptext in a loop. * In the sequence atta…