C# Class SympatheticHardwareControl.ControlWindow

Front panel for the sympathetic hardware controller. Everything is just stuffed in there. No particularly clever structure. This class just hands everything straight off to the controller. It has a few thread safe wrappers so that remote calls can safely manipulate the front panel.
Inheritance: System.Windows.Forms.Form
Show file Open project: ColdMatter/EDMSuite Class Usage Examples

Public Properties

Property Type Description
aom0CheckBox System.Windows.Forms.CheckBox
aom0rfAmplitudeTextBox System.Windows.Forms.TextBox
aom0rfFrequencyTextBox System.Windows.Forms.TextBox
aom1CheckBox System.Windows.Forms.CheckBox
aom1rfAmplitudeTextBox System.Windows.Forms.TextBox
aom1rfFrequencyTextBox System.Windows.Forms.TextBox
aom2CheckBox System.Windows.Forms.CheckBox
aom2rfAmplitudeTextBox System.Windows.Forms.TextBox
aom2rfFrequencyTextBox System.Windows.Forms.TextBox
aom3CheckBox System.Windows.Forms.CheckBox
aom3rfAmplitudeTextBox TextBox
aom3rfFrequencyTextBox TextBox
checkBox1 CheckBox
coil0CurrentTextBox TextBox
coil1CurrentTextBox TextBox
controller Controller
shcTabs TabControl
shutterCheckBox CheckBox
tabCamera TabPage
tabCoils TabPage
tabLasers TabPage
textBox1 TextBox
textBox2 TextBox

Public Methods

Method Description
ControlWindow ( ) : System
ReadAnalog ( string channelName ) : double
ReadDigital ( string channelName ) : bool
SetAnalog ( string channelName, double value ) : void
SetDigital ( string channelName, bool value ) : void
UpdateUIState ( Controller state ) : void
WriteToConsole ( string text ) : void

Private Methods

Method Description
AutoTriggerCheckBox_CheckedChanged ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

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

SetLedHelper ( NationalInstruments led, bool val ) : void
TSClearButton_Click ( object sender, EventArgs e ) : void
TSConnectButton_Click ( object sender, EventArgs e ) : void
TSGoButton_Click ( object sender, EventArgs e ) : void
TSHomeButton_Click ( object sender, EventArgs e ) : void
TSInitButton_Click ( object sender, EventArgs e ) : void
TSOffButton_Click ( object sender, EventArgs e ) : void
TSOnButton_Click ( object sender, EventArgs e ) : void
TSRestartButton_Click ( object sender, EventArgs e ) : void
TSReturnButton_Click ( object sender, EventArgs e ) : void
WindowClosing ( object sender, FormClosingEventArgs e ) : void
WindowLoaded ( object sender, EventArgs e ) : void
button2_Click ( object sender, EventArgs e ) : void
checkStatusButton_Click ( object sender, EventArgs e ) : void
disposeButton_Click ( object sender, EventArgs e ) : void
exitToolStripMenuItem_Click ( object sender, EventArgs e ) : void
hardwareMonitorToolStripMenuItem_Click ( object sender, EventArgs e ) : void
label8_Click ( object sender, EventArgs e ) : void
loadParametersToolStripMenuItem_Click ( object sender, EventArgs e ) : void
openImageViewerToolStripMenuItem_Click ( object sender, EventArgs e ) : void
read_Click ( object sender, EventArgs e ) : void
saveImageToolStripMenuItem_Click ( object sender, EventArgs e ) : void
saveParametersToolStripMenuItem_Click ( object sender, EventArgs e ) : void
setCheckBox ( CheckBox box, bool state ) : void
setCheckHelper ( CheckBox box, bool state ) : void
setLED ( NationalInstruments led, bool val ) : void
setRichTextBox ( RichTextBox box, string text ) : void
setRichTextHelper ( RichTextBox box, string text ) : void
setTabEnable ( TabControl box, bool state ) : void
setTabEnableHelper ( TabControl box, bool state ) : void
setTextBox ( TextBox box, string text ) : void
setTextHelper ( TextBox box, string text ) : void
snapshotButton_Click ( object sender, EventArgs e ) : void
stopStreamButton_Click ( object sender, EventArgs e ) : void
streamButton_Click ( object sender, EventArgs e ) : void
updateHardwareButton_Click ( object sender, EventArgs e ) : void

Method Details

ControlWindow() public method

public ControlWindow ( ) : System
return System

ReadAnalog() public method

public ReadAnalog ( string channelName ) : double
channelName string
return double

ReadDigital() public method

public ReadDigital ( string channelName ) : bool
channelName string
return bool

SetAnalog() public method

public SetAnalog ( string channelName, double value ) : void
channelName string
value double
return void

SetDigital() public method

public SetDigital ( string channelName, bool value ) : void
channelName string
value bool
return void

UpdateUIState() public method

public UpdateUIState ( Controller state ) : void
state Controller
return void

WriteToConsole() public method

public WriteToConsole ( string text ) : void
text string
return void

Property Details

aom0CheckBox public property

public CheckBox,System.Windows.Forms aom0CheckBox
return System.Windows.Forms.CheckBox

aom0rfAmplitudeTextBox public property

public TextBox,System.Windows.Forms aom0rfAmplitudeTextBox
return System.Windows.Forms.TextBox

aom0rfFrequencyTextBox public property

public TextBox,System.Windows.Forms aom0rfFrequencyTextBox
return System.Windows.Forms.TextBox

aom1CheckBox public property

public CheckBox,System.Windows.Forms aom1CheckBox
return System.Windows.Forms.CheckBox

aom1rfAmplitudeTextBox public property

public TextBox,System.Windows.Forms aom1rfAmplitudeTextBox
return System.Windows.Forms.TextBox

aom1rfFrequencyTextBox public property

public TextBox,System.Windows.Forms aom1rfFrequencyTextBox
return System.Windows.Forms.TextBox

aom2CheckBox public property

public CheckBox,System.Windows.Forms aom2CheckBox
return System.Windows.Forms.CheckBox

aom2rfAmplitudeTextBox public property

public TextBox,System.Windows.Forms aom2rfAmplitudeTextBox
return System.Windows.Forms.TextBox

aom2rfFrequencyTextBox public property

public TextBox,System.Windows.Forms aom2rfFrequencyTextBox
return System.Windows.Forms.TextBox

aom3CheckBox public property

public CheckBox,System.Windows.Forms aom3CheckBox
return System.Windows.Forms.CheckBox

aom3rfAmplitudeTextBox public property

public TextBox aom3rfAmplitudeTextBox
return TextBox

aom3rfFrequencyTextBox public property

public TextBox aom3rfFrequencyTextBox
return TextBox

checkBox1 public property

public CheckBox checkBox1
return CheckBox

coil0CurrentTextBox public property

public TextBox coil0CurrentTextBox
return TextBox

coil1CurrentTextBox public property

public TextBox coil1CurrentTextBox
return TextBox

controller public property

public Controller controller
return Controller

shcTabs public property

public TabControl shcTabs
return TabControl

shutterCheckBox public property

public CheckBox shutterCheckBox
return CheckBox

tabCamera public property

public TabPage tabCamera
return TabPage

tabCoils public property

public TabPage tabCoils
return TabPage

tabLasers public property

public TabPage tabLasers
return TabPage

textBox1 public property

public TextBox textBox1
return TextBox

textBox2 public property

public TextBox textBox2
return TextBox