inthatb

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Creating visual stimuli from a csv #8021
    inthatb
    Participant

    Hm… this solution doesn’t work for me? I think the issue is with shuffle – when I don’t shuffle the canvas, the dot switching works fine. However, when I have shuffle, there are sometimes 0,1,2 gaps. I think that this is because shuffle actually chooses 25/27 possibilities and sometimes those choices contain the hidden squares (so we have gaps).
    Also, can you take a look at my jump conditional? The no-interference trial works fine but I think I’m having trouble triggering the jump with an incorrect response.

    in reply to: Creating visual stimuli from a csv #8018
    inthatb
    Participant

    I have made progress – I’ve initialized two squares as dots. To generate a match/mismatch case (indicated by the csv), I’ve reserved squares 1 and 2 as dots. I initially show square 1 and hide square 2. When we get to the mismatch case, I hide square 1 and show square 2 to flip the positions of 2 dots while making the total number of dots the same. There is an issue here – the hidden stimuli don’t have the 1 pixel gray border and make the grid look strange.
    I’m trying to do a similar thing with words. I’m going to show a word list then present them with a match/mismatch condition. I think that the best way to do this is to read in a csv row with #elements + 1, then hide/unhide two words to switch them

    Do you have thoughts?

    My new link: https://upenn.pcibex.net/r/NfPXvD/

    in reply to: Creating visual stimuli from a csv #8014
    inthatb
    Participant

    Hi Jeremy,
    That’s really helpful, thank you!
    I’m trying to set up the grid so that participants will see a grid. After a brief pause, they will see another grid (either the same or different by 1 dot) and asked whether this grid matches the previous grid. Prof. Schwarz suggested that I don’t encode position in the csv but rather use shuffle() on the selector. In the first two rows of the csv, I would have one dot and one blank respectively. Then, I can flip the value of these bits to get a new grid that differs by one.
    I’ve tried implementing it here but have run into three issues. First, I need to shuffle the canvas rather than the selector. However, there doesn’t seem to be a shuffle function for canvas. Second, I don’t know how we can change the image associated with a handle. I need to do this to flip a square to a dot. Third, line 174 doesn’t seem to be showing the grid again after the timer named “wait2” has run out. Do you know how I could fix this?

    Inthat

Viewing 3 posts - 1 through 3 (of 3 total)