Table Of Contents

Trigger Occurrence (G Dataflow)

Last Modified: November 4, 2020

Triggers the occurrence you specify. All nodes that are waiting for this occurrence stop waiting.



A reference to an occurrence.

When to Use Occurrences

Occurrences are the most fundamental part of all synchronization mechanisms. You should use occurrences only when no other synchronization method is sufficient. For most operations, you can use the Notifier nodes in place of Occurrence nodes.

Occurrence nodes control separate, synchronous activities without polling. For example, use these nodes when you want one VI or subdiagram to wait until another VI or subdiagram finishes a task without using the processor resources that polling consumes while waiting. Occurrences do not add processor overhead because the waiting VIs or subdiagrams become idle while they wait. When the first VI or subdiagram triggers the occurrence, it also activates the VIs or subdiagrams that wait for the specified occurrence.

Monitoring Occurrence Triggers

If you use Trigger Occurrence to trigger the same occurrence multiple times before Wait on Occurrence executes, Wait on Occurrence only indicates that the occurrence was triggered. You must create and implement additional code to if you want to monitor how many times you triggered an occurrence.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application

Recently Viewed Topics