PyFixate / Fixate

Framework for hardware test fixtures and automatic test environments
MIT License
22 stars 16 forks source link

Changes to ExcThread need review in daqmx driver #116

Closed clint-lawrence closed 4 years ago

clint-lawrence commented 5 years ago

The daqmx driver's TwoEdgeSeparation possibly relied upon some of the nastier aspects of the old version of ExcThread (present in 0.5.2). This most likely will need to be reviewed for robustness under error. However we will need to setup some hardware to sufficiently test.

clint-lawrence commented 4 years ago

Some more specific details on the issue here. TwoEdgeSeparation.read() expects _trigger_thread to have an exec_info attribute. However that was removed in #112. My understanding is that this whole contraption with thread is to prevent a test script locking up in the read call in the case that the two edge separation is never actually triggered.

As well as that, it is often the case that you need to do something like

Hopefully that provides a bit more context to what the concern is here.