PennController for IBEX › Forums › Support › Controller can not retrieve the stimuli
Tagged: #dashedsentence #spr
- This topic has 2 replies, 2 voices, and was last updated 2 years, 3 months ago by sba.
-
AuthorPosts
-
August 22, 2022 at 11:15 am #8348sbaParticipant
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!
August 22, 2022 at 5:57 pm #8350JeremyKeymasterHi,
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=1Delete the extra rows to fix the issue
Jeremy
August 23, 2022 at 5:57 am #8353sbaParticipantHi Jeremy,
It worked! Thank you so much!
-
AuthorPosts
- You must be logged in to reply to this topic.