I found a weird configuration in my stuff where a program was not working right because it was clearing out the error code inside a for loop. The for loop was clearing out the error code because it received an empty array from a property node for an array. The property node sent an empty array to the for loop because it received an error on its input.
In the VI where I found this configuration I have an error wire going thru a property node for an array. The values read from the property node are then fed into a for loop and processed. The error wire is fed thru the for loop and then the error is passed back out of the loop in an indexed tunnel and combined with an merge error. When the property node has an error on its input it outputs an empty array. The empty array is then fed into the for loop causing the for loop not to run. The for loop then sends out an empty error wire without the error code that was sent in.
I am attaching a simple VI to demonstrate this behaviour. To see the behaviour toggle the error control on and off.
edit: I forgot to set the default values in the in array on the original attachment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has not received any kudos within a year after posting will be automatically declined.