Reply To: Separator feedback

PennController for IBEX Forums Support Separator feedback Reply To: Separator feedback

#7694
Jeremy
Keymaster

Hi,

I’m not sure whether this should qualify as a bug: the newController command injects the content of what you’d get when creating a dedicated trial using the corresponding controller, inside the current trial (newTrial). When you inject two controllers using newController within the same trial, you are not moving from one trial to the other after you complete the first Controller element: this is why the success/failure of your Separator controller tracks the preceding trial, not the preceding Controller element

If you want to use native-Ibex controllers, you could simply design a native-Ibex experiment (note that you can use Template to generate regular Ibex items). Alternatively, you could design your task within a full-PennController framework:

defaultText.center()
,
newText( "<p>"+row.question+"</p>" ).print()
,
newText("Yes").print(),newText("No").print()
,
newSelector("answer")
    .add(getText("Yes"),getText("No"))
    .keys("F","J")
    .log()
    .wait()
,
clear()
,
getSelector("answer")
    .test.selected( getText(row.answer) )
    .success( newText("Correct").print() ) 
    .failure( newText("Incorrect").print() )
,
newTimer(1000).start().wait()

NB: the Controller element’s log command takes no arguments

Let me know if you have questions

Jeremy