예제 #1
0
        static void Main(string[] args)
        {
            var ammetr = new Ammetr("10.4.14.92", CurrentTypeEnum.DC, CurrentUnitsEnum.mA, 20);

            ammetr.UpdMeasureResult += Meas;
            ammetr.StartCycleMeasureCurrent();

            Console.ReadKey();


            ammetr.Stop();
        }
예제 #2
0
        static void Main(string[] args)
        {
            var sdm = new Ammetr("10.4.14.103");

            sdm. += Sdm_UpdMeasureResult;

            try
            {
                sdm.Start();
                Console.ReadKey();

                sdm.Stop();
                Console.ReadKey();
            }

            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                Console.ReadKey();
            }
            // Console.WriteLine(double.Parse("-5.57587244E-0", new CultureInfo("en-ru", false).NumberFormat));
        }