Exemplo n.º 1
0
 //short sbyali_short = 0;
 private void pump_open()
 {
     doData[0] = set_bit(doData[0], 1, true);
     daq.InstantDo_Write(doData);
     aoData[0] = (double)sbyali.Value;
     //daq.InstantAo_Write(aoData);
     // sbyali_short = (short)(500 * sbyali.Value);
     //bpqMR.connect();
     mr.write_short("125", (short)(sbyali.Value * 500), 2);
     Invoke(new Action(() =>
     {
         open.Text = "关闭水泵";
     }));
 }
Exemplo n.º 2
0
 private void numericUpDown1_ValueChanged(object sender, EventArgs e)
 {
     aoData[0] = (double)sbyali.Value;
     Properties.Settings.Default.水泵压力 = sbyali.Value;
     Properties.Settings.Default.Save();
     //daq.InstantAo_Write(aoData);
     if (hslSwitch1.SwitchStatus == false)
     {
         bpqMR.write_short("125", (short)(100 * sbyali.Value * 5), 2);
     }
 }