示例#1
0
        private void toggleCryo(object sender, NationalInstruments.UI.ActionEventArgs e)
        {
            bool state = cryoSwitch.Value;

            cryoLED.Value = state;
            castController.SetCryoState(state);
        }
示例#2
0
        private void toggleHeater(object sender, NationalInstruments.UI.ActionEventArgs e)
        {
            bool state = heaterSwitch.Value;

            heaterLED.Value = state;
            castController.SetHeaterState(state);
        }
示例#3
0
 private void SetSweepDirection(object sender, NationalInstruments.UI.ActionEventArgs e)
 {
     if (sweepDirectionSwitch.Focused) // Only do it if its a UI event
     {
         WindfreakTabController castController = (WindfreakTabController)controller;
         bool state   = GetSweepDirection();
         bool channel = GetChannel();
         castController.SetSweepDirection(state, channel);
     }
 }
示例#4
0
 private void switch1_StateChanged(object sender, NationalInstruments.UI.ActionEventArgs e)
 {
     if (switch1.Value)
     {
         AutoWelding.mcTC6200P.SetOn();
     }
     else
     {
         AutoWelding.mcTC6200P.SetOff();
     }
 }
示例#5
0
 private void switch1_StateChanged(object sender, NationalInstruments.UI.ActionEventArgs e)
 {
     if (switch1.Value == true)
     {
         GlobeVal.myarm.setrunstate(1);
         led1.Value = true;
     }
     else
     {
         GlobeVal.myarm.setrunstate(0);
         led1.Value = false;
     }
 }
示例#6
0
 private void switch2_StateChanged(object sender, NationalInstruments.UI.ActionEventArgs e)
 {
 }
示例#7
0
 private void S30_StateChanged(object sender, NationalInstruments.UI.ActionEventArgs e)
 {
     S3Status.WriteValue(S30.Value);
 }
示例#8
0
 private void Enable_Lamp20_StateChanged(object sender, NationalInstruments.UI.ActionEventArgs e)
 {
     Enable_Handle(sender, Lamp20);
 }
示例#9
0
        // UI Event Handlers

        private void ToggleChannel(object sender, NationalInstruments.UI.ActionEventArgs e)
        {
            castController.SyncChannel();
        }