Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Presenting two images

Hello,

I'm just trying to present two images (target and distracter) simultaneously, randomizing their positions (left and right).
Referring to http://forum.cogsci.nl/index.php?p=/discussion/comment/6377/#Comment_6377, I added the variables into loop item as below and then created the sketchpad in the sequence to add the image stimulus, but it doesn't work correctly.

I imported all images into the file pool.
What can I do?

Thanks!

Comments

  • Hi rrr,

    Did you use the 'Full-factorial design' button in the loop item? See:

    Best,
    Jarik

  • Hello Jarik,

    Yes I used 'Full-factorial design' in the loop item.
    Is it wrong for my design?

    Thanks

  • Hello rrr,

    It's hard to say with so little detail.

    But your loop item is fully filled like figure 8 below?
    http://osdoc.cogsci.nl/3.1/tutorials/beginner/#FigStep3

    Best,
    Jarik

  • Hi,

    There are 2 rows (image and position) in loop item. The former includes 10 columns (10 images), and the latter does 2 (-300 and 300) as I have already showed by image attached to my first post. So the design is 10x2 full factorial.

    OpenSesame shows an error as below.

    Traceback (most recent call last):
      File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libqtopensesame/items/loop.py", line 101, in _show_preview
        dm = self._create_live_datamatrix()
      File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/loop.py", line 230, in _create_live_datamatrix
        dm <<= operations.shuffle(src_dm)[:i]
      File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/python_datamatrix-0.3.1-py2.7.egg/datamatrix/operations.py", line 375, in shuffle
        return obj._selectrowid(_rowid)
      File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/python_datamatrix-0.3.1-py2.7.egg/datamatrix/_datamatrix/_datamatrix.py", line 161, in _selectrowid
        dm._cols[name] = self._cols[name]._getrowidkey(_rowid)
      File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/python_datamatrix-0.3.1-py2.7.egg/datamatrix/_datamatrix/_basecolumn.py", line 418, in _getrowidkey
        col._seq.append(self._seq[self._rowid.index(_rowid)])
    IndexError: list index out of range
    

    Thanks

  • So if I use 'Full-factorial design' to create an example table, it looks like the image below. Note the two empty selected blue cells.

    When I click OK the loop item is filled like the image below. Note there are no empty cells!

    Does this help?

    Jarik

  • Hi Jarik,

    It goes well! I misunderstood the way of 'Full-factorial design' .
    Then I'm trying to create an simple experiment similar to this design as a test (please see the attached program). The design is fixed by the default table of loop item. I have gotten an error as below.

    Details
    
    item-stack: ``
    exception message: [Errno 2] No such file or directory
    time: Mon Jan 9 16:54:33 2017
    exception type: OSError
    

    Also, It says "[image] is unknown or variably defined" in the sketchpad.

    What is the cause of this?

    Thanks a lot!

  • It goes well! I misunderstood the way of 'Full-factorial design' .

    I thought so. This is why I provided a link to the beginner tutorial in my first post

    Also, It says "[image] is unknown or variably defined" in the sketchpad.

    This is the normal behavior (as the image is selected at run-time so it can't be displayed)

    It's a very good idea to create a simple experiment to test things. I also think you really should do the tutorial(s):

    Good luck,
    Jarik

  • Hi Jarik,

    Thanks a lot, but what's the cause of error I mentioned in my 4th comment.
    Sometimes, Opensesame suddenly crashes without showing any errors when I run the experiment.

  • rrrrrr
    edited January 2017

    Hi,

    I found the error is caused by OpenSesame Runner http://forum.cogsci.nl/index.php?p=/discussion/2437/experiments-dont-run-on-mac-capitan-os-error-without-traceback-info#latest.
    It run correctly without any errors when I use multiprocess or_ inprocess_. It may be better to use inprocess because the multiprocess runner takes long time to run the experiment.

    Unfortunately there remains a problem of stimulus presenting duration. It takes approximately 4 seconds even though I specified the duration of 1 second in sketchpad.
    I have used Opensesame with Expyriment backend in Mac OS10.11.6.

    Also I'm not sure which is the best way to present two images simultaneously, sketchpad or inline_script.

Sign In or Register to comment.