private void rbAxe1_CheckedChanged(object sender, EventArgs e) { byte AsciiRelaisValue; byte relaymum = 1; disableRadio(); stopSampling(); System.Threading.Thread.Sleep(400); AsciiRelaisValue = (byte)(relaymum + 0x30); deviceBoard.sendSwitchCommand(0, AsciiRelaisValue); // clearCounts all System.Threading.Thread.Sleep(500); deviceBoard.sendSwitchCommand(1, AsciiRelaisValue); clearCounts(); updateControls(); startSampling(); }
private void rbAxe1_CheckedChanged(object sender, EventArgs e) { byte AsciiRelaisValue; byte relaymum = 1; calibrateTimer.Enabled = false; deviceBoard.calibrate(false); AsciiRelaisValue = (byte)(relaymum + 0x30); deviceBoard.sendSwitchCommand(0, AsciiRelaisValue); // clearCounts all System.Threading.Thread.Sleep(400); System.Threading.Thread.Sleep(500); deviceBoard.sendSwitchCommand(1, AsciiRelaisValue); deviceBoard.calibrate(true); UpdateSignal(); calibrateTimer.Enabled = true; }