Edwin
About
- Username
- Edwin
- Joined
- Visits
- 95
- Last Active
- Roles
- Member, Moderator
Comments
-
Why not simply use the socket module? Connect two computers with an ethernet cable (or to the same network), and you can use the socket module to exchange strings. You might want to have a look at this thread, which contains sample code.
-
I'm not quite sure why you tell us about the 3 in random order, 6 in sequential order. You mention that you want to present 9 sequences in a random order. 1) Create a new loop item, with a new sequence item (let's call this the master sequence). 2…
-
So the counting does not quite happen as I thought it would. Easy solution is to introduce our own counter using three inline_script items. Place this into the inline_script you currently have at the start of your experiment ("set_count")…
-
Awesome! I'm afraid there is no way to do this from within OpenSesame's GUI, other than adding together ALL of your experiments into one giant experiment. Which would probably not be the best idea ever. What you could do is create multiple batch f…
-
Have you uploaded the correct version? There are no Break if statements in the loops of the version that you have uploaded.
-
By the way: I'm not familiar with the equipment you mention, but in general the most failproof procedure is to sent triggers to your data files (like you would in EEG and eye tracking). Usually via the parallel port (there's a plug-in for that!), or…
-
Hi Hyunah, I'm not quite sure if you will find any E-Prime users here. You might want to try the Google Group, or the PST forum. In general: I'm sure you will have to do some scripting, as E-Prime's GUI is too limited for user-interactions as the …
-
Hi Shira, To do so, you will need to check the time of the onset of the mask (conveniently captured by OpenSesame in the time_mask variable), and compare this to the current time, like so: # set the timeout (in milliseconds)timeout = 1200# get the…
-
The behaviour kind of depends on what variable you are using as a counter, and how this variable is influenced by the stimuli in your loop. Could you perhaps post an overview and/or a script of the experiment?
-
Hi Shira, You might want to repeat the other items as well, if you want participants to be able to do more button presses: # re-run the itemswhile self.get('correct') == 0: # prepare the items exp.items['keyboard_response'].prepare() exp.…
-
Python (and thus OpenSesame) starts counting at zero, so your first stimulus will be counted as presentation 0 rather than 1. Glad that it's solved! :)
-
Referring to variables is done using square brackets, like so for you break if statement: [count_seq] > 0 EDIT: count needs to exceed 0, as Python starts counting at zero (thus the first trial is numbered trial 0). Also, you might need to add …
-
If you have a variable that specifies the correct response, as you say you do, you can do the following: Adjust the script of your keyboard_response to the following, but change corresp to the name of the variable in which you have defined the corr…
-
Hi Dror, You could create a batch file with which you call OpenSesame Run several times. Open a new text document (e.g. by opening Notepad), paste the following code in it, and save the document. After saving, change the document's extension from .…
-
As a potential temporary workaround: could you check if the 'psycho' back-end provides the same error?
-
EDIT: woops! Sebastiaan was quicker. Hi, Two questions, to further specify your broad problem description: 1) Do you have a variable that indicates what the correct answer is? 2) Did you specify this variable as the correct response in your keyb…
-
Very good to hear, I'll mark this as solved. Good luck with your study! :)
-
Hi guys, I have a faint recollection of answering the exact same question sometime earlier, but I can't find the thread anymore. Anyway, what you could do is add a little bit of inline scripting. Let's assume you have a variable defined in your loo…
-
Hi Suzanne, Apologies, my mistake. The error was in line 29 actually, where I wrote hitlist rather than exp.hitlist. I've edited my previous post, which should now work (just tested it: it does on my system). Good luck!
-
Hi! Assuming your break if statement is [response] = q, you could add a single line of code to your inline_script called inline_script in the sequence called Monitoring_Task: exp.set("response", None) That should do it! The reason why …
-
My apologies, that's due to a silly mistake (forgot to pass exp to the keyboard!). I've edited my previous post, so it should work now.
-
Hi! In theory, you could do this using the GUI, but you'd end up with massive data files! The easiest solution would probably be to use the following code in an inline_script item: # import the keyboard class, to be able to# poll the keyboardfrom …
-
Hi! Thanks for the flattering, we like it ;) On your question about the sound duration: you can set the Duration of a sampler item to sound. In this way, the experiment will wait for the sound to stop before continuing. Your second question I don…
-
I assumed you were using a visual stimulus. Two options: 1) Replace the advanced_delay with a sketchpad. Set the sketchpad's duration to [interval]. Just leave the sketchpad blank, so it won't change the way the display looks. 2) Adjust the advanc…
-
Hi Suzanne, The most effective way to do this, is by using a bit of inline scripting (and since you want to do things pseudo-randomly, there is no alternative). The following script can be used to create a delay, to which you can refer to in other …
-
Hi, Do you mean that you actually have 130 separate sketchpad items, each preceded by a fixation and followed by a response? What would be a less labour-intensive approach, is to use a loop item to define a single trial sequence (which very much d…
-
No problem, glad that it works! Marking this as solved.
-
The trick is to add the logger item to the sequence item that you use to run a single trial. This will result in a single row of data per trial. There is no limit, so if not all of your data is stored, there is a good chance that you did not select …
-
Also, it just occurred to me that you will most likely not have the beep and the circle set up in a similar way as Raquel has. We should fix that too! Add the following to an inline_script item somewhere at the start of your experiment: # import t…
-
It seems like the indentation isn't right, which means that you either have too little or too many spaces/tabs in front of the code. Directly after an if statement, Python expects there to be a tab. And if you continue the statement, it expects ther…