Wait with Multiple Threads

Wait functions will stop the calling thread from executing. If the user application is single-threaded, calling the Wait function will stop the GUI until the wait finishes.

To prevent this, Wait functions can be called from a separate thread with the sole purpose of executing a sequence of motion commands and Wait functions. The functions that are available for starting a new thread depend upon the language and operating environment.