Waits for the Set Occurrence function to set the given occurrence.
![]() | Note National Instruments encourages you to use the Notifier Operations functions in place of occurrences for most operations. |

![]() |
ms timeout is the specified amount of time, in milliseconds, for the occurrence to occur. If the occurrence does not occur within the specified ms timeout, the function returns a value of TRUE. If ms timeout is –1, the function does not time out unless the occurrence wired to the wait is invalid. If the occurrence is invalid, the function immediately returns a timed out output of True, even if ms timeout is equal to -1. |
![]() |
occurrence is the occurrence refnum that links Wait on Occurrence and Set Occurrence. |
![]() |
If ignore previous is TRUE and another node has set the occurrence before this function began executing, the function ignores the previous occurrence and waits for another one.
When ignore previous is FALSE, the function checks whether another node previously set an occurrence. If so, the function executes. However, the Wait on Occurrence function only processes one occurrence at a time and does not hold multiple previous occurrences in memory. |
![]() |
timed out is TRUE if the occurrence does not occur within the specified ms timeout. If ms timeout is –1, timed out is FALSE. |
Refer to the following VIs for examples of using the Wait on Occurrence function: