internal static ExciterModel Demo() { if (_exciter == null) { _exciter = new ExciterModel(new NmgManagedDemoCanControl()); } return(_exciter); }
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); }