Data Sheet
dScript
dScript User Manual v2.15
threadsleep <time mS>
This causes the current thread to sleep for a number of mS. Threads which are sleeping do not
consume CPU processing time. When the time expires the thread will resume executing
instructions with the instruction immediately following the threadsleep command.
threadsleep 50
This will cause the current thread to suspend execution for 50mS
threadsuspend
This stops execution of the current thread. It is the end of the thread, because no instructions
following this will be executed as part of this thread. The thread is suspended rather than
stopped, it still remains armed and will start over at the beginning on the next trigger event.
Copyright © 2016, Devantech Ltd.
All rights reserved.
www.robot-electronics.co.uk
54