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.