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: 

How to get the last error for while loop?

How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.

0 Kudos
Message 1 of 3
(2,234 Views)

What do you mean by "get" and "transfer"?

 

If the shift register is not what you want, use a plan tunnel instead.

 

 

Typically, programmers are interested in the first, not last, error.

 

Can you show us your code so we have a better idea what you are trying to?

0 Kudos
Message 2 of 3
(2,221 Views)

If you stop the while loop with an error condition, the first error should be automatically the last error 😉

 

And this is basically the best question Christian arises: why do you want to proceed with the loop even though there already is an error, but are interested in the LAST error instead of the FIRST error?

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 3
(2,211 Views)