LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Program hangs when stopping consumer loop

Solved!
Go to solution

Here is a rehash of your code using a queue.  You should see how much more useful this is.

Note: in the Increment case is just an Increment function to increase the value in the shift register by 1.


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
Message 11 of 13
(541 Views)

Sorry for next "accepted solution". I was about to click reply.

Thanks for example with queue. I normally use it but I made an example program with occurrences for my friends who wants get familiar with sync palette. It would be great to show them the difference 🙂

0 Kudos
Message 12 of 13
(531 Views)

Well, my honest opinion on the things in the Synchronization pallete:

Notifiers: 1 to Many lossy communcations

Queues: Many to 1 lossless communications

Semaphore: Not really useful.  Use an Action Engine.

Rendezvous: Never used them

Occurances: Onely useful to flag that something has happened.  In the very rare cases I have used them (again, FPGA where queues do not really exist or are expensive), I used the Timeout anyways.


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
Message 13 of 13
(524 Views)