Example #1
0
        public static CCTimer AddTimer(string tagName,
                                       string outTagName, int onLast = 1000,
                                       string offOutTagName          = "", int offLast = 1000)
        {
            CControlSystem cc    = new CControlSystem();
            CCTimer        timer = new CCTimer(cc, tagName, outTagName, onLast, offOutTagName, offLast);

            cpu.AddTask(timer);
            return(timer);
        }
Example #2
0
        public static IronPythonTask AddIronPythonTask(string TaskName, string PYPath)
        {
            IronPythonTask task = cpu.AddIronPythonTask(TaskName, PYPath);

            List <IronPythonTaskMonitor> monitors = CControlSystem.GetTaskMonitor(TaskName);

            foreach (IronPythonTaskMonitor mm in monitors)
            {
                mm.ConnectToTask(task);
            }
            return(task);
        }