C# Класс TransferCavityLock.Controller

A class for locking the laser using a transfer cavity.
Наследование: System.MarshalByRefObject
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Decrements int
Increments int
State ControllerState
lState LaserState
rampStopLock object
setPointIncrementSize double
tweakLock object

Открытые методы

Метод Описание
DisengageLock ( ) : void
EngageLock ( ) : void
InitializeLifetimeService ( ) : Object
InitializeUI ( ) : void
StabilizeCavity ( ) : void
Start ( ) : void
StartRamp ( ) : void
StopRamp ( ) : void
UnlockCavity ( ) : void

Приватные методы

Метод Описание
CalculateLaserSetPoint ( double masterFitCoefficients, double slaveFitCoefficients ) : double

Measures the laser set point (the distance between the he-ne and TiS peaks in cavity voltage units) The lock (see calculateDeviationFromSetPoint) will adjust the voltage fed to the TiS to keep this number constant.

WindowGainChanged ( double g ) : void
WindowVoltageToLaserChanged ( double voltage ) : void
calculateDeviationFromSetPoint ( double laserSetPoint, double masterFitCoefficients, double slaveFitCoefficients ) : double
calculateNewScanCentre ( ScanParameters scanParameters, double fitCoefficients ) : double

This adjusts the scan range of the next scan, so that the HeNe peak stays in the middle of the scan. It modifies the scan parameters that are passed to it.

calculateNewVoltageToLaser ( double vtolaser, double measuredVoltageChange ) : double
createInitialScanParameters ( ) : ScanParameters
displayData ( ScanParameters sp, CavityScanData data ) : void
displayMasterFit ( ScanParameters sp, double fitCoefficients ) : void
displaySlaveFit ( ScanParameters sp, double fitCoefficients ) : void
finalizeRamping ( ) : void
initializeControllerValues ( ) : void
initializeHardware ( ) : void
rampLoop ( ) : void

The main loop. Scans the cavity, looks at photodiodes, corrects the cavity scan range for the next scan and locks the laser. It does a first scan of the data before starting. It then enters a loop where the next scan is prepared. The preparation varies depending on the ControllerState. Once all the preparation is done, the next scan is started. And so on.

readParametersFromUI ( ) : void

Gets some parameters from the UI and stores them on the controller.

releaseLaser ( ) : void
saveFitData ( System file, double param ) : void
scan ( ScanParameters sp ) : CavityScanData

A function to scan across the voltage range set by the limits high and low. Reads from the two photodiodes and spits out an array. The basic unit of the program.

setToLaserEngaged ( ) : void
setUIInitialValues ( ) : void
tweakSetPoint ( double oldSetPoint ) : double

Описание методов

DisengageLock() публичный Метод

public DisengageLock ( ) : void
Результат void

EngageLock() публичный Метод

public EngageLock ( ) : void
Результат void

InitializeLifetimeService() публичный Метод

public InitializeLifetimeService ( ) : Object
Результат Object

InitializeUI() публичный Метод

public InitializeUI ( ) : void
Результат void

StabilizeCavity() публичный Метод

public StabilizeCavity ( ) : void
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

StartRamp() публичный Метод

public StartRamp ( ) : void
Результат void

StopRamp() публичный Метод

public StopRamp ( ) : void
Результат void

UnlockCavity() публичный Метод

public UnlockCavity ( ) : void
Результат void

Описание свойств

Decrements публичное свойство

public int Decrements
Результат int

Increments публичное свойство

public int Increments
Результат int

State публичное свойство

public ControllerState State
Результат ControllerState

lState публичное свойство

public LaserState lState
Результат LaserState

rampStopLock публичное свойство

public object rampStopLock
Результат object

setPointIncrementSize публичное свойство

public double setPointIncrementSize
Результат double

tweakLock публичное свойство

public object tweakLock
Результат object