ahrendsen / RbControl

This is the code that is used to control the raspberry pi to collect data on the Rubidium Spin Filter Experiment.
0 stars 1 forks source link

Improve Speed of attaining Laser Tuning #10

Open ahrendsen opened 2 years ago

ahrendsen commented 2 years ago

One of the slower parts of collecting data is waiting for the pump laser to reach the desired detuning. I think that my current method could be improved significantly. Previously I was scared to make too big a jump of detuning in one shot, but I'm now convinced it's time to try.

Pasted below are two examples of the laser going from one detuning to another. The task is to find out the ratio of voltage shift to detuning shift, and add that factor into pumpLaserControl.c program. Then when the laser changes voltage to get to a given detuning, it will be calculating the needed change in voltage based on this ratio.

Again, @nstamos20, I think this is a fairly straightforward change that you can implement to help yourself get familiar with the code.

PuL @ d=1.41-> d=12.00Increasing detuning The piezo is currently at 1.5 GHz The piezo is currently at 39.8V, increasing to 41.8V .Increasing detuning The piezo is currently at 2.3 GHz The piezo is currently at 41.8V, increasing to 43.8V .Increasing detuning The piezo is currently at 3.1 GHz The piezo is currently at 43.8V, increasing to 45.8V .Increasing detuning The piezo is currently at 4.0 GHz The piezo is currently at 45.8V, increasing to 47.8V .Increasing detuning The piezo is currently at 4.9 GHz The piezo is currently at 47.8V, increasing to 49.8V .Increasing detuning The piezo is currently at 5.8 GHz The piezo is currently at 49.8V, increasing to 51.8V .Increasing detuning The piezo is currently at 6.8 GHz The piezo is currently at 51.8V, increasing to 53.8V .Increasing detuning The piezo is currently at 7.7 GHz The piezo is currently at 53.8V, increasing to 55.8V .Increasing detuning The piezo is currently at 8.7 GHz The piezo is currently at 55.8V, increasing to 57.8V .Increasing detuning The piezo is currently at 9.6 GHz The piezo is currently at 57.8V, increasing to 59.8V .Increasing detuning The piezo is currently at 10.6 GHz The piezo is currently at 59.8V, increasing to 61.8V .Increasing detuning The piezo is currently at 11.6 GHz The piezo is currently at 61.8V, increasing to 62.0V .Increasing detuning The piezo is currently at 11.8 GHz The piezo is currently at 62.0V, increasing to 62.2V .Increasing detuning The piezo is currently at 11.9 GHz The piezo is currently at 62.2V, increasing to 62.3V .Increasing detuning The piezo is currently at 11.9 GHz The piezo is currently at 62.3V, increasing to 62.4V .The laser is correctly tuned at 62.4000023.1V

PuL @ d=12.04-> d=1.50Decreasing detuning The frequency is currently at 12.0 GHz The piezo is currently at 62.4V, reducing to 60.4V .Decreasing detuning The frequency is currently at 11.3 GHz The piezo is currently at 60.4V, reducing to 58.4V .Decreasing detuning The frequency is currently at 10.4 GHz The piezo is currently at 58.4V, reducing to 56.4V .Decreasing detuning The frequency is currently at 9.6 GHz The piezo is currently at 56.4V, reducing to 54.4V .Decreasing detuning The frequency is currently at 8.7 GHz The piezo is currently at 54.4V, reducing to 52.4V .Decreasing detuning The frequency is currently at 7.7 GHz The piezo is currently at 52.4V, reducing to 50.4V .Decreasing detuning The frequency is currently at 6.8 GHz The piezo is currently at 50.4V, reducing to 48.4V .Decreasing detuning The frequency is currently at 5.8 GHz The piezo is currently at 48.4V, reducing to 46.4V .Decreasing detuning The frequency is currently at 4.9 GHz The piezo is currently at 46.4V, reducing to 44.4V .Decreasing detuning The frequency is currently at 3.9 GHz The piezo is currently at 44.4V, reducing to 42.4V .Decreasing detuning The frequency is currently at 2.9 GHz The piezo is currently at 42.4V, reducing to 40.4V .Decreasing detuning The frequency is currently at 1.9 GHz The piezo is currently at 40.4V, reducing to 40.2V .Decreasing detuning The frequency is currently at 1.8 GHz The piezo is currently at 40.2V, reducing to 39.1V .Increasing detuning The frequency is currently at 1.3 GHz The piezo is currently at 39.1V, increasing to 39.3V .Increasing detuning The frequency is currently at 1.3 GHz The piezo is currently at 39.3V, increasing to 39.5V .Increasing detuning The frequency is currently at 1.4 GHz The piezo is currently at 39.5V, increasing to 39.6V .Increasing detuning The frequency is currently at 1.4 GHz The piezo is currently at 39.6V, increasing to 39.7V .The laser is correctly tuned at 39.7000013.1V