Reply To: Not sending results

PennController for IBEX Forums Support Not sending results Reply To: Not sending results

#5765
Jeremy
Keymaster

I’ll have to spend more time on this and be able to replicate the problem before I can (try to) fix it

In the meantime, can you try this hack? Replace you Sequence command with this:

Sequence( sepWith("trytoquit" , seq( 'introduction',"checkloadings-introExp", 'callibration','checkloadings-fam','instructions','checkloadings-introTest',"startRecording",'consent','checkloadings-test',"important-points","getkid",
                'introExp','familiarization', 'sendrecords', 'introTrials', sepWith("sendrecords",'test_trial'),'sendrecords-end','bye' ) ) ) //order of trials

Add this to your Header:

newVar("shouldquit",false).global()

And add this trial to your script:

newTrial( "trytoquit" ,
  getVar("shouldquit").test.is(true).success(
    SendResults()
    ,
    clear()
    ,
    newButton().wait()
  )
)

Then replace your SendResults command (and the following commands) in your success commands with this:

getVar("shouldquit").set(true),end()

This way, your script will try to quit the experiment early after every single trial, but will effectively do so only if the shouldquit Var element is true, ie. only after a click on the Sortir button.

Hopefully this should fix the main problem (I think the corrupted file is unrelated)

Jeremy