04-19-2023 06:08 AM - edited 04-19-2023 06:15 AM
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
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…
04-19-2023 08:37 AM
The bug is in "... \vi.lib\ErrorRing\AdaptToInputs 1.vi".
Attached is a fixed version. Use it at your own risk.
02-27-2025 07:16 AM