SympatheticHardwareControl.Controller.StartMonitoringLaserErrorSignal C# (CSharp) Method

StartMonitoringLaserErrorSignal() public method

public StartMonitoringLaserErrorSignal ( ) : void
return void
        public void StartMonitoringLaserErrorSignal()
        {
            monitorLE = true;
            Thread LLEThread = new Thread(new ThreadStart(leMonitorLoop));
            LLEThread.Start();
        }

Usage Example

 private void laserErrorMonitorCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     if (laserErrorMonitorCheckBox.Checked)
     {
         setLED(laserErrorLED, true);
         controller.StartMonitoringLaserErrorSignal();
     }
     if (!laserErrorMonitorCheckBox.Checked)
     {
         setLED(laserErrorLED, false);
         controller.StopMonitoringLaserErrorSignal();
     }
 }