LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case structure & event structure

1.What are the disadvantages of case strucure?
2.What are the advantages of event structure?
 
Message 1 of 5
(10,184 Views)
Are these test questions? I could name 10 for each, but why are you asking?

While there are often many ways to accomplish the same thing, Case structures and Event structures serve different purposes. Straight from the Help file:

Case Structure

Has one or more subdiagrams, or cases, exactly one of which executes when the structure executes. The value wired to the selector terminal determines which case to execute and can be Boolean, string, integer, or enumerated type. Right-click the structure border to add or delete cases. Use the Labeling tool to enter value(s) in the case selector label and configure the value(s) handled by each case.

Event Structure (Not in Base Package)

Has one or more subdiagrams, or event cases, exactly one of which executes when the structure executes. The Event structure waits until an event happens, then executes the appropriate case to handle that event. Right-click the structure border to add new event cases and configure which events to handle. Wire a value to the Timeout terminal at the top left of the Event structure to specify the number of milliseconds the Event structure should wait for an event to occur. The default is –1, indicating never to time out.

Message 2 of 5
(10,180 Views)

i started learning labview by reading the book myself last 3-4 days back (without attending any classes). so i have this problem..

so please give answer to my questions 

0 Kudos
Message 3 of 5
(10,175 Views)

Hi Rajesh,

Tell you what? read this Link

You may be able to come up with to some conclusions on your query, after reading it

Regards,

Dev

Message 4 of 5
(10,160 Views)
Thanks Dev
0 Kudos
Message 5 of 5
(10,148 Views)