LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Notifiers - Alternative?

Hi

 

I have 5 while loops. I control the tasks in all while loops using notifiers. May I use another operation different from the notifier because I think that using more than one notifier will complicate the block diagram (the code).

 

Regards

0 Kudos
Message 1 of 3
(2,867 Views)

Pretty much any method of intraprocess communication can make a block diagram look complicated if you let it.

 

Using subVIs (or handlers) for much of the notifier activity, and even for the parallel processes (while loops), is a typical method for tidying them up.

 

For instance, I have an application which currently has something like 12 parallel services. For each service, there's a queue controlling many-to-one incoming communication, and a notifier handling one-to-many outgoing communication. But because they're all wrapped in subVIs, the top level VI just consists of a number of parallel subVIs; each subVI consists of the main loop with most queue or notifier activity wrapped into handlers, and so on.

---
CLA
0 Kudos
Message 2 of 3
(2,849 Views)

I use Action Engine to maintain my queues, notifiers, and user events.  I then typically make wrapper VIs for sending the commands through the AE.  This setup has served me well on many projects and helps keep your diagrams clean


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,774 Views)