![]() Otherwise, look at online resources like: w3schools. If I use the same size (which seems to be the only way for the experiment to run online) some images shrink/stretch. In mine, each image requires a different size - for example, some images are tall and some images are square. However, it seems that I am collecting mouse position and timing data every 50ms, when I think it should be closer to 16-17ms based on my 58 framerate. In your builder experiment, it looks like you have a fixed size in ‘size’ (size 2,2). My code works well enough that I collect x,y coordinates and a tracking timestamp for each trial. A participant will not need to do this, so. I am trying to use mouse-tracking online. ![]() If this does not work, for example because you have made a change to a spreadsheet rather than the experiment file, use an incognito browser tab. I don’t know if this will work, but hopefully it is a good start for you. When you synchronise changes to your experiment, you will only see those changes online if you clear the cache (using Ctrl-F5, Ctrl-Shift-R or equivalent). Download any existing data from Pavlovia. For another experiment what I did was: Close the experiment in Builder. notice that Javascript likes a lot more punctuation than Python (which is why we all love Python…) I have one experiment still using the html folder where I have set Use PsychoPy Version to 2020.2.3 in Experiment Settings. I’m not a Javascript person, but you Python code above looks like this when auto-translated: m圜ount3 = (m圜ount3 + 1) It is worth downloading the very latest version of PsychoPy from here, as it does now at least attempt to do some auto-translation for you if you choose that “Auto → JS” option.Į.g. This can be “Python”, “JS”, “Both” or “Auto → JS”. In your code components, note that there is now a “code type” button. But you are responsible for providing Javascript equivalents of any custom Python code you have inserted. So Builder generates the experiment for you in Javascript when running online. ![]() The reason seems to be that this code is still in Python. At least from my untrained eye, that these are being ignored on the Pavlovia version.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |