OrsayDev / OrsayLaser

Instrumentation for Laser / Blanker / Gain usage in Nionswift
0 stars 0 forks source link

Abort/Cancel button [yves2.py] #2

Closed yvesauad closed 4 years ago

yvesauad commented 4 years ago

I forgot to add a cancel/abort button

yvesauad commented 4 years ago

I know my xxx.__thread.isAlive() is always true. For some reason i am not killing my thread. Check what is happening.

After solving this issue, implement abort/cancel using thread (check thread.event). As far as i undersood, the idea is to implement this conditioned to the existence of thread.

Also remember that i didn't implement [demo-mode] by threading so don't worry about this. Maybe its a good idea to put a condition in the number of points. Plotting 10^6 points will surely crash

yvesauad commented 4 years ago

thread.is_alive() is know dead after camera acquisition. There was some functions i putted inside the thread that prevented it to be forever alive. If you only put camera.grab... and camera.stop_playing() for instance, thread will die after acquistion