robpetrosino

Forum Replies Created

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • in reply to: making html forms mandatory #3650
    robpetrosino
    Participant

    Hi Jeremy,

    my apologies – I must have updated the former version of PC. Now it works!

    The documentation for test.complete can be found on the documentation here. When you want to look up a command for an element, go to its documentation page (in this case, the documentation page for the Html element). Or just use the search field on the top left corner of the website.

    Weird – now the test method is there. Yesterday I couldn’t find it anywhere.

    Thanks!

    in reply to: making html forms mandatory #3646
    robpetrosino
    Participant

    Hi,

    I have put getHtml("name").test.complete() inside wait(), but when I test the script and click on the button, the button gets greyed out and the script does not go through. I can’t seem to find the API reference for test.complete() anymore (I think there was in the earlier version of the site, but I can’t find anything there too).

    Thanks!

    in reply to: penn controller for (visual) masked priming? #3262
    robpetrosino
    Participant

    Hi Jeremy,

    many thanks for your response.

    PennController’s Timer elements currently use JavaScript’s setTimeout function which is far from perfect and can be problematic for highly accurate measures. I wouldn’t rely on it if you need to compose with time windows under about 30ms (missing one refresh rate, you get 2 times 16ms = 32ms). Note that you can estimate how much time really elapsed if you call .settings.log() on your Timer and then look at the difference between the timestamps of the results lines corresponding to the Start and End events.

    Yes, this is a general problem with on-line experiments and it becomes crucial when the results dramatically depend on it! However, I guess that, as long as the prime word is masked (i.e., between 40 and 60 ms), I could be happy.

    A better solution might be to rely on JavaScript’s request​Animation​Frame function, which I plan on using instead of setTimeout for Timer elements in future releases of PennController. I could prioritize working on this feature if you think the current Timer element will give you too poor performances regarding your masked priming needs.

    I must say, I do not know much about JavaScript, but if you think that requestAnimationFrame is a better and safer option, I’ll trust you!

    I’ll give it a try in the weekend and see how it looks like. I’ll keep you posted!

Viewing 3 posts - 16 through 18 (of 18 total)