delmic / odemis

Open Delmic Microscope Software
GNU General Public License v2.0
46 stars 38 forks source link

[fix] driver keysight: ensure no query can be interleaved #2836

Closed pieleric closed 1 month ago

pieleric commented 1 month ago

If several threads attempt to query the device, only one query at a time should be performed, until receiving the answer. Otherwise, mixup between the answers can cause incorrect value reading. => use thread lock.

Also handle error reading specifically, as the format is quite peculiar, to automatically detect such synchronization error and attempt to re-synchronize.

Also fix some minor issues.