LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure vs case structure?

Solved!
Go to solution

 


Aalenox wrote:
I hadn't considered an array of controls before. Any good examples you'd consider going over?


 

Arrays of buttons are generally useful because they greatly simplify the diagram. Only one terminal and wire instead of e.g. 16. This is independent of the architecture you'll be using. It workes equally well with other design patterns.
Here's a very primitive example (LV2012) showing you how to deal with an array of four buttons, two are switch action and two are latch. In the timeout case we loop over all buttons and act accordingly. This could easily be done in a parallel loop if needed.

 

 

Message 11 of 12
(1,248 Views)

Thank you! This will help - especially combined with producer / consumer architecture.

0 Kudos
Message 12 of 12
(1,240 Views)