SWC-Advanced-Microscopy / BakingTray

Serial-section automated anatomy extension for ScanImage
https://bakingtray.mouse.vision/
GNU Lesser General Public License v3.0
10 stars 5 forks source link

Prepare GUI contains a blocking operation that pauses all of MATLAB #48

Open raacampbell opened 7 years ago

raacampbell commented 7 years ago

Press Focus and open Prepare GUI. The image on screen pauses at regular intervals. Likely a regular serial command is blocking. Could run this in a parfeval to stop this bahavior or place in a timer. Alternatively, it might be possible to listen to one of the properties (such as currentPosition in linearstage). The problem with the latter approach is that a motion command does not currently cause currentPosition to be updated automatically. The former approach required the parrallel compute toolbox to be present and might be dangerous. Before proceeding, should check which axes are causing the problem.

raacampbell commented 7 years ago

Stop the timer when the rest of the GUI is disabled: f0dfea136e7805160e737af7b8e5f86f8a270ab0 Update every second only. Running in a parfeval doesn't stop the temporary pause in the acquisition.