LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Ring Bug with Enum Input

Hi all,

 

Today I found a new bug with the Error Ring with an enum input (LV2021/2022):
 - Drop an Error Ring on the diagram

 - Make it a Custom Error

 - Type %s in the Description

 - Wire a new enum constant to the input

 - Edit your enum and change one of its items

raphschru_0-1681902396598.png

It will either break the wire or add a coercion dot, meaning that the enum type inside the Error Ring is not updated correctly and mismatches the wired type.

Then you can simply remove the wire and rewire to force updating the Error Ring.

 

It can also happen indirectly by updating a typedefed enumeration, which may break VIs without notice. While this is easily visible during PC development, I found out it can also happen during the build process of a PPL, meaning a perfectly executable VI can become broken once compiled. If in addition the PPL is compiled for an RT target, this is even harder to troubleshoot…

0 Kudos
Message 1 of 3
(1,188 Views)

The bug is in "... \vi.lib\ErrorRing\AdaptToInputs 1.vi".

Attached is a fixed version.  Use it at your own risk.

Message 2 of 3
(1,136 Views)

For your information, I reported this to NI and it has Bug Number 3036518.

 

Regards,

Raphaël.

Message 3 of 3
(304 Views)