Controller can not retrieve the stimuli

PennController for IBEX Forums Support Controller can not retrieve the stimuli

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8348
    sba
    Participant

    Hi Jeremy,

    I am working on a self-paced reading study that includes an acceptability judgment test followed by comprehension questions. The problem is that the controller can not retrieve the sentences from the .csv file. At first, the code worked for the practice trial but when I wrote the part about the experimental trial, the problem occurred although I did not change anything. Yet it can be related to another problem I explain below.

    Here is the code:

    
    Template("practice_table.csv", row =>
        newTrial("practice-trial",
            newController("DashedSentence", {s: row.sentence})
                .cssContainer({"margin-top":"2em", "margin-bottom":"2em"})
                .print()
                .center()
                .log()      
                .wait()
                .remove()
            ,
            newScale("judgment", 7)
                .before( newText("left", "<div class='fancy'>(highly unacceptable)</div>") )
                .after( newText("right", "<div class='fancy'>(highly acceptable)</div>") )
                .labelsPosition("top")
                .color("LightCoral")
                .keys()
                .log()
                .once()
                .center()
                .print()
                .wait()
                .remove()
            ,
            newText("question", row.question)
                .center()
                .log()
                .print()
            ,
            newScale("comprehension", 2)
                .before( newText("left2", "<div class='fancy'>YES</div>") )
                .after( newText("right2", "<div class='fancy'>NO</div>") )
                .color("Blue")
                .keys()
                .log()
                .once()
                .labelsPosition("bottom")
                .center()
                .print()
                .wait()
                )
                
                
            )
    

    The other problem I have encountered is that sometimes the code is not saved although it is seen as saved. Following the suggestions on the forum, I deleted the main.js and uploaded my script again but it did not work. I also cloned the file and copy+paste the code on a new draft but I could not solve the problem for good.

    Here is the link: https://farm.pcibex.net/r/cBTdXc/

    Thanks in advance!

    #8350
    Jeremy
    Keymaster

    Hi,

    The script successfully reads the sentence column from the CSV file, but it contains 12 rows with empty text cells, which is why you see empty sentences when you take the experiment in the first group. It runs normally when you force other groups, eg: https://farm.pcibex.net/r/cBTdXc/experiment.html?withsquare=1

    Delete the extra rows to fix the issue

    Jeremy

    #8353
    sba
    Participant

    Hi Jeremy,

    It worked! Thank you so much!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.