You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to how the initializing process, we are resetting the context multiple times to refresh the device table when conditions change (e.g.: after powering a headstage or setting passthrough mode).
At the moment ContextTask.Reset() disposes the entire oni.Context and creates a new one. This seem inefficient. The reset should instead call oni.Context.Refresh(), which issues the soft-reset command and repopulates the device table without closing the context or hardware connection itself.
This is required if we add a hardware safety that truly resets the hardware to POR conditions after the connection is closed, as suggested on #406 .
@glopesdev can you think, top of your head, of any possible downside that I might not be seeing?
The text was updated successfully, but these errors were encountered:
Due to how the initializing process, we are resetting the context multiple times to refresh the device table when conditions change (e.g.: after powering a headstage or setting passthrough mode).
At the moment
ContextTask.Reset()
disposes the entireoni.Context
and creates a new one. This seem inefficient. The reset should instead calloni.Context.Refresh()
, which issues the soft-reset command and repopulates the device table without closing the context or hardware connection itself.This is required if we add a hardware safety that truly resets the hardware to POR conditions after the connection is closed, as suggested on #406 .
@glopesdev can you think, top of your head, of any possible downside that I might not be seeing?
The text was updated successfully, but these errors were encountered: