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.

BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling in the LAVA UI Tools addin

I had no idea where else to post this, but it amused me.  Found in the "Dialog Box__lava_lib_ui_tools.vi" from the LAVA addin. Thought I'd share.  The "No Error" is an event driven state machine.

 

error handling.PNG

0 Kudos
Message 1 of 4
(5,971 Views)

Uh...is it me or is this flawed?  If you pass in an error on the error in, it goes to the error case, and keeps the error, loops back around, and goes to the error case...forever.  It doesn't matter if you put the Exit on the string shift register the first case statement evaluates the error case first.

 

Here is the support page on the LAVA UI Tools that I think you are talking about.

 

https://lavag.org/topic/11045-lvtn-ui-tools/

0 Kudos
Message 2 of 4
(5,948 Views)

@Hooovahh wrote:

Uh...is it me or is this flawed?  If you pass in an error on the error in, it goes to the error case, and keeps the error, loops back around, and goes to the error case...forever.  It doesn't matter if you put the Exit on the string shift register the first case statement evaluates the error case first.

 

Here is the support page on the LAVA UI Tools that I think you are talking about.

 

https://lavag.org/topic/11045-lvtn-ui-tools/


Perhaps you are flawed.. Not enough information.  The vi is flawed as you pointed out.


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 4
(5,926 Views)

@Hooovahh wrote:

Uh...is it me or is this flawed?  If you pass in an error on the error in, it goes to the error case, and keeps the error, loops back around, and goes to the error case...forever.  It doesn't matter if you put the Exit on the string shift register the first case statement evaluates the error case first.

 

Here is the support page on the LAVA UI Tools that I think you are talking about.

 

https://lavag.org/topic/11045-lvtn-ui-tools/


That was the amusing part!  Pass an error in and get an infinite loop...

0 Kudos
Message 4 of 4
(5,890 Views)