open-ephys / liboni

API for controlling ONI-compliant hardware
https://open-ephys.github.io/onix-docs/API%20Reference/index.html
0 stars 5 forks source link

Store persistent state for devices in onidriver_test #20

Open bparks13 opened 9 months ago

bparks13 commented 9 months ago

Making changes to the Enable register for test devices has no effect as they only update during a reset. Resetting in this context means restarting the whole program, which overwrites any changes made to the registers anyway.

It would be good to store a persistent state for test devices that can be loaded by oni-repl and applied, mimicking real world hardware via a virtual state. For Linux, this configuration could be placed in /tmp, but I don't know the best place to store it for Windows installations.

jonnew commented 9 months ago

For the record, Test0 devices that exist in actual hardware (like those used for debug during FPGA development) do store persistent state. What we want is for the onidriver_test's internal Test0 devices to have this behavior.