Breadcrumbs

exit()

Features

This function terminates the currently running program.

If the exit() command is used to terminate the program while a motion is in progress, it may cause abrupt stopping behavior or trigger other alarms. Always ensure that all motions have completely stopped before using the exit() command to terminate the program.

Return

Value

Description

0

Success

Exception

Exception

Description

DR_Error (DR_ERROR_RUNTIME)

C extension module error occurred

Example

Python
exit()