Ejemplo n.º 1
0
        public void ExecuteTask(int tasknumber = 0)
        {
            switch (tasknumber)
            {
            case 0:
                ClockProbe.SendTime(DateTime.UtcNow);
                //Task.Delay(10).Wait();
                break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
 public static bool Init()
 {
     ClockProbe.Init();
     DeviceProbe.Init();
     DeviceProbe.SendExternal(new TrafficMessages()
     {
         External = "All Device Functions initialized"
     });
     timingcard.Init();
     networkcard.Init();
     infaredcard.Init();
     usbcard.Init();
     return(true);
 }
Ejemplo n.º 3
0
        public static bool Close()
        {
            DeviceProbe.SendExternal(new TrafficMessages()
            {
                External = "All Device Functions shutting down"
            });

            networkcard.Close();
            infaredcard.Close();
            usbcard.Close();
            timingcard.Close();
            DeviceProbe.Close();
            ClockProbe.Close();
            return(true);
        }