C# Class TransferCavityLock2012.MainForm

Front panel of the laser controller
Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: ColdMatter/EDMSuite Class Usage Examples

Public Properties

Property Type Description
CavLockVoltageTrackBar System.Windows.Forms.TrackBar
CavityVoltageReadScatterGraph NationalInstruments.UI.WindowsForms.ScatterGraph
MasterDataPlot NationalInstruments.UI.ScatterPlot
MasterFitPlot NationalInstruments.UI.ScatterPlot
MasterFitTextBox System.Windows.Forms.TextBox
MasterGainTextBox System.Windows.Forms.TextBox
MasterLaserIntensityScatterGraph NationalInstruments.UI.WindowsForms.ScatterGraph
MasterSetPointTextBox System.Windows.Forms.TextBox
VToOffsetTextBox System.Windows.Forms.TextBox
axisCheckBox System.Windows.Forms.CheckBox
cavityDataPlot NationalInstruments.UI.ScatterPlot
controller Controller
logCheckBox System.Windows.Forms.CheckBox
masterLockEnableCheck System.Windows.Forms.CheckBox
scanAvCheckBox System.Windows.Forms.CheckBox

Public Methods

Method Description
AddSlaveLaser ( SlaveLaser sl ) : void
ClearErrorGraph ( string name ) : void
DisplayCavityData ( double indeces, double cavityData ) : void
DisplayData ( string name, double cavityData, double slaveData ) : void
DisplayErrorData ( string name, double time, double errordata ) : void
DisplayFit ( string name, double cavityData, double slaveFitData ) : void
DisplayMasterData ( double cavityData, double masterData ) : void
DisplayMasterData ( double cavityData, double masterData, double masterFitData ) : void
DisplaySlaveData ( string name, double cavityData, double slaveData, double slaveFitData ) : void
DisplaySlaveDataNoFit ( string name, double cavityData, double slaveData ) : void
EnableControl ( Control control, bool enabled ) : void
GetErrorCount ( string name ) : int
GetGain ( string name ) : double
GetLaserSetPoint ( string name ) : double
GetNumberOfPoints ( ) : int
GetVtoOffsetVoltage ( ) : double
IncrementErrorCount ( string name ) : void
MainForm ( ) : System

The UI for TransferCavityLock

MainForm ( string name ) : System
SetCheckBox ( CheckBox box, bool state ) : void
SetGain ( string name, double value ) : void
SetLED ( Led led, bool val ) : void
SetLaserSetPoint ( string name, double value ) : void
SetLaserVoltage ( string name, double value ) : void
SetMasterFitTextBox ( double value ) : void
SetMasterSetPointTextBox ( double value ) : void
SetNumberOfPoints ( int value ) : void
SetSetPointIncrementSize ( string name, double value ) : void
SetTextBox ( TextBox box, string text ) : void
SetVtoOffsetVoltage ( double value ) : void
ShowAllTabPanels ( ) : void
UpdateElapsedTime ( double time ) : 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
CavLockVoltageTrackBar_Scroll ( object sender, EventArgs e ) : void
EnableControlHelper ( Control control, bool enabled ) : void
InitializeComponent ( ) : void

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

MainForm_FormClosing ( object sender, FormClosingEventArgs e ) : void
MainForm_Load ( object sender, EventArgs e ) : void
SetCheckHelper ( CheckBox box, bool state ) : void
SetLedHelper ( Led led, bool val ) : void
SetTextHelper ( TextBox box, string text ) : void
UpdateUIState ( string name, SlaveLaser state ) : void
axisCheckBox_CheckedChanged ( object sender, EventArgs e ) : void
logCheckBox_CheckedChanged ( object sender, EventArgs e ) : void
masterLockEnableCheck_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
scatterGraphPlot ( ScatterGraph graph, ScatterPlot plot, double x, double y ) : void
stopAllLocking ( ) : void
voltageRampControl_Enter ( object sender, EventArgs e ) : void

Method Details

AddSlaveLaser() public method

public AddSlaveLaser ( SlaveLaser sl ) : void
sl SlaveLaser
return void

ClearErrorGraph() public method

public ClearErrorGraph ( string name ) : void
name string
return void

DisplayCavityData() public method

public DisplayCavityData ( double indeces, double cavityData ) : void
indeces double
cavityData double
return void

DisplayData() public method

public DisplayData ( string name, double cavityData, double slaveData ) : void
name string
cavityData double
slaveData double
return void

DisplayErrorData() public method

public DisplayErrorData ( string name, double time, double errordata ) : void
name string
time double
errordata double
return void

DisplayFit() public method

public DisplayFit ( string name, double cavityData, double slaveFitData ) : void
name string
cavityData double
slaveFitData double
return void

DisplayMasterData() public method

public DisplayMasterData ( double cavityData, double masterData ) : void
cavityData double
masterData double
return void

DisplayMasterData() public method

public DisplayMasterData ( double cavityData, double masterData, double masterFitData ) : void
cavityData double
masterData double
masterFitData double
return void

DisplaySlaveData() public method

public DisplaySlaveData ( string name, double cavityData, double slaveData, double slaveFitData ) : void
name string
cavityData double
slaveData double
slaveFitData double
return void

DisplaySlaveDataNoFit() public method

public DisplaySlaveDataNoFit ( string name, double cavityData, double slaveData ) : void
name string
cavityData double
slaveData double
return void

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

GetErrorCount() public method

public GetErrorCount ( string name ) : int
name string
return int

GetGain() public method

public GetGain ( string name ) : double
name string
return double

GetLaserSetPoint() public method

public GetLaserSetPoint ( string name ) : double
name string
return double

GetNumberOfPoints() public method

public GetNumberOfPoints ( ) : int
return int

GetVtoOffsetVoltage() public method

public GetVtoOffsetVoltage ( ) : double
return double

IncrementErrorCount() public method

public IncrementErrorCount ( string name ) : void
name string
return void

MainForm() public method

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

MainForm() public method

public MainForm ( string name ) : System
name string
return System

SetCheckBox() public method

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

SetGain() public method

public SetGain ( string name, double value ) : void
name string
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 ( string name, double value ) : void
name string
value double
return void

SetLaserVoltage() public method

public SetLaserVoltage ( string name, double value ) : void
name string
value double
return void

SetMasterFitTextBox() public method

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

SetMasterSetPointTextBox() public method

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

SetNumberOfPoints() public method

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

SetSetPointIncrementSize() public method

public SetSetPointIncrementSize ( string name, double value ) : void
name string
value double
return void

SetTextBox() public method

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

SetVtoOffsetVoltage() public method

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

ShowAllTabPanels() public method

public ShowAllTabPanels ( ) : void
return void

UpdateElapsedTime() public method

public UpdateElapsedTime ( double time ) : void
time double
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

CavLockVoltageTrackBar public_oe property

public System.Windows.Forms.TrackBar CavLockVoltageTrackBar
return System.Windows.Forms.TrackBar

CavityVoltageReadScatterGraph public_oe property

public NationalInstruments.UI.WindowsForms.ScatterGraph CavityVoltageReadScatterGraph
return NationalInstruments.UI.WindowsForms.ScatterGraph

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

MasterFitTextBox public_oe property

public System.Windows.Forms.TextBox MasterFitTextBox
return System.Windows.Forms.TextBox

MasterGainTextBox public_oe property

public System.Windows.Forms.TextBox MasterGainTextBox
return System.Windows.Forms.TextBox

MasterLaserIntensityScatterGraph public_oe property

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

MasterSetPointTextBox public_oe property

public System.Windows.Forms.TextBox MasterSetPointTextBox
return System.Windows.Forms.TextBox

VToOffsetTextBox public_oe property

public System.Windows.Forms.TextBox VToOffsetTextBox
return System.Windows.Forms.TextBox

axisCheckBox public_oe property

public System.Windows.Forms.CheckBox axisCheckBox
return System.Windows.Forms.CheckBox

cavityDataPlot public_oe property

public NationalInstruments.UI.ScatterPlot cavityDataPlot
return NationalInstruments.UI.ScatterPlot

controller public_oe property

public Controller,TransferCavityLock2012 controller
return Controller

logCheckBox public_oe property

public System.Windows.Forms.CheckBox logCheckBox
return System.Windows.Forms.CheckBox

masterLockEnableCheck public_oe property

public System.Windows.Forms.CheckBox masterLockEnableCheck
return System.Windows.Forms.CheckBox

scanAvCheckBox public_oe property

public System.Windows.Forms.CheckBox scanAvCheckBox
return System.Windows.Forms.CheckBox