open-ephys / GUI

Archived source code for the Open Ephys GUI
https://github.com/open-ephys/plugin-GUI
126 stars 282 forks source link

Opal Kelly libraries have trouble re-loading the acq board #58

Closed jsiegle closed 11 years ago

jsiegle commented 11 years ago

The first time the Rhythm FPGA processor is used, everything works flawlessly. But if this processor is deleted and dropped onto the signal chain a second time, the Opal Kelly API can't find the board. It's weird that restarting the software fixes things, since the destructor code should be the same either way. Wiping the bitfile doesn't help.

This might be a Windows-specific problem, I haven't checked.

aacuevas commented 11 years ago

Rythm API wasn't deleting the FrontPanel object when Rhd2000EvalBoard was deleted, so the board was still "in use". Added a destructor and a few checks to fix that. I don't have the acq board at hand at this moment, please check if it works now.

open-ephys commented 11 years ago

Yep, that fixed it! Thanks!