Jump to content

Multiple Event Structures in a VI


Recommended Posts

Hey guys,

 

I am trying to debug a project developed by another developer and I see 2 event structures in the Main VI with UI.

They both have different timeout values set and one of the ES is sending commands through User Events to the other ES which is part of a QSM.

Since I've never come across a design with multiple ES, I wanted to understand the design before I proceeded.

 

I did a little search regarding this matter but the conversation usually drifted and it was a bit confusing for a developer like me  :wacko:

 

Suppose we limited 1 event structure per block diagram?

 

Using multiple (2) event structures in 1 VI

 

What I got out of it was

Advantages

-able to capture and process multiple events in parallel so that a single event that might take some time to complete won't freeze other events

-able to compartmentalize events into different categories

-different timeout values mean different polling frequency

 

Disadvantages

-a bit more maintenance required than a single ES design

 

Is there a thread or resource that summarizes and describes this design?

 

 

Link to comment

I do not know if this will be useful but there is a really good presentation with example code and a video covering User Events in general and various pitfall / misunderstandings.  T

 

The example code is here   https://github.com/wirebirdlabs/LabVIEW-User-Events-Tips-Tricks-and-Sundry

 

I cannot find a link the the VID but the title is Jack Dunaway_User Events Tips and Tricks but think it was given at NI week 2013 (try https://lavag.org/topic/17040-niweek-2013-videos/)

 

 

EDIT  Sorry I have just seen this has already been mention in one of the links you posted......

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.