From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ending Optional Event Structure

Step 1, merge all events into one structure, then see how it works. (One structure with several cases, never ever multiple structues, as mentioned)

Highlight execution is a good help for debugging.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 11 of 12
(332 Views)

@of2006 wrote:

There is no "data flow" because the user can choose any one of these buttons at the same time, that is what I am trying implement, I am not forcing a set "flow".


There is most definitely a dataflow. You cannot use LabVIEW without understanding dataflow. As has already been suggested you should really go through some training material.

 

Your current program is requiring dataflow from multiple sources in order to continue. What you want is a state machine that is driven by the state of your controls. This can be accomplished without an event structure (some of us were programming in LabVIEW before the existence of the event structure) or with a proper event structure (notice that it is exactly one event structure). Note that there should also be exactly one case structure inside your loop driven by a string or enum on a shift register.

0 Kudos
Message 12 of 12
(161 Views)