Applies To:
  • CitectSCADA 5.50, 5.50 Service Pack A, 5.50 Service Pack B, 5.50 Service Pack C, 6.00, 6.00 Service Pack A, 6.10
  • CitectHMI 5.50, 5.50 Service Pack A, 5.50 Service Pack B, 5.50 Service Pack C, 6.00, 6.00 Service Pack A, 6.10
  • Citect Facilities Scheduler Versions

Summary:
When I call TmSched_Update() to start the Time Scheduler the computer's CPU increases and it becomes unresponsive. What is causing this?
 

Solution:
The TmSched_Update() function is part of the CtTimeScheduler.ci Cicode file which is added to your CitectSCADA project in order to use the Time Scheduler. The cause of the excessive CPU usage is part of the while loop that in-turn calls TmSched_GetStatus().



If the return from TmSched_GetStatus() is not 1 - that is, the computer is not the primary alarm server - the while loop will run continuously, thereby consuming CPU time. To prevent this, add an additional Sleep(1) immediately before the end of the while loop as shown.


 

Keywords:
CPU, Time Scheduler  

Attachments