C# Class TransferCavityLock.MainForm

Front panel of the laser controller
Inheritance: System.Windows.Forms.Form
ファイルを表示 Open project: ColdMatter/EDMSuite Class Usage Examples

Public Properties

Property Type Description
MasterDataPlot NationalInstruments.UI.ScatterPlot
MasterFitPlot NationalInstruments.UI.ScatterPlot
MasterLaserIntensityScatterGraph NationalInstruments.UI.WindowsForms.ScatterGraph
SlaveDataPlot NationalInstruments.UI.ScatterPlot
SlaveFitPlot NationalInstruments.UI.ScatterPlot
SlaveLaserIntensityScatterGraph NationalInstruments.UI.WindowsForms.ScatterGraph
controller Controller

Public Methods

Method Description
EnableControl ( Control control, bool enabled ) : void
GetGain ( ) : double
GetLaserSetPoint ( ) : double
GetNumberOfPoints ( ) : int
GetScanOffset ( ) : double
GetScanWidth ( ) : double
MainForm ( ) : System

The UI for TransferCavityLock

ScatterGraphPlot ( ScatterGraph graph, ScatterPlot plot, double x, double y ) : void
SetCheckBox ( CheckBox box, bool state ) : void
SetGain ( double value ) : void
SetLED ( Led led, bool val ) : void
SetLaserSetPoint ( double value ) : void
SetLaserVoltage ( double value ) : void
SetNumberOfPoints ( int value ) : void
SetRadioButton ( RadioButton button, bool state ) : void
SetScanOffset ( double value ) : void
SetScanWidth ( double value ) : void
SetSetPointIncrementSize ( double value ) : void
SetTextBox ( TextBox box, string text ) : void
updateUIState ( Controller state ) : void

This controls which parts of the UI are enabled for a given machine state.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
EnableControlHelper ( Control control, bool enabled ) : void
GainChanged ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

MainForm_Load ( object sender, EventArgs e ) : void
SetCheckHelper ( CheckBox box, bool state ) : void
SetLedHelper ( Led led, bool val ) : void
SetRadioButtonHelper ( RadioButton button, bool state ) : void
SetTextHelper ( TextBox box, string text ) : void
VoltageToLaserChanged ( object sender, EventArgs e ) : void
fitAndStabilizeEnableCheck_CheckedChanged ( object sender, EventArgs e ) : void
lockEnableCheck_CheckedChanged ( object sender, EventArgs e ) : void
plotScatterGraphHelper ( ScatterPlot plot, double x, double y ) : void
rampStartButton_Click ( object sender, EventArgs e ) : void
rampStopButton_Click ( object sender, EventArgs e ) : void
setPointAdjustMinusButton_Click ( object sender, EventArgs e ) : void
setPointAdjustPlusButton_Click ( object sender, EventArgs e ) : void
setPointIncrementBox_TextChanged ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

EnableControl() public method

public EnableControl ( Control control, bool enabled ) : void
control System.Windows.Forms.Control
enabled bool
return void

GetGain() public method

public GetGain ( ) : double
return double

GetLaserSetPoint() public method

public GetLaserSetPoint ( ) : double
return double

GetNumberOfPoints() public method

public GetNumberOfPoints ( ) : int
return int

GetScanOffset() public method

public GetScanOffset ( ) : double
return double

GetScanWidth() public method

public GetScanWidth ( ) : double
return double

MainForm() public method

The UI for TransferCavityLock
public MainForm ( ) : System
return System

ScatterGraphPlot() public method

public ScatterGraphPlot ( ScatterGraph graph, ScatterPlot plot, double x, double y ) : void
graph ScatterGraph
plot ScatterPlot
x double
y double
return void

SetCheckBox() public method

public SetCheckBox ( CheckBox box, bool state ) : void
box System.Windows.Forms.CheckBox
state bool
return void

SetGain() public method

public SetGain ( double value ) : void
value double
return void

SetLED() public method

public SetLED ( Led led, bool val ) : void
led Led
val bool
return void

SetLaserSetPoint() public method

public SetLaserSetPoint ( double value ) : void
value double
return void

SetLaserVoltage() public method

public SetLaserVoltage ( double value ) : void
value double
return void

SetNumberOfPoints() public method

public SetNumberOfPoints ( int value ) : void
value int
return void

SetRadioButton() public method

public SetRadioButton ( RadioButton button, bool state ) : void
button System.Windows.Forms.RadioButton
state bool
return void

SetScanOffset() public method

public SetScanOffset ( double value ) : void
value double
return void

SetScanWidth() public method

public SetScanWidth ( double value ) : void
value double
return void

SetSetPointIncrementSize() public method

public SetSetPointIncrementSize ( double value ) : void
value double
return void

SetTextBox() public method

public SetTextBox ( TextBox box, string text ) : void
box System.Windows.Forms.TextBox
text string
return void

updateUIState() public method

This controls which parts of the UI are enabled for a given machine state.
public updateUIState ( Controller state ) : void
state Controller
return void

Property Details

MasterDataPlot public_oe property

public NationalInstruments.UI.ScatterPlot MasterDataPlot
return NationalInstruments.UI.ScatterPlot

MasterFitPlot public_oe property

public NationalInstruments.UI.ScatterPlot MasterFitPlot
return NationalInstruments.UI.ScatterPlot

MasterLaserIntensityScatterGraph public_oe property

public NationalInstruments.UI.WindowsForms.ScatterGraph MasterLaserIntensityScatterGraph
return NationalInstruments.UI.WindowsForms.ScatterGraph

SlaveDataPlot public_oe property

public NationalInstruments.UI.ScatterPlot SlaveDataPlot
return NationalInstruments.UI.ScatterPlot

SlaveFitPlot public_oe property

public NationalInstruments.UI.ScatterPlot SlaveFitPlot
return NationalInstruments.UI.ScatterPlot

SlaveLaserIntensityScatterGraph public_oe property

public NationalInstruments.UI.WindowsForms.ScatterGraph SlaveLaserIntensityScatterGraph
return NationalInstruments.UI.WindowsForms.ScatterGraph

controller public_oe property

public Controller,TransferCavityLock controller
return Controller