The viztask library is designed to control program flow. You can wait for time to elapse, an action, event, etc. before executing more code. If you have not done so yet, take a look at the
viztask documentation in the reference section and the
creating a task tutorial. Use the
waittime command to wait for a set time.