DIDSR / eeDAP

Evaluation Environment for Digital and Analog Pathology
http://didsr.github.io/eeDAP/
Other
16 stars 21 forks source link

Record stage position continually #74

Open qigongFDA opened 6 years ago

qigongFDA commented 6 years ago

Recording the stage position continuously can help a lot to track pathologist reading path.

qigongFDA commented 6 years ago

Information for MAC 6000 stage:

  1. We only use "where x y" to get stage position. It can get the position when stage is moving by joystick.
  2. We haven't found a method to get the position log of stage.
qigongFDA commented 6 years ago

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:

  1. Period of 'timer' should be a fixed number.
  2. 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.

qigongFDA commented 6 years ago

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.