Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Make Sure You Have a Register For Events Function for Each Event Structure

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

If you wire the event registration refnum to more than one Event structure, each Event structure handles dynamic events out of the same event queue. This can occur if you branch the event reg refnum out output of a Register For Events function to another Event structure. This causes a race condition, because the first Event structure to handle the event can prevent the other Event structure from receiving the event if it completes the event case before the other Event structure executes.

To avoid this problem, make sure you wire each Event structure which handles dynamic events to a unique Register For Events function.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit