The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Find First Error

SercoSteveB
Active Participant

What are the contents of 'error out' following execution of the VI?

find first Error 26_09_2014.png

find first Error 26_09_2014 Answers.png

Comments
crossrulz
Knight of NI

D



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
MrStevenUND
Member

D

nik35324
Member

D

JoeTubo
Member

I am going for B.

LordNobady
Member

D


Learning LabVIEW since January 2013
mini09
Active Participant

B

kavyanaresh
Member

Pls.....Can anyone explain it ?

kavyanaresh
Member

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........

Drew.Rankin
Member

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.Find Firsts Error.png

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!

-Drew

SercoSteveB
Active Participant

Hi kavyanaresh.  There is a really cool blog that is set up for CLAD preparation called 'The Daily CLAD' I recommend checking it out .

This post is a good read and has some resources.  https://decibel.ni.com/content/blogs/DailyCLAD/2012/04/16/clad-exam-experiences#comment-21913

A search for "CLAD preparation" on ni.com is a really good start also.

My advice:

  1. Do all the questions in The Daily CLAD (obviously and rate them as excellent).
  2. Do the Sample Exams from NI (available on ni.com).
  3. Use LabVIEW alot, with the Context Help turned on.
  4. Do all the questions in The Daily CLAD (in case you missed some the first time).
kavyanaresh
Member

Steve,

Thank you.........

SercoSteveB
Active Participant

Answer: D.  Nice one crossrulz, MrStevenUND, nik35324 & LordNobady.

Great explanantion Drew.Rankin thanks.

debapriya_maji
Member

Hi Steve,

  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.