Пример #1
0
 internal static ExciterModel Demo()
 {
     if (_exciter == null)
     {
         _exciter = new ExciterModel(new NmgManagedDemoCanControl());
     }
     return(_exciter);
 }
Пример #2
0
        public static ExciterModel Create()
        {
            if (_exciter == null)
            {
                logger.Error("Exciter not found");
                logger.Warn("Initialize Exciter Can in demo mode with Baud Rate 50Kbs");
                var can = new NmgManagedCanControl();
                can.Initialize(ExciterCanBaudRate.C50Kbs);
                _exciter = new ExciterModel(can);
            }

            return(_exciter);
        }