Ejemplo n.º 1
0
        private void setV(double v, string scannedOutput)
        {
            switch (scannedOutput)
            {
            case "setpoint":
                tclController.SetLaserSetpoint((string)settings["cavity"], (string)settings["channel"], v);
                Thread.Sleep((int)settings["setSetPointWaitTime"]);
                break;

            case "voltage":
                tclController.SetLaserOutputVoltage((string)settings["cavity"], (string)settings["channel"], v);
                tclController.RefreshVoltageOnUI((string)settings["cavity"], (string)settings["channel"]);
                Thread.Sleep((int)settings["setVoltageWaitTime"]);
                break;
            }
        }
Ejemplo n.º 2
0
        private void setV(double v, int waitTime, string scannedOutput)
        {
            switch (scannedOutput)
            {
            case "setpoint":
                tclController.SetLaserSetpoint((string)settings["channel"], v);
                break;

            case "voltage":
                tclController.SetLaserOutputVoltage((string)settings["channel"], v);
                tclController.RefreshVoltageOnUI((string)settings["channel"]);
                break;
            }
            Thread.Sleep(waitTime);
        }