Ok so I think that I had the old version of the toolbox with the bad resync code. I’m not sure how the psychopy standalone packages this library but I reinstalled from github and I’m currently at 1-2 ms offsets for visual stimuli and happily debugging sound scheduling now. thanks!
Great to hear/read!
The standalone package merely uses the most up-to-date package where we avoided what the EGI documentation said to do with resync()
and instead did effectively a clock reset.
back again with some deeper package questions
I’m scheduling sounds so I can’t rely on callonflip and i’m wondering if
line 273 in Netstation.py should change from
start = start
to
start = start - self._syncepoch
to align with line 271
full disclosure, in order to get accurate timing i’m doing this manually in my code and mangling things like this.
eci.send_event(event_type=toneTagIndex, start = psyTime-eci._syncepoch)
Hmmm - that makes sense to me, but I’ll do some testing… we’ve mostly relied on the “now” option (also the default) which does this behind the scenes (line 270-271):
if start == 'now':
start = time.time() - self._syncepoch
I’ve made this change to our GitHub repo. Now it should get updated in the next build of PsychoPy initiated by @jon
Sounds good. Actually, with the new plugin system, new version of egi_pynetstation is released to pypi, it will be installable to an existing PsychoPy install (after 2023.1 when the plugin system came into effect).
In macos already, and in future releases of win standalone, I expect we won’t package any version of egi_pynetstation and it will only be installed as a 3rd-party plugin from @pmolfese and team