Multiple templates and problems logging data

PennController for IBEX Forums Support Multiple templates and problems logging data

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7577
    marisolmuru
    Participant

    Hi Jeremy!

    I’m using several templates in my script and it makes me add an extra ) to separate them, otherwise I can’t run the experiment. But if a add them then it doesn’t log the info I declare at the end of the trials onto the results sheet.

    Here is my demonstration link: https://farm.pcibex.net/r/gMCzhx/

    Thanks in advance,
    Marisol.

    #7579
    Jeremy
    Keymaster

    Hi Marisol,

    The closing parenthesis at line 406 matches the open parenthesis of failure( at line 404, but you use it as if it were closing the open parenthesis of newTrial( from line 378. As a result, all the .logs that you attach to that closing parenthesis refer to the Key element on which you called failure, so you won’t get any extra column (but you should get a line for a keypress, for sure)

    The same problem is repeated in the two other Template commands

    Tip: the editor on the PCIbex Farm will highlight the matching parentheses when you place the caret just before or after, or if you select, the parenthesis

    Jeremy

    #7582
    marisolmuru
    Participant

    Thank you! I changed the placement of the parenthesis and now it works. I wasn’t paying attention to the highligts, great tip :).

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