Millisecond Online Community

Forums & Feeds
Welcome to Millisecond Online Community Sign in | Join | Help
in Search

pseudorandom selection

Last post 05-28-2008, 3:19 AM by jens. 2 replies.
Sort Posts: Previous Next
  •  05-20-2008, 6:33 AM 1645

    pseudorandom selection

    Hello,

    I'd like to present two numbers (1-9) next to each on the screen but I have to avoid ties. I use the follwoing code to prevent the presentation of ties. However, I did not succeed. I also tried other approaches that I found here in the forum (e.g., using a counter) but I still get ties. Any idea why? (Inquisit 2.0.61004.6). There is also a <text left> and a <text right_large element> which have the same structure as the ones posted.

    <text right>
     / items = zahlen
     / position = (60%,50%)
     / fontstyle = ("Verdana", 24pt, false, false, false, false, 5, 0)
    </text>

    <text left_large>
     / items = zahlen
     / position = (40%,50%)
     / fontstyle = ("Verdana", 40pt, false, false, false, false, 5, 0)
     / select = replacenot(right)
    </text>

    <item zahlen>
     /1 = "1"
     / 2 = "2"
     / 3 = "3"
     / 4 = "4"
     / 5 = "5"
     / 6 = "6"
     / 7 = "7"
     / 8 = "8"
     / 9 = "9"
    </item>

    Jens
  •  05-26-2008, 8:35 PM 1647 in reply to 1645

    Re: pseudorandom selection

    Hi Jens,

    I tried this out but I'm not getting any matches. The script I used is below. Perhaps if you compare it with yours you might get a hint about the problem. If not, could you send a more extended snippet that includes the trial definition?

    <text right>
    / items = zahlen
    / position = (60%,50%)
    / fontstyle = ("Verdana", 24pt, false, false, false, false, 5, 0)
    </text>

    <text left_large>
    / items = zahlen
    / position = (40%,50%)
    / fontstyle = ("Verdana", 40pt, false, false, false, false, 5, 0)
    / select = replacenot(right)
    </text>

    <item zahlen>
    /1 = "1"
    / 2 = "2"
    / 3 = "3"
    / 4 = "4"
    / 5 = "5"
    / 6 = "6"
    / 7 = "7"
    / 8 = "8"
    / 9 = "9"
    </item>

    <trial selectreplacenot>
    / stimulusframes = [1=right, left_large]
    / validresponse = (" ")
    </trial>

    <block selectreplacenot>
    / trials = [1-100=selectreplacenot]
    </block>

    <expt selectreplacenot>
    / blocks = [1=selectreplacenot]
    </expt>

     

  •  05-28-2008, 3:19 AM 1653 in reply to 1647

    Re: pseudorandom selection

    Hello

    here are the trial definitions

    <trial left>
     /stimulusframes = [1=fixationskreuz; 29 = blank; 30 = left_large, right]
     /inputdevice = keyboard
     /validresponse = ("f","j")
     /correctresponse = ("f")
    </trial>

    <trial right>
     /stimulusframes = [1=fixationskreuz; 29 = blank; 30 = left, right_large]
     /inputdevice = keyboard
     /validresponse = ("f","j")
     /correctresponse = ("j")
    </trial>

    <block large_small>
    / trials = [1 -18 = noreplace(left,right)]
    </block>

    <expt>
    / blocks = [1 = large_small]
    </expt>

    Thanks for your help.

    Jens

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems