Open qigongFDA opened 6 years ago
Information for MAC 6000 stage:
In matlab we can use 'timer' object to continually execute some commands (e.g. send 'where x y' to stage and save positions) More information about the 'timer' object is in the documentation links below: https://www.mathworks.com/help/matlab/ref/timer-class.html https://www.mathworks.com/help/matlab/ref/timer.delete.html
Note:
Format of timer called function is
function executeStageTimer(hObject, eventdata, hFigure) handles = guidata(hFigure); end
Where the input variables: hObject, eventdata, hFigure are not same input variables of GUI functions. Thus, we should use handles = guidata(hFigure); to get GUI variables.
In Camera_stage_review GUI, the 'Start Video', 'Stop Video' button can record stage position.
We use timer function to execute commands (get and save stage position) in every 2s. The positions will be saved in a csv file.
Recording the stage position continuously can help a lot to track pathologist reading path.