LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of Events over Case Structure

Hi,
 
I want to Know what are the advantages if using Events over case strutures.
 
Is memory useage less in case of events.
 
With regards,
Suresh Thangappan
 
 
Suresh Thangappan
0 Kudos
Message 1 of 3
(2,527 Views)

Hi Suresh

I think you can't just compare these two structure types, as they have a different purpose.

I assume you're about to create an application, so I'd suggest you to study the producer consumer design pattern. There are both of these structures used to separate program-logic and reaction to user-inputs.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 3
(2,517 Views)
Hi Suresh,
 
There actually was some good discussion about the relative merits of Event Structures and Case Structures at this post: http://forums.ni.com/ni/board/message?board.id=170&message.id=133228&requireLogin=False.
 
Take a look at what our posters had to say and post if you have any futher questions!
 
Good luck!
Megan B.
National Instruments
0 Kudos
Message 3 of 3
(2,495 Views)