I'm working on a task in which the sizes of two characters are changing.

I'm presenting two letters in different sizes side-by-side, and I would like to keep the distance between their centers as constant as possible but it seems like that's not working. for example with this code:

It seems that some size changes make the digit to be presented "lower" in the screen.
I think that the problem is the anchor point of the characters, which is not centered per characters (Top left maybe?).

Is there anything I can do?

Thanks,
SH

]]>
Plz, help me to design ABX auditory discrimination task!!!http://forum.cogsci.nl/index.php?p=/discussion/4099/plz-help-me-to-design-abx-auditory-discrimination-task
Sat, 05 May 2018 11:35:14 +0000OpenSesameYoungshin4099@/index.php?p=/discussionsCan anybody help me to design neat and clear this task?
I am new to this program and get in trouble with design the manual and operating it, I will be greatly appreciated if any body has the similar template for this experiment. I will do ABX discriminaion task for certain set of phonemic minimal pair, so the stimuli should be in certain set, for example, A-B-A, A-B-B with fixed word set(ex. dad-mad-mad).So far, I designed as follows: but I can't figure out how to manipulate those set with 3 sequential sound sampler with advanced-delay icon.
I'll be appreciated for your help or any similar template that I could take as a reference!!
Thank you~
]]>
[solved] Problems with logger: it's not logging my multiple choice responseshttp://forum.cogsci.nl/index.php?p=/discussion/1477/solved-problems-with-logger-its-not-logging-my-multiple-choice-responses
Sun, 19 Apr 2015 20:10:32 +0000OpenSesameFelixthealleycat1477@/index.php?p=/discussionsHello, I've been programming an experiment for my Bachelor thesis with Open Sesame and so far it's been running wonderfully!

However, I've encountered a problem; namely that it's not logging my responses for the multiple choice items. It does log the time and count but both of those are not variables I need for my experiment.

I looked at the script and everything seems to be in order, it simply doesn't seem to put the variables (form_var) into the logger, despite me explicitly putting them in at the top bar on the normal screen, the answers I've also inserted normally. I've been trying to fix it but I'm new to this program and to Python so I've not gotten very far.

What I've tried so far:
1) Changing the variable names - didn't work, in fact it had been logging the responses to the first multiple choice item in the experiment until I changed its name so that just made it worse - haha.
2) Deleting all the loggers and putting new ones in - didn't do anything as far as I can tell.

This is pretty much all I've been able to do so far because the script looks synonymous to the standard script (except for a different text input, of course) so really I'm lost.

Also I've found that the logger sometimes does log variables that I cannot find in the logger when trying to manually select them but that's less of a problem since I can just tell it to log everything for now.

Either way since I was planning to start the testing phase this wednesday I figured I would ask all of you wonderful people if you could help me out!

I'd like to implement some demographic data at the end of my experiment, but something seems to be wrong with my code:

The experiment runs, but doesn't display this inline script. However, I don't get an error message.

Any ideas are appreciated!

Thanks alot!

Best, Lea

]]>
keyboard presses before their timehttp://forum.cogsci.nl/index.php?p=/discussion/4150/keyboard-presses-before-their-time
Tue, 22 May 2018 12:21:59 +0000OpenSesamebruno_nicenboim4150@/index.php?p=/discussionsHi,
I would like to know how to ignore keyboard presses that happened before the keyboard input of the sketchpat (I think that this is what "Flush key pending events" does for the keyboard_response item)
I have a sketchpad A that lasts 2 minutes and then another sketchpad B with duration sets to "keypress". I noticed that if you press something during the sketchpad A, after the two minutes the sketchpad B gets skipped. How can I make that sketchpad B ignores the keyboard presses of sketchpad B?

Thanks,
Bruno

]]>
While loop hangs (and it drives me nuts!) :(http://forum.cogsci.nl/index.php?p=/discussion/4131/while-loop-hangs-and-it-drives-me-nuts
Wed, 16 May 2018 12:33:05 +0000OpenSesamemariosav4131@/index.php?p=/discussionsGuys...i can't get my head around this so hopefully one of you could help. Here's the situation I'm facing. I prepared an experiment where I show on a canvas the names of two towns and ask participants to enter their estimate of the distance between them and press enter. I have a list with 171 pairs of towns and I randomly select a pair for each trial. Everything works well except that the experiment hangs at what seem to be a random point (i.e., different pair of towns each time, different point through the experiment). That is, I go through the experiment and at some point when a pair is presented, I enter my response, but nothing happens when I press enter. No error is printed and I have to close OS with control-alt-delete. I suspect it's something to do with the while loop I use to present the trials. I paste the code below for that loop...can anyone spot anything wrong with it? thanks in advance!
marios

]]>
Set of duration timehttp://forum.cogsci.nl/index.php?p=/discussion/4154/set-of-duration-time
Wed, 23 May 2018 14:44:02 +0000OpenSesameNiu4154@/index.php?p=/discussionsHi,
In my experiment, I want participants to respond stimuli by pressing the button after 5000ms. Do you know how to set the duration time for it?

I just upgraded to ubuntu 18.04, and during the upgrade opensesame was removed for some reason.
I tried to re-install, but I get the following errors:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
opensesame : Depends: python-qdatamatrix but it is not going to be installed
Depends: python-qprogedit but it is not installable
Depends: python-qnotifications but it is not installable
Depends: python-pseudorandom but it is not installable
Depends: python-webcolors but it is not installable
Depends: python-markdown but it is not installable
Depends: python-pyqt5.qtwebkit but it is not installable
Depends: python-pyqt5.qtsvg but it is not installable
Depends: python-fileinspector but it is not installable
Recommends: python-imaging but it is not installable
Recommends: expyriment but it is not installable
Recommends: pyaudio but it is not installable
Recommends: ipython-qtconsole but it is not installable
E: Unable to correct problems, you have held broken packages.

I tried installing these packages manually, but I always end up with a "package X has no installation candidate". The first one claims to depend on "pyhton-qtpy", but that one doesn't have a "installation candidate" either

I tried with pip install python-opensesame, but that command doesn't do anything. I get a lot of "requirement already satisfied" messages, but nothing is installed.

In another message here I saw someone having a similar issue with qt5, and apparently installing python-pyqt5.qsci is supposed to fix it, but when I try that I get 'package doesn't exist' errors.

I'm out of ideas. How can I get opensesame installed on ubuntu 18.04?
thanks

Although my experiment is not a mouse-tracking study, I have two pressing mouse-related questions and I figured that you would be the experts.

1) How do I make the cursor show up with a sketchpad item? I have a couple of instruction screens (red), and I would like participants to be able to move their cursors around (to get familiar with them). But as soon as I set an item to be a sketchpad item, the cursor gets hidden. How do I make it re-appear?

2) The only way to get the mouse to appear in a sketchpad item is to follow it with a mouse_response collection item (green). But even then, the cursor image flickers so much that my participants may have seizures >.< Has anyone encountered this problem? How did you go about it?

I am posting a lot lately, I am new to python and open sesame.
BUT I MANAGE IT and the experiment is working! almost..
I am on MacBook Pro 2017
OpenSesame 3.2

I have two loops one is reading from a list of different noise levels, and one is looping in a range

for c in Noise list:
for i in range():
do experiment
My_keyboard = keyboard(timeout=0)
My_keyboard.get_key()
log.write_vars()

Everything in the .csv is NA!! which is frustrating.

I need to find a way to log responses by index C (Noise_list) and trial i and then get key_press only left and right or everything and I can sort that out later.

Can someone help me out ??
I am assuming this is something very trivial for the people who write this things all the time.

Thanks,

]]>
Giving subliminal message and problem of timinghttp://forum.cogsci.nl/index.php?p=/discussion/4143/giving-subliminal-message-and-problem-of-timing
Sat, 19 May 2018 08:46:38 +0000OpenSesameakca_ece4143@/index.php?p=/discussionsHello dear OpenSesame community. I have a timing problem. In my experiment I would like to give subliminal message. As a forehand mask I show a word for 350 ms and immediately after I present my target for 28 ms and another
word for 350 ms as a backward mask. The problem is, when I check the timing, I realize that my target is presented for 84 ms. When I increased the timing to 100 ms, it is appearing for 150 ms. That is, there is always a 50 ms delay. I checked the timing section fot open sesame, I did everything. I shut down all the background programs, internet etc. Also I use xperiment back end. But I don't understand why there is a 50 ms delay.
Could you help me about this issue? How can I show my words/sketchpad exact duration of time.

Ps: My monitor is 60 hz.
PS2: I also create with inlinescript by using canvas. I prepared them first and give the show command later. I still see the same problem.

]]>
my_canvas = canvas() doesn't workhttp://forum.cogsci.nl/index.php?p=/discussion/4141/my-canvas-canvas-doesnt-work
Fri, 18 May 2018 10:59:22 +0000OpenSesameStrako014141@/index.php?p=/discussionsHi, I posted a few days ago with no answer but here I am again on my final efforts with the software.
I am very new to python and opensesame of course.
I am running on a MacBook pro 2017
Open Sesame version is 3.1
my_canvas = canvas()

doesn't work !

I used it alone, as mentioned above and as the "older version"
which is
from openexp.canvas import canvas
my_canvas = canvas(exp)

Everytime I get the following error: AttributeError: 'bool' object has no attribute 'all'
I have tried several things but I can't find the solution. Any advice how to run this code or another way how to swap colors in images would be greatly appreciated!
I have attached the image I am using to this post.

On my multiple choice forms I have the question followed by the tick boxes for the answers and a next button. Currently you can progress by pressing next without having selected one of the options. Is there any way that I could force it so that the next button will only work if you have selected one of the responses? I can remove the next button so that the experiment progresses immediately when the response is given however this doesnt seem ideal as it moves very quickly and doesnt allow someone the opportunity to change their mind / check their response before choosing to progress.

Thanks

]]>
Open Sesame and Python Failurehttp://forum.cogsci.nl/index.php?p=/discussion/4142/open-sesame-and-python-failure
Fri, 18 May 2018 17:09:38 +0000OpenSesameSarah3654142@/index.php?p=/discussionsWhen I used quick run to run my experiment, everything was normal. There was even feedback. Yet, when I closed out of the experiment window, there was a message saying that Python had failed. Did the experiment not log any data, then? How can I fix this?
]]>
How to run specific question linked to specific stimuli, in random loop sequence (Subliminal Task)http://forum.cogsci.nl/index.php?p=/discussion/4139/how-to-run-specific-question-linked-to-specific-stimuli-in-random-loop-sequence-subliminal-task
Fri, 18 May 2018 08:50:02 +0000OpenSesamelorenzino4139@/index.php?p=/discussionsHi everybody,
I'm trying to build up a subliminal experiment!
This experiment is composed of 36 tasks. Each task is made of:
Fixation (2s) - Subliminal Stimulus (58ms) - Distractor Stimulus (2s) - Question (infinite time)

Each questions force the subject to guess which subliminal image have been presented, choosing among 3 possibilities.
I created 12 different types of questions and i'd like to link a specific Subliminal Stimulus to a specific Question, independently from the Distractor Stimulus.

Can I set a "Run If" condition different from [always]/[correct=0/1]?
I thought I could set "if [subliminal]=2 then Run [Question2]" condition, but unfortunately I am not able to do this.

Thank you!

]]>
Help with Hayling Testhttp://forum.cogsci.nl/index.php?p=/discussion/4076/help-with-hayling-test
Sat, 28 Apr 2018 00:50:07 +0000OpenSesameEmaFort4076@/index.php?p=/discussionsHello there!
I've come by this program recently, looking for a way to implement a Hayling Test, but I'm now kind of stuck and in need of some assistance (I thought I could pull it off after watching the tutorial, but boy was I wrong!). If someone could provide me with some guidelines about how to structure my experiment (or point me to a similar one already made), I would be very grateful.
The subjects in this test basically have to listen to a series of incomplete sentences, saying outloud the word that's missing after each one of them. I would like to be able to measure the elapsed time between the end of the sentence and the response of the subject, and if possible, also to record said response (in order to manually classify it after)
I believe the script in this link http://forum.cogsci.nl/index.php?p=/discussion/1772/ is able to do that, but I don't even know where/how should I add it.
Thanks very much in advance!
]]>
Logging multiple key presses and duration between key presseshttp://forum.cogsci.nl/index.php?p=/discussion/4134/logging-multiple-key-presses-and-duration-between-key-presses
Wed, 16 May 2018 15:20:11 +0000OpenSesameattemptingtocode4134@/index.php?p=/discussionsHello

I am new to Python and am trying to set up an experiment in which the subject looks at an ambiguous image for a minute, and presses the left or the right key to indicate what they are seeing. I would like to collect the key presses and the timings of the key presses in a log file. I have tried to do this using pygame.event.get () and specifying the time of KEYDOWN for each press as time - t0, but am not sure how to specify both the name of the key (K_RIGHT; K_LEFT) and also the state (KEYDOWN). I would be very grateful for any help!

Thank you

]]>
Defining many variable (i.e. 7 ) in one inline script and then using them one by one in a loop itemhttp://forum.cogsci.nl/index.php?p=/discussion/4137/defining-many-variable-i-e-7-in-one-inline-script-and-then-using-them-one-by-one-in-a-loop-item
Thu, 17 May 2018 12:01:50 +0000OpenSesameStrako014137@/index.php?p=/discussionsHello,

Very new to OpenSesame, python and psychopy so apologise.
I am using a MacBook pro 2017.

1) I have defined 7 variables/objects in one inline script by using the GratingStim class. Each variable acts as a different level of 2 of my experimental variables defined in the loop item. I am using somethng like this

#

#

on 7 different occasions so is like noise_rc, noise_rc_2 etc up to 7.
All this is done in the Prepare window and the inline script that I define all these is before the loop item.

noise_rc is then defined in as level on two variable sin the loop, however I am getting this:
" python2.7/site-packages/libopensesame/python_workspace.py", line 161, in _exec
exec(bytecode, self._globals)
Inline script, line 20, in
NameError: name 'noise_rc' is not defined"

how can I define all this variables and feed them to the loop item without problems? Do psychopy objects requires specific things to be able to do that?
2) I want one variable to be presented before and after the target in congruent and incongruent style. so one inline script to define these variables is OK, no?

I am facing some timing issues with my experiment. For my experiment I have imported some images and changed them to a single color using an array. But when I run my experiment, it seems my computer is having a hard time processing all the information, resulting in timing issues. Especially when the experiment displays the 8 different images, it needs too much time.
I have tried several things now, including putting as much as possible code in the prepare phase, but these seemed only to have a limited effect. Or maybe the problem could be in me using abundant code.

I have attached (a short version) of my experiment to this post.
It would be wonderful if anyone could help me by looking at my code, or just by giving me advice or tips about which direction to go. Thank you for your help!

I am trying to implement 2 different IAT's (Implicit Association Tests) on an Android tablet. Since the experiment will be performed by the facilitators on the field, I want to keep the screens as simple as possible. I am wondering if there is a way of starting the experiment

-without the intro screens (the ones where the experimenter enters the experiment directory, subject number and the log file directory)
but
-keep the experiment selection screen available (the one that includes the gaze cuing experiment as an example).

I've tried editing the .yml file, but it only starts a single experiment, not the opensesame software.

If I could do that, the facilitator will only be able to see the two different tasks and select one of them to start the experiment.

I am wondering if it is possible and I would really appreciate any help,

Thanks,
Mert

]]>
Multiple tasks in tablethttp://forum.cogsci.nl/index.php?p=/discussion/2146/multiple-tasks-in-tablet
Mon, 30 May 2016 11:17:26 +0000OpenSesameJane6152146@/index.php?p=/discussionsHI, I have three opensesame tasks in my tablet, and every subject has to complete all tasks. My problem is, every time subjects complete one task, I have to enter the task name and subject number again (and I also like to save log file in different folders depending on the task). Is there any way to show these task names and subject number (and path of log files) automatically without entering them again?
]]>
smiley in feedback canvashttp://forum.cogsci.nl/index.php?p=/discussion/4109/smiley-in-feedback-canvas
Tue, 08 May 2018 13:43:09 +0000OpenSesameDahmSF4109@/index.php?p=/discussionsHi folks,

i would pretty much like to put a smiley into a feedback item in python code. Let's make a green happy smiley or a red sad smiley.
I tried it with the text smileys. ☹, ☺
But it seems like they are not provided. I get this rectangle presented (missing font).

currently I'm trying to set up an experiment in which affective stimuli are presented to participants. Before those stimuli are shown, I want the subjects to prerate the stimuli on a scale from 1 to 10. After they've done this, I want to select the four best and the four worst rated stimuli for each participant to use these preselected stimuli in the actual study.

Unfortunately, I have no idea how to get the collected data from the preselection task (which should be stored by a logger), choose the four best and worst stimuli and present only these ones to the subject.
Maybe someone can help me with this problem?

Thanks a lot!
Lea

]]>
counterbalancing 4 blockshttp://forum.cogsci.nl/index.php?p=/discussion/4126/counterbalancing-4-blocks
Mon, 14 May 2018 18:27:52 +0000OpenSesamemay694126@/index.php?p=/discussionshi,
I am quite new to OpenSesame, so I am currently doing an experiment that involves in 4 block, and I am trying to counter-balance the order of the blocks, which should have 24 different combinations. I have watched the counter-balancing tutorials, and I only have 4 combinations after followed those steps mentioned in the video, so could someone help?

What should it do?
Show an instruction to press the SPACE key.
Show a counter that goes down from 5 to 0 in steps of 1sec
However, if SPACE is lifted to early, start from the beginning again.

]]>
Run the feedbackhttp://forum.cogsci.nl/index.php?p=/discussion/4125/run-the-feedback
Mon, 14 May 2018 16:01:56 +0000OpenSesameNiu4125@/index.php?p=/discussionsHi all,
I got a problem when I use OpenSesame to create picture selection experiment. I want the corrective feedback only runs after incorrect answers. I have amended the "run if" option from "always" to "[correct]=0" in the sequence, the feedback still appears every time. And the accuracy and the reaction time cannot be recorded. Do you have the solutions?
Thanks very much for the help!
]]>
Quick Picture Reaction Problemhttp://forum.cogsci.nl/index.php?p=/discussion/4118/quick-picture-reaction-problem
Fri, 11 May 2018 19:42:53 +0000OpenSesameOzgun4118@/index.php?p=/discussionsHi,
My experiment includes picture shows. But I need to show the pictures in a very short time like 250 ms. And I will take reaction during the picture show. My experiment structure is basically "fixation-picture-response tool-logger tool". Picture duration is 0 and response duration is 245 ms. Also I set the correct response variables and allowed response variables. However, correct datas are always "0" and response_experiment datas are always "none". I can't understand why the problem is the participants or the program or my computer.

All the best,
Özgün

]]>
Experiment is crashing regularlyhttp://forum.cogsci.nl/index.php?p=/discussion/4121/experiment-is-crashing-regularly
Sat, 12 May 2018 19:57:11 +0000OpenSesameCruella_de_Vil4121@/index.php?p=/discussionsGood evening.
We have designed an AB-Experiment which is unfortunately crashing in more than 50% of the times. What can we do?

Thanks and best regards,
Cruella

]]>
reaction too slow?http://forum.cogsci.nl/index.php?p=/discussion/4057/reaction-too-slow
Tue, 24 Apr 2018 13:45:04 +0000OpenSesameMengzhu4057@/index.php?p=/discussionsHi developers,
I am using Opensesame to build up a lexical decision task. However, the reaction seems VERY slow. There was almost a second delay between the key press and the disappearance of the visual word.

I didn't have this problem before with a few elements in one sequence. But this time I have more than 20 elements in one sequence, which might cause the trouble?