Cicode Programming Reference > Cicode Function Categories > Miscellaneous Functions Introduction > DelayShutdown

DelayShutdown

Terminates CitectSCADA's operation after the specified delay period (in milliseconds). This function is suitable to be called by the CTAPI. The delay period enables the user to close the connection between the CTAPI and third-party applications before CitectSCADA shuts down.

Syntax

DelayShutdown(Delay)

Delay:

The period (in milliseconds) after whichCitectSCADA will shut down.

Return Value

No return value.

Related Functions

CtOpen, CtClose, CtCicode

Example

DelayShutdown(10 000) 
!Terminates CitectSCADA's operation after 10 seconds

See Also

Miscellaneous Functions