There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
I am Planning to write CLAD exam in October.Steve can u Provide me any Material and guidelines how to prepare for it inorder to cover all topics........
So, again, I had to look this one up. Shouldn't have to, but I have never used this function before. Well, maybe once or twice, but I think it was in a bar in Thailand. ¯\(°_o)/¯
Basically, all of us know that anything that is not error code 0 is flagged as an error. For the function Find First Error.vi, it will just pass along an error that is input on "error in". However, the real use case for this is to feed it an array of error codes along with a list of messages for each error code. The first non-zero value in the error codes is flagged as an error and the corresponding message is selected and built into an error cluster.
This is a case of go with your first impression: 1. an error input into "error in" will be the first error; 2. the first non-zero code in "error codes" is an error. In this case, error codes[0] is -1 even though there is not an error coming into the "error in" terminal, and error will be output; therefore, D is the correct answer.
Our best advice, Kavyanaresh, is to review the sample exams and materials for the CLAD available on the ni website.(http://www.ni.com/example/30225/en/)
These are great Steve, I'm glad you are posting them!
I ran the VI in LabVIEW2014 and got C as answer. It makes sense as the boolean value of the last element in the array of error cluster is True. If the boolean is True, it means there is an error independent of the error code.