wright-group / yaqc-cmds

A qt-based graphical client for yaq with a focus on coherent multidimensional spectroscopy in the Wright Group.
MIT License
7 stars 4 forks source link

yaqc-cmds bogs down cpu if delay motor is busy #351

Closed ddkohler closed 3 years ago

ddkohler commented 3 years ago

fs table, d2 freezes busy, cpu maxes out. CPU goes back to normal after yaqc-cmds closes (but daemon is still active and busy).

ddkohler commented 3 years ago

It must be the while loop that commits the cpu? https://github.com/wright-group/yaqc-cmds/blob/231151940caa8479956389244b66eb0a62faacd3/yaqc_cmds/hardware/delays.py#L84-L90

Perhaps a sleep call within the loop fixes this...

ksunden commented 3 years ago

putting that sleep inside of the while loop may solve the problem, at least keep cpu usage down