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

Event Structure (Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Has one or more subdiagrams, or event cases, exactly one of which executes when the structure executes. The Event structure waits until an event happens, then executes the appropriate case to handle that event. Right-click the structure border to add new event cases and configure which events to handle. Wire a value to the Timeout terminal at the top left of the Event structure to specify the number of milliseconds the Event structure should wait for an event to occur. The default is –1, indicating never to time out.

Before you configure events to be handled by the Event structure, review the caveats and recommendations for using events in LabVIEW.

The Event Data Node is attached to the inside left and right borders of each event case. The node identifies the data LabVIEW returns when an event occurs. The node displays data that is different in each case of the Event structure depending on which event(s) you configure that case to handle. If you configure a single case to handle multiple events, only the data that is common to all handled event types is available.

When you place an Event structure on the block diagram, the Timeout event case is the default case.

Note  When you place an Event structure on the block diagram from the Events palette, the structure displays the Event Dynamic Registration terminals. When you place an Event structure on the block diagram from the Structures palette, the structure does not display the terminals. To display the Event Dynamic Registration terminals, right-click the Event structure and select Show Dynamic Event Terminals from the shortcut menu.

Example

Refer to the New Event Handler VI in the labview\examples\general\uievents.llb for an example of using the Event Structure.


Resources


 

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