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

Update mW at sample displayed by ScanImage when laser changes wavelength #434

Open
raacampbell opened this issue Aug 25, 2022 · 4 comments

Comments

@raacampbell
Copy link
Collaborator

4deeabf
Relies on the user creating structures:

>> laserPower

laserPower = 

  struct with fields:

                   wavelength_in_nm: 800
                           minPower: 0.0017
                           maxPower: 0.2500
    powerFraction2ModulationVoltLut: [59×2 double]
                       dateMeasured: 7.3876e+05

In a laser_calibration directory under SETTINGS and naming them laserPower_800.mat, laserPower_920.mat, etc.

The displayed power in the beam widget is not currently refreshed when the new settings load. Still need to explore how well that will work. Once we are happy with that, we will need to create a GUI for making these files, as without such a GUI the process will be too annoying for anyone to adopt.

The GUI can just have a table with a line per settings file. A way of deleting lines (and so files) and way of entering a new file.

@raacampbell
Copy link
Collaborator Author

Even easier than the GUI: dfd338c
This quick function generates the laser calibration .mat file

@raacampbell
Copy link
Collaborator Author

This is now working well with changes from Vidrio. The last thing that is not working is that Vidrio maybe can not update the mW in the BEAM CONTROLS window when laser changes wavelength. If so, we could just set laser to a default power whenever wavelength is changed. That will ensure the power always alters and so the value in the GUI does also.

@raacampbell
Copy link
Collaborator Author

It all works as expected now. Last thing is to remove the old crappy way of displaying laser power.

@raacampbell
Copy link
Collaborator Author

Has this been removed?

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