LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
paul_cardinale

Combined Event Structure with While Loop

Status: Declined

Declined for reasons listed in the idea discussion thread.

An event structure is almost always in a while loop.  Why not combine the two into a Repeating Event Structure (or maybe call is an Event Loop).

Instead of this:

ew1.jpg

have this:

ew2.jpg

"If you weren't supposed to push it, it wouldn't be a button."
4 Comments
crossrulz
Knight of NI

Similar (but not a duplicate): Combine the event structure and the timed loop

Also see some of the discussion from this idea: event structure stop


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
drjdpowell
Trusted Enthusiast

Where does common code (outside the individual cases, and executed on for every event) go?  Error handling, for example, or a calculation of a dynamic timeout value?

AristosQueue (NI)
NI Employee (retired)

LabVIEW NXG decided to add a single item to the palettes that is an "Event Loop" -- when you drop that structure, it drops a While Loop with an Event Structure inside of it.

 

This idea of combining them into one structure was discussed when the Event Structure was originally added to LabVIEW. It was discussed again when LabVIEW NXG was spinning up. Multiple reviews keep identifying the desire to put code outside the Event Structure but inside the While Loop (notably First Call reset of uninitialized shift registers and post-event logging) as a major reason to keep these separate.

 

We will not be combining them. Making the palette change to drop both structures in one drop is unlikely to be tackled in the LabVIEW 20xx platform.

Darren
Proven Zealot
Status changed to: Declined

Declined for reasons listed in the idea discussion thread.