Exemplo n.º 1
0
        private void setGateThreshold()
        {
            int    error_code;
            double threshold = Convert.ToDouble(numUpDownThreshold.Value);

            if (SetBatchDAQ.isOn)
            {
                error_code = SetBatchDAQ.GateThreshold(SelectAscan.sessionIndex, gateNum, threshold);
            }
            else
            {
                error_code = SetGateDAQ.Threshold(SelectAscan.sessionIndex, SelectAscan.port, gateNum, threshold);
            }

            if (error_code != 0)
            {
                return;
            }
            UpdateGateLine();
        }