AllenInstitute / ITCXOP2

BSD 3-Clause "New" or "Revised" License
2 stars 3 forks source link

Rework close device to ignore and log DSP timeout errors #22

Closed t-b closed 2 years ago

t-b commented 2 years ago

Sometimes with ITC1600 running the MIES hardware tests, the test don't finish.

One test errors out with UTF background monitor timeout. And then the next fails with DSP timeout (0x80303001).

Turns out closing the device does not work either due to

  DLL Error.
    Error in call to ITC_ConfigDevice.
    Reported error: DSP timeout (0x80303001)

In the code https://github.com/AllenInstitute/ITCXOP2/blob/76b823a7924bf736966e6fe6377c1aceb5f7114d/src/HelperFunctions_ITC.cpp#L33 we might get away with ignoring that error from ITC_ConfigDevice.

PXP: https://aiephys.slack.com/archives/D6WGZV2V8/p1654807949428909