Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record stage position continually #74

Open
qigongFDA opened this issue Mar 20, 2018 · 3 comments
Open

Record stage position continually #74

qigongFDA opened this issue Mar 20, 2018 · 3 comments

Comments

@qigongFDA
Copy link
Contributor

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

@qigongFDA
Copy link
Contributor Author

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
Copy link
Contributor Author

qigongFDA commented Apr 2, 2018

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant